From 376d18411b24b8c6ae81eaebb46ae63e971818e2 Mon Sep 17 00:00:00 2001 From: Yash Date: Wed, 11 Jun 2025 19:37:30 +0530 Subject: [PATCH 01/32] generate entrypoint functions --- .changeset/young-carrots-burn.md | 5 + packages/thirdweb/package.json | 86 ++--- .../abis/assets/AssetEntrypointERC20.json | 34 ++ .../abis/assets/AssetInfraDeployer.json | 5 + .../generate/abis/assets/ERC20Asset.json | 3 + .../generate/abis/assets/FeeManager.json | 3 + .../scripts/generate/abis/assets/Router.json | 3 + packages/thirdweb/src/assets/bootstrap.ts | 331 ++++++++++++++++++ .../src/assets/bootstrapinfra.test.ts | 25 ++ packages/thirdweb/src/assets/constants.ts | 34 ++ .../src/assets/create-token-by-impl-config.ts | 130 +++++++ .../thirdweb/src/assets/create-token.test.ts | 45 +++ packages/thirdweb/src/assets/create-token.ts | 110 ++++++ .../thirdweb/src/assets/deploy-infra-proxy.ts | 44 +++ .../src/assets/distribute-token.test.ts | 116 ++++++ .../thirdweb/src/assets/distribute-token.ts | 26 ++ .../src/assets/get-entrypoint-erc20.ts | 123 +++++++ .../src/assets/get-erc20-asset-impl.ts | 25 ++ .../src/assets/get-initcode-hash-1967.ts | 8 + packages/thirdweb/src/assets/index.ts | 16 + .../thirdweb/src/assets/is-router-enabled.ts | 20 ++ packages/thirdweb/src/assets/token-utils.ts | 122 +++++++ packages/thirdweb/src/assets/types.ts | 51 +++ packages/thirdweb/src/exports/assets.ts | 1 + .../events/AssetCreated.ts | 47 +++ .../events/AssetDistributed.ts | 25 ++ .../events/ImplementationAdded.ts | 43 +++ .../events/RewardLockerUpdated.ts | 42 +++ .../events/RouterUpdated.ts | 40 +++ .../read/getImplementation.ts | 152 ++++++++ .../read/getRewardLocker.ts | 71 ++++ .../AssetEntrypointERC20/read/getRouter.ts | 71 ++++ .../write/addImplementation.ts | 181 ++++++++++ .../AssetEntrypointERC20/write/buyAsset.ts | 196 +++++++++++ .../AssetEntrypointERC20/write/createAsset.ts | 187 ++++++++++ .../write/createAssetById.ts | 203 +++++++++++ .../createAssetByImplementationConfig.ts | 238 +++++++++++++ .../write/distributeAsset.ts | 164 +++++++++ .../AssetEntrypointERC20/write/initialize.ts | 166 +++++++++ .../AssetEntrypointERC20/write/listAsset.ts | 174 +++++++++ .../AssetEntrypointERC20/write/sellAsset.ts | 193 ++++++++++ .../write/setRewardLocker.ts | 142 ++++++++ .../AssetEntrypointERC20/write/setRouter.ts | 139 ++++++++ .../events/AssetInfraDeployed.ts | 49 +++ .../write/deployInfraProxyDeterministic.ts | 187 ++++++++++ .../ERC20Asset/write/initialize.ts | 189 ++++++++++ .../FeeManager/write/initialize.ts | 169 +++++++++ .../__generated__/Router/write/initialize.ts | 139 ++++++++ 48 files changed, 4513 insertions(+), 60 deletions(-) create mode 100644 .changeset/young-carrots-burn.md create mode 100644 packages/thirdweb/scripts/generate/abis/assets/AssetEntrypointERC20.json create mode 100644 packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json create mode 100644 packages/thirdweb/scripts/generate/abis/assets/ERC20Asset.json create mode 100644 packages/thirdweb/scripts/generate/abis/assets/FeeManager.json create mode 100644 packages/thirdweb/scripts/generate/abis/assets/Router.json create mode 100644 packages/thirdweb/src/assets/bootstrap.ts create mode 100644 packages/thirdweb/src/assets/bootstrapinfra.test.ts create mode 100644 packages/thirdweb/src/assets/constants.ts create mode 100644 packages/thirdweb/src/assets/create-token-by-impl-config.ts create mode 100644 packages/thirdweb/src/assets/create-token.test.ts create mode 100644 packages/thirdweb/src/assets/create-token.ts create mode 100644 packages/thirdweb/src/assets/deploy-infra-proxy.ts create mode 100644 packages/thirdweb/src/assets/distribute-token.test.ts create mode 100644 packages/thirdweb/src/assets/distribute-token.ts create mode 100644 packages/thirdweb/src/assets/get-entrypoint-erc20.ts create mode 100644 packages/thirdweb/src/assets/get-erc20-asset-impl.ts create mode 100644 packages/thirdweb/src/assets/get-initcode-hash-1967.ts create mode 100644 packages/thirdweb/src/assets/index.ts create mode 100644 packages/thirdweb/src/assets/is-router-enabled.ts create mode 100644 packages/thirdweb/src/assets/token-utils.ts create mode 100644 packages/thirdweb/src/assets/types.ts create mode 100644 packages/thirdweb/src/exports/assets.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetDistributed.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts diff --git a/.changeset/young-carrots-burn.md b/.changeset/young-carrots-burn.md new file mode 100644 index 00000000000..d5edf4799bf --- /dev/null +++ b/.changeset/young-carrots-burn.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +ERC20 assets diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index 3b003a62bff..fd447b0a0f2 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -143,70 +143,36 @@ "import": "./dist/esm/exports/engine.js", "default": "./dist/cjs/exports/engine.js" }, + "./assets": { + "types": "./dist/types/exports/assets.d.ts", + "import": "./dist/esm/exports/assets.js", + "default": "./dist/cjs/exports/assets.js" + }, "./package.json": "./package.json" }, "typesVersions": { "*": { - "adapters/*": [ - "./dist/types/exports/adapters/*.d.ts" - ], - "auth": [ - "./dist/types/exports/auth.d.ts" - ], - "chains": [ - "./dist/types/exports/chains.d.ts" - ], - "contract": [ - "./dist/types/exports/contract.d.ts" - ], - "deploys": [ - "./dist/types/exports/deploys.d.ts" - ], - "event": [ - "./dist/types/exports/event.d.ts" - ], - "extensions/*": [ - "./dist/types/exports/extensions/*.d.ts" - ], - "pay": [ - "./dist/types/exports/pay.d.ts" - ], - "react": [ - "./dist/types/exports/react.d.ts" - ], - "react-native": [ - "./dist/types/exports/react.native.d.ts" - ], - "rpc": [ - "./dist/types/exports/rpc.d.ts" - ], - "storage": [ - "./dist/types/exports/storage.d.ts" - ], - "transaction": [ - "./dist/types/exports/transaction.d.ts" - ], - "utils": [ - "./dist/types/exports/utils.d.ts" - ], - "wallets": [ - "./dist/types/exports/wallets.d.ts" - ], - "wallets/*": [ - "./dist/types/exports/wallets/*.d.ts" - ], - "modules": [ - "./dist/types/exports/modules.d.ts" - ], - "social": [ - "./dist/types/exports/social.d.ts" - ], - "ai": [ - "./dist/types/exports/ai.d.ts" - ], - "bridge": [ - "./dist/types/exports/bridge.d.ts" - ] + "adapters/*": ["./dist/types/exports/adapters/*.d.ts"], + "auth": ["./dist/types/exports/auth.d.ts"], + "chains": ["./dist/types/exports/chains.d.ts"], + "contract": ["./dist/types/exports/contract.d.ts"], + "deploys": ["./dist/types/exports/deploys.d.ts"], + "event": ["./dist/types/exports/event.d.ts"], + "extensions/*": ["./dist/types/exports/extensions/*.d.ts"], + "pay": ["./dist/types/exports/pay.d.ts"], + "react": ["./dist/types/exports/react.d.ts"], + "react-native": ["./dist/types/exports/react.native.d.ts"], + "rpc": ["./dist/types/exports/rpc.d.ts"], + "storage": ["./dist/types/exports/storage.d.ts"], + "transaction": ["./dist/types/exports/transaction.d.ts"], + "utils": ["./dist/types/exports/utils.d.ts"], + "wallets": ["./dist/types/exports/wallets.d.ts"], + "wallets/*": ["./dist/types/exports/wallets/*.d.ts"], + "modules": ["./dist/types/exports/modules.d.ts"], + "social": ["./dist/types/exports/social.d.ts"], + "ai": ["./dist/types/exports/ai.d.ts"], + "bridge": ["./dist/types/exports/bridge.d.ts"], + "assets": ["./dist/types/exports/assets.d.ts"] } }, "browser": { diff --git a/packages/thirdweb/scripts/generate/abis/assets/AssetEntrypointERC20.json b/packages/thirdweb/scripts/generate/abis/assets/AssetEntrypointERC20.json new file mode 100644 index 00000000000..fb70492cbb3 --- /dev/null +++ b/packages/thirdweb/scripts/generate/abis/assets/AssetEntrypointERC20.json @@ -0,0 +1,34 @@ +[ + "function initialize(address _owner, address _router, address _rewardLocker)", + "function setRouter(address router)", + "function getRouter() external view returns (address router)", + "function setRewardLocker(address rewardLocker)", + "function getRewardLocker() external view returns (address rewardLocker)", + "function addImplementation((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, bool isDefault)", + "function getImplementation(bytes32 contractId) external view returns ((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData))", + "function createAsset(address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) createParams) external returns (address asset)", + "function createAssetById(bytes32 contractId, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) public returns (address asset)", + "function createAssetByImplementationConfig((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) external returns (address asset)", + "function buyAsset(address asset, (address recipient, address referrer, address tokenIn, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes data) params) external payable returns (uint256 amountIn, uint256 amountOut)", + "function sellAsset(address asset, (address recipient, address tokenOut, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes data) params) external returns (uint256 amountIn, uint256 amountOut)", + "function listAsset(address asset, (address tokenIn, uint256 price, uint256 duration, bytes data) params) external", + "function distributeAsset(address asset, (uint256 amount, address recipient)[] contents) external payable", + "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes32 createHookData)", + "event RouterUpdated(address indexed router)", + "event RewardLockerUpdated(address indexed locker)", + "event AssetCreated(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", + "event AssetDistributed(address asset, uint256 recipientCount, uint256 totalAmount)", + "error InvalidValue()", + "error InvalidContractId()", + "error ValueTransferFailed()", + "error ArrayLengthMismatch()", + "error AssetNotRegistered()", + "error InvalidCreator()", + "error InvalidInitializer()", + "error InvalidImplementation()", + "error InvalidDeploymentArgs()", + "error InvalidCreateHook()", + "error CreateHookFailed()", + "error CreateHookReverted(string reason)", + "error ImplementationAlreadyExists()" +] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json b/packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json new file mode 100644 index 00000000000..766a994a655 --- /dev/null +++ b/packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json @@ -0,0 +1,5 @@ +[ + "function deployInfraProxyDeterministic(address implementation, bytes data, bytes32 salt, bytes extraData) public returns (address deployedProxy)", + "event AssetInfraDeployed(address indexed implementation, address indexed proxy, bytes32 inputSalt, bytes data, bytes extraData)", + "error ProxyDeploymentFailed()" +] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/assets/ERC20Asset.json b/packages/thirdweb/scripts/generate/abis/assets/ERC20Asset.json new file mode 100644 index 00000000000..ca2259afcf3 --- /dev/null +++ b/packages/thirdweb/scripts/generate/abis/assets/ERC20Asset.json @@ -0,0 +1,3 @@ +[ + "function initialize(string _name, string _symbol, string _contractURI, uint256 _maxSupply, address _owner) external" +] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/assets/FeeManager.json b/packages/thirdweb/scripts/generate/abis/assets/FeeManager.json new file mode 100644 index 00000000000..f4673cf7699 --- /dev/null +++ b/packages/thirdweb/scripts/generate/abis/assets/FeeManager.json @@ -0,0 +1,3 @@ +[ + "function initialize(address _owner, address _feeRecipient, uint96 _defaultFee) external" +] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/assets/Router.json b/packages/thirdweb/scripts/generate/abis/assets/Router.json new file mode 100644 index 00000000000..15e07b4d6b5 --- /dev/null +++ b/packages/thirdweb/scripts/generate/abis/assets/Router.json @@ -0,0 +1,3 @@ +[ + "function initialize(address _owner) external" +] \ No newline at end of file diff --git a/packages/thirdweb/src/assets/bootstrap.ts b/packages/thirdweb/src/assets/bootstrap.ts new file mode 100644 index 00000000000..7378b6a1df0 --- /dev/null +++ b/packages/thirdweb/src/assets/bootstrap.ts @@ -0,0 +1,331 @@ +import { encodePacked } from "viem"; +import { ZERO_ADDRESS } from "../constants/addresses.js"; +import { getContract } from "../contract/contract.js"; +import { getOrDeployInfraContract } from "../contract/deployment/utils/bootstrap.js"; +import { + deployCreate2Factory, + getDeployedCreate2Factory, +} from "../contract/deployment/utils/create-2-factory.js"; +import { getDeployedInfraContract } from "../contract/deployment/utils/infra.js"; +import { parseEventLogs } from "../event/actions/parse-logs.js"; +import { assetInfraDeployedEvent } from "../extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.js"; +import { deployInfraProxyDeterministic } from "../extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.js"; +import { encodeInitialize as encodeFeeManagerInit } from "../extensions/assets/__generated__/FeeManager/write/initialize.js"; +import { encodeInitialize as encodeRouterInit } from "../extensions/assets/__generated__/Router/write/initialize.js"; +import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; +import { keccakId } from "../utils/any-evm/keccak-id.js"; +import { isContractDeployed } from "../utils/bytecode/is-contract-deployed.js"; +import { keccak256 } from "../utils/hashing/keccak256.js"; +import type { + ClientAndChain, + ClientAndChainAndAccount, +} from "../utils/types.js"; +import { + DEFAULT_FEE_BPS, + DEFAULT_FEE_RECIPIENT, + DEFAULT_INFRA_ADMIN, + DEFAULT_SALT, + IMPLEMENTATIONS, +} from "./constants.js"; +import { deployInfraProxy } from "./deploy-infra-proxy.js"; +import { getInitCodeHashERC1967 } from "./get-initcode-hash-1967.js"; + +export async function deployRouter(options: ClientAndChainAndAccount) { + let [feeManager, marketSaleImpl] = await Promise.all([ + getDeployedFeeManager(options), + getDeployedInfraContract({ + ...options, + contractId: "MarketSale", + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }), + ]); + + if (!feeManager) { + feeManager = await deployFeeManager(options); + } + + if (!marketSaleImpl) { + marketSaleImpl = await getOrDeployInfraContract({ + ...options, + contractId: "MarketSale", + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }); + } + + const assetFactory = await getDeployedAssetFactory(options); + if (!assetFactory) { + throw new Error(`Asset factory not found for chain: ${options.chain.id}`); + } + + const routerImpl = await getOrDeployInfraContract({ + ...options, + contractId: "Router", + constructorParams: { + _marketSaleImplementation: marketSaleImpl.address, + _feeManager: feeManager.address, + }, + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }); + + // encode init data + const initData = encodeRouterInit({ + owner: DEFAULT_INFRA_ADMIN, + }); + + const routerProxyAddress = await deployInfraProxy({ + ...options, + initData, + extraData: "0x", + implementationAddress: routerImpl.address, + assetFactory, + }); + + return getContract({ + client: options.client, + chain: options.chain, + address: routerProxyAddress, + }); +} + +export async function deployRewardLocker(options: ClientAndChainAndAccount) { + let v3PositionManager = ZERO_ADDRESS; + let v4PositionManager = ZERO_ADDRESS; + + const implementations = IMPLEMENTATIONS[options.chain.id]; + + if (implementations) { + v3PositionManager = implementations.V3PositionManager || ZERO_ADDRESS; + v4PositionManager = implementations.V4PositionManager || ZERO_ADDRESS; + } + + let feeManager = await getDeployedFeeManager(options); + + if (!feeManager) { + feeManager = await deployFeeManager(options); + } + + return await getOrDeployInfraContract({ + ...options, + contractId: "RewardLocker", + constructorParams: { + _feeManager: feeManager.address, + _v3PositionManager: v3PositionManager, + _v4PositionManager: v4PositionManager, + }, + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }); +} + +export async function deployFeeManager(options: ClientAndChainAndAccount) { + // asset factory + let assetFactory = await getDeployedAssetFactory(options); + if (!assetFactory) { + assetFactory = await deployAssetFactory(options); + } + + // fee manager implementation + const feeManagerImpl = await getOrDeployInfraContract({ + ...options, + contractId: "FeeManager", + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }); + + // encode init data + const initData = encodeFeeManagerInit({ + owner: DEFAULT_INFRA_ADMIN, + feeRecipient: DEFAULT_FEE_RECIPIENT, + defaultFee: DEFAULT_FEE_BPS, + }); + + // fee manager proxy deployment + const transaction = deployInfraProxyDeterministic({ + contract: assetFactory, + implementation: feeManagerImpl.address, + data: initData, + extraData: "0x", + salt: keccakId(DEFAULT_SALT), + }); + + const receipt = await sendAndConfirmTransaction({ + transaction, + account: options.account, + }); + const proxyEvent = assetInfraDeployedEvent(); + const decodedEvent = parseEventLogs({ + events: [proxyEvent], + logs: receipt.logs, + }); + + if (decodedEvent.length === 0 || !decodedEvent[0]) { + throw new Error( + `No AssetInfraDeployed event found in transaction: ${receipt.transactionHash}`, + ); + } + + const feeManagerProxyAddress = decodedEvent[0]?.args.proxy; + + return getContract({ + client: options.client, + chain: options.chain, + address: feeManagerProxyAddress, + }); +} + +export async function deployAssetFactory(options: ClientAndChainAndAccount) { + // create2 factory + const create2Factory = await getDeployedCreate2Factory(options); + if (!create2Factory) { + await deployCreate2Factory(options); + } + + // asset factory + return getOrDeployInfraContract({ + ...options, + contractId: "AssetInfraDeployer", + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }); +} + +export async function getDeployedRouter(options: ClientAndChain) { + const [feeManager, marketSaleImpl, assetFactory] = await Promise.all([ + getDeployedFeeManager(options), + getDeployedInfraContract({ + ...options, + contractId: "MarketSale", + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }), + getDeployedAssetFactory(options), + ]); + + if (!feeManager || !marketSaleImpl || !assetFactory) { + return null; + } + + const routerImpl = await getDeployedInfraContract({ + ...options, + contractId: "Router", + constructorParams: { + _marketSaleImplementation: marketSaleImpl.address, + _feeManager: feeManager.address, + }, + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }); + + if (!routerImpl) { + return null; + } + + const initCodeHash = getInitCodeHashERC1967(routerImpl.address); + + const saltHash = keccak256( + encodePacked( + ["bytes32", "address"], + [keccakId(DEFAULT_SALT), DEFAULT_INFRA_ADMIN], + ), + ); + + const hashedDeployInfo = keccak256( + encodePacked( + ["bytes1", "address", "bytes32", "bytes32"], + ["0xff", assetFactory.address, saltHash, initCodeHash], + ), + ); + + const routerProxyAddress = `0x${hashedDeployInfo.slice(26)}`; + const routerProxy = getContract({ + client: options.client, + chain: options.chain, + address: routerProxyAddress, + }); + + if (!(await isContractDeployed(routerProxy))) { + return null; + } + + return routerProxy; +} + +export async function getDeployedRewardLocker(options: ClientAndChain) { + let v3PositionManager = ZERO_ADDRESS; + let v4PositionManager = ZERO_ADDRESS; + + const implementations = IMPLEMENTATIONS[options.chain.id]; + + if (implementations) { + v3PositionManager = implementations.V3PositionManager || ZERO_ADDRESS; + v4PositionManager = implementations.V4PositionManager || ZERO_ADDRESS; + } + + const feeManager = await getDeployedFeeManager(options); + + if (!feeManager) { + return null; + } + + return await getDeployedInfraContract({ + ...options, + contractId: "RewardLocker", + constructorParams: { + _feeManager: feeManager.address, + _v3PositionManager: v3PositionManager, + _v4PositionManager: v4PositionManager, + }, + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }); +} + +export async function getDeployedFeeManager(options: ClientAndChain) { + const [assetFactory, feeManagerImpl] = await Promise.all([ + getDeployedAssetFactory(options), + getDeployedInfraContract({ + ...options, + contractId: "FeeManager", + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }), + ]); + + if (!assetFactory || !feeManagerImpl) { + return null; + } + + const initCodeHash = getInitCodeHashERC1967(feeManagerImpl.address); + + const saltHash = keccak256( + encodePacked( + ["bytes32", "address"], + [keccakId(DEFAULT_SALT), DEFAULT_INFRA_ADMIN], + ), + ); + + const hashedDeployInfo = keccak256( + encodePacked( + ["bytes1", "address", "bytes32", "bytes32"], + ["0xff", assetFactory.address, saltHash, initCodeHash], + ), + ); + + const feeManagerProxyAddress = `0x${hashedDeployInfo.slice(26)}`; + const feeManagerProxy = getContract({ + client: options.client, + chain: options.chain, + address: feeManagerProxyAddress, + }); + + if (!(await isContractDeployed(feeManagerProxy))) { + return null; + } + + return feeManagerProxy; +} + +export async function getDeployedAssetFactory(args: ClientAndChain) { + const assetFactory = await getDeployedInfraContract({ + ...args, + contractId: "AssetInfraDeployer", + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }); + if (!assetFactory) { + return null; + } + return assetFactory; +} diff --git a/packages/thirdweb/src/assets/bootstrapinfra.test.ts b/packages/thirdweb/src/assets/bootstrapinfra.test.ts new file mode 100644 index 00000000000..fa767cb5ba3 --- /dev/null +++ b/packages/thirdweb/src/assets/bootstrapinfra.test.ts @@ -0,0 +1,25 @@ +import { describe, expect, it } from "vitest"; +import { ANVIL_CHAIN } from "../../test/src/chains.js"; +import { TEST_CLIENT } from "../../test/src/test-clients.js"; +import { TEST_ACCOUNT_A } from "../../test/src/test-wallets.js"; +import { deployFeeManager, getDeployedFeeManager } from "./bootstrap.js"; + +describe.runIf(process.env.TW_SECRET_KEY)("bootstrap asset infra", () => { + it("should bootstrap fee manager", async () => { + const feeManager = await deployFeeManager({ + chain: ANVIL_CHAIN, + client: TEST_CLIENT, + account: TEST_ACCOUNT_A, + }); + + const expectedFeeManager = await getDeployedFeeManager({ + chain: ANVIL_CHAIN, + client: TEST_CLIENT, + }); + + expect(expectedFeeManager).toBeDefined(); + expect(feeManager.address.toLowerCase()).to.equal( + expectedFeeManager?.address?.toLowerCase(), + ); + }); +}); diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts new file mode 100644 index 00000000000..1948b75d5de --- /dev/null +++ b/packages/thirdweb/src/assets/constants.ts @@ -0,0 +1,34 @@ +export const DEFAULT_MAX_SUPPLY_ERC20 = 10_000_000_000n; +export const DEFAULT_POOL_FEE = 10000; +export const DEFAULT_POOL_INITIAL_TICK = 230200; +export const DEFAULT_INFRA_ADMIN = "0x1a472863cf21d5aa27f417df9140400324c48f22"; +export const DEFAULT_FEE_RECIPIENT = + "0x1af20c6b23373350ad464700b5965ce4b0d2ad94"; +export const DEFAULT_FEE_BPS = 50n; +export const DEFAULT_SALT = "thirdweb"; + +export const IMPLEMENTATIONS: Record> = { + [84532]: { + AssetEntrypointERC20: "0x79C1236cFe59f1f088A15Da08b0D8667387d9703", + ERC20AssetImpl: "", + V3PositionManager: "", + V4PositionManager: "", + }, +}; + +// biome-ignore lint/nursery/noEnum: FIXME +export enum ImplementationType { + CLONE = 0, + CLONE_WITH_IMMUTABLE_ARGS = 1, + ERC1967 = 2, + ERC1967_WITH_IMMUTABLE_ARGS = 3, +} + +// biome-ignore lint/nursery/noEnum: FIXME +export enum CreateHook { + NONE = 0, // do nothing + CREATE_POOL = 1, // create a DEX pool via Router + CREATE_MARKET = 2, // create a market sale via Router + DISTRIBUTE = 3, // distribute tokens to recipients + EXTERNAL_HOOK = 4, // call an external hook contract +} diff --git a/packages/thirdweb/src/assets/create-token-by-impl-config.ts b/packages/thirdweb/src/assets/create-token-by-impl-config.ts new file mode 100644 index 00000000000..97a8bb75d67 --- /dev/null +++ b/packages/thirdweb/src/assets/create-token-by-impl-config.ts @@ -0,0 +1,130 @@ +import type { Hex } from "viem"; +import { NATIVE_TOKEN_ADDRESS, ZERO_ADDRESS } from "../constants/addresses.js"; +import { getContract } from "../contract/contract.js"; +import { parseEventLogs } from "../event/actions/parse-logs.js"; +import { assetCreatedEvent } from "../extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.js"; +import { createAssetByImplementationConfig } from "../extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.js"; +import { decimals } from "../extensions/erc20/read/decimals.js"; +import { eth_blockNumber } from "../rpc/actions/eth_blockNumber.js"; +import { getRpcClient } from "../rpc/rpc.js"; +import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; +import { keccakId } from "../utils/any-evm/keccak-id.js"; +import { toHex } from "../utils/encoding/hex.js"; +import { toUnits } from "../utils/units.js"; +import { + CreateHook, + DEFAULT_MAX_SUPPLY_ERC20, + ImplementationType, +} from "./constants.js"; +import { getOrDeployEntrypointERC20 } from "./get-entrypoint-erc20.js"; +import { getOrDeployERC20AssetImpl } from "./get-erc20-asset-impl.js"; +import { + encodeInitParams, + encodeMarketConfig, + encodePoolConfig, +} from "./token-utils.js"; +import type { CreateTokenOptions } from "./types.js"; + +export async function createTokenByImplConfig(options: CreateTokenOptions) { + const { client, chain, account, params, launchConfig } = options; + + const creator = params.owner || account.address; + + const encodedInitData = await encodeInitParams({ + client, + params, + creator, + }); + + const rpcRequest = getRpcClient({ + ...options, + }); + const blockNumber = await eth_blockNumber(rpcRequest); + const salt = options.salt + ? options.salt.startsWith("0x") && options.salt.length === 66 + ? (options.salt as `0x${string}`) + : keccakId(options.salt) + : toHex(blockNumber, { + size: 32, + }); + + const entrypoint = await getOrDeployEntrypointERC20(options); + const tokenImpl = await getOrDeployERC20AssetImpl(options); + + let hookData: Hex = "0x"; + let amount = toUnits( + params.maxSupply.toString() || DEFAULT_MAX_SUPPLY_ERC20.toString(), + 18, + ); + if (launchConfig?.kind === "pool") { + hookData = encodePoolConfig(launchConfig.config); + amount = toUnits( + launchConfig.config.amount.toString() || + DEFAULT_MAX_SUPPLY_ERC20.toString(), + 18, + ); + } else if (launchConfig?.kind === "market") { + const currencyContract = + launchConfig.config.tokenOut && + launchConfig.config.tokenOut !== NATIVE_TOKEN_ADDRESS + ? getContract({ + client, + chain, + address: launchConfig.config.tokenOut, + }) + : null; + const currencyDecimals = launchConfig.config.priceDenominator + ? launchConfig.config.priceDenominator + : currencyContract + ? await decimals({ + contract: currencyContract, + }) + : 18; + + hookData = encodeMarketConfig({ + ...launchConfig.config, + decimals: currencyDecimals, + }); + } + + const transaction = createAssetByImplementationConfig({ + contract: entrypoint, + creator, + config: { + contractId: keccakId("ERC20Asset"), + implementation: tokenImpl.address, + implementationType: ImplementationType.ERC1967, + createHook: + launchConfig?.kind === "pool" + ? CreateHook.CREATE_POOL + : launchConfig?.kind === "market" + ? CreateHook.CREATE_MARKET + : launchConfig?.kind === "distribute" + ? CreateHook.DISTRIBUTE + : CreateHook.NONE, + createHookData: hookData, + }, + params: { + amount, + referrer: ZERO_ADDRESS, + salt, + data: encodedInitData, + hookData, + }, + }); + + const receipt = await sendAndConfirmTransaction({ account, transaction }); + const assetEvent = assetCreatedEvent(); + const decodedEvent = parseEventLogs({ + events: [assetEvent], + logs: receipt.logs, + }); + + if (decodedEvent.length === 0 || !decodedEvent[0]) { + throw new Error( + `No AssetCreated event found in transaction: ${receipt.transactionHash}`, + ); + } + + return decodedEvent[0]?.args.asset; +} diff --git a/packages/thirdweb/src/assets/create-token.test.ts b/packages/thirdweb/src/assets/create-token.test.ts new file mode 100644 index 00000000000..cabaad3602d --- /dev/null +++ b/packages/thirdweb/src/assets/create-token.test.ts @@ -0,0 +1,45 @@ +import { totalSupply } from "src/extensions/erc20/__generated__/IERC20/read/totalSupply.js"; +import { describe, expect, it } from "vitest"; +import { ANVIL_CHAIN } from "../../test/src/chains.js"; +import { TEST_CLIENT } from "../../test/src/test-clients.js"; +import { TEST_ACCOUNT_A } from "../../test/src/test-wallets.js"; +import { getContract } from "../contract/contract.js"; +import { name } from "../extensions/common/read/name.js"; +// import { totalSupply } from "../extensions/erc20/__generated__/IERC20/read/totalSupply.js"; +import { createTokenByImplConfig } from "./create-token-by-impl-config.js"; + +describe.runIf(process.env.TW_SECRET_KEY)("create token by impl config", () => { + it("should create token without pool", async () => { + const token = await createTokenByImplConfig({ + chain: ANVIL_CHAIN, + client: TEST_CLIENT, + account: TEST_ACCOUNT_A, + params: { + name: "Test", + maxSupply: 10_00n, + }, + salt: "salt123", + }); + + expect(token).toBeDefined(); + + const tokenName = await name({ + contract: getContract({ + client: TEST_CLIENT, + chain: ANVIL_CHAIN, + address: token, + }), + }); + expect(tokenName).to.eq("Test"); + + // const supply = await totalSupply({ + // contract: getContract({ + // client: TEST_CLIENT, + // chain: ANVIL_CHAIN, + // address: token, + // }), + // }); + + // console.log("supply: ", supply); + }); +}); diff --git a/packages/thirdweb/src/assets/create-token.ts b/packages/thirdweb/src/assets/create-token.ts new file mode 100644 index 00000000000..c46967e9e69 --- /dev/null +++ b/packages/thirdweb/src/assets/create-token.ts @@ -0,0 +1,110 @@ +import type { Hex } from "viem"; +import { NATIVE_TOKEN_ADDRESS, ZERO_ADDRESS } from "../constants/addresses.js"; +import { getContract } from "../contract/contract.js"; +import { parseEventLogs } from "../event/actions/parse-logs.js"; +import { assetCreatedEvent } from "../extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.js"; +import { createAsset } from "../extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.js"; +import { decimals } from "../extensions/erc20/read/decimals.js"; +import { eth_blockNumber } from "../rpc/actions/eth_blockNumber.js"; +import { getRpcClient } from "../rpc/rpc.js"; +import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; +import { keccakId } from "../utils/any-evm/keccak-id.js"; +import { toHex } from "../utils/encoding/hex.js"; +import { toUnits } from "../utils/units.js"; +import { DEFAULT_MAX_SUPPLY_ERC20 } from "./constants.js"; +import { getOrDeployEntrypointERC20 } from "./get-entrypoint-erc20.js"; +import { + encodeInitParams, + encodeMarketConfig, + encodePoolConfig, +} from "./token-utils.js"; +import type { CreateTokenOptions } from "./types.js"; + +export async function createToken(options: CreateTokenOptions) { + const { client, chain, account, params, launchConfig } = options; + + const creator = params.owner || account.address; + + const encodedInitData = await encodeInitParams({ + client, + params, + creator, + }); + + const rpcRequest = getRpcClient({ + ...options, + }); + const blockNumber = await eth_blockNumber(rpcRequest); + const salt = options.salt + ? options.salt.startsWith("0x") && options.salt.length === 66 + ? (options.salt as `0x${string}`) + : keccakId(options.salt) + : toHex(blockNumber, { + size: 32, + }); + + const entrypoint = await getOrDeployEntrypointERC20(options); + + let hookData: Hex = "0x"; + let amount = toUnits( + params.maxSupply.toString() || DEFAULT_MAX_SUPPLY_ERC20.toString(), + 18, + ); + if (launchConfig?.kind === "pool") { + hookData = encodePoolConfig(launchConfig.config); + amount = toUnits( + launchConfig.config.amount.toString() || + DEFAULT_MAX_SUPPLY_ERC20.toString(), + 18, + ); + } else if (launchConfig?.kind === "market") { + const currencyContract = + launchConfig.config.tokenOut && + launchConfig.config.tokenOut !== NATIVE_TOKEN_ADDRESS + ? getContract({ + client, + chain, + address: launchConfig.config.tokenOut, + }) + : null; + const currencyDecimals = launchConfig.config.priceDenominator + ? launchConfig.config.priceDenominator + : currencyContract + ? await decimals({ + contract: currencyContract, + }) + : 18; + + hookData = encodeMarketConfig({ + ...launchConfig.config, + decimals: currencyDecimals, + }); + } + + const transaction = createAsset({ + contract: entrypoint, + creator, + createParams: { + amount, + referrer: ZERO_ADDRESS, + salt, + data: encodedInitData, + hookData, + }, + }); + + const receipt = await sendAndConfirmTransaction({ account, transaction }); + const assetEvent = assetCreatedEvent(); + const decodedEvent = parseEventLogs({ + events: [assetEvent], + logs: receipt.logs, + }); + + if (decodedEvent.length === 0 || !decodedEvent[0]) { + throw new Error( + `No AssetCreated event found in transaction: ${receipt.transactionHash}`, + ); + } + + return decodedEvent[0]?.args.asset; +} diff --git a/packages/thirdweb/src/assets/deploy-infra-proxy.ts b/packages/thirdweb/src/assets/deploy-infra-proxy.ts new file mode 100644 index 00000000000..d85c7a84f4e --- /dev/null +++ b/packages/thirdweb/src/assets/deploy-infra-proxy.ts @@ -0,0 +1,44 @@ +import type { Hex } from "viem"; +import type { ThirdwebContract } from "../contract/contract.js"; +import { parseEventLogs } from "../event/actions/parse-logs.js"; +import { assetInfraDeployedEvent } from "../extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.js"; +import { deployInfraProxyDeterministic } from "../extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.js"; +import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; +import { keccakId } from "../utils/any-evm/keccak-id.js"; +import type { ClientAndChainAndAccount } from "../utils/types.js"; +import { DEFAULT_SALT } from "./constants.js"; + +export async function deployInfraProxy( + options: ClientAndChainAndAccount & { + assetFactory: ThirdwebContract; + implementationAddress: string; + initData: Hex; + extraData: Hex; + }, +) { + const transaction = deployInfraProxyDeterministic({ + contract: options.assetFactory, + implementation: options.implementationAddress, + data: options.initData, + extraData: options.extraData, + salt: keccakId(DEFAULT_SALT), + }); + + const receipt = await sendAndConfirmTransaction({ + transaction, + account: options.account, + }); + const proxyEvent = assetInfraDeployedEvent(); + const decodedEvent = parseEventLogs({ + events: [proxyEvent], + logs: receipt.logs, + }); + + if (decodedEvent.length === 0 || !decodedEvent[0]) { + throw new Error( + `No AssetInfraDeployed event found in transaction: ${receipt.transactionHash}`, + ); + } + + return decodedEvent[0]?.args.proxy; +} diff --git a/packages/thirdweb/src/assets/distribute-token.test.ts b/packages/thirdweb/src/assets/distribute-token.test.ts new file mode 100644 index 00000000000..444f1a89b93 --- /dev/null +++ b/packages/thirdweb/src/assets/distribute-token.test.ts @@ -0,0 +1,116 @@ +import { type ThirdwebContract, getContract } from "src/contract/contract.js"; +import { getBalance } from "src/extensions/erc20/read/getBalance.js"; +import { approve } from "src/extensions/erc20/write/approve.js"; +import { sendAndConfirmTransaction } from "src/transaction/actions/send-and-confirm-transaction.js"; +import { toUnits } from "src/utils/units.js"; +import { beforeAll, describe, expect, it } from "vitest"; +import { ANVIL_CHAIN } from "../../test/src/chains.js"; +import { TEST_CLIENT } from "../../test/src/test-clients.js"; +import { + TEST_ACCOUNT_A, + TEST_ACCOUNT_B, + TEST_ACCOUNT_C, + TEST_ACCOUNT_D, +} from "../../test/src/test-wallets.js"; +import { createTokenByImplConfig } from "./create-token-by-impl-config.js"; +import { distributeToken } from "./distribute-token.js"; +import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; + +describe.runIf(process.env.TW_SECRET_KEY)( + "create token by impl config", + { + timeout: 20000, + }, + () => { + let token: ThirdwebContract; + beforeAll(async () => { + // create token + const tokenAddress = await createTokenByImplConfig({ + chain: ANVIL_CHAIN, + client: TEST_CLIENT, + account: TEST_ACCOUNT_A, + params: { + name: "Test", + maxSupply: 10_000_000_000n, + }, + salt: "salt123", + }); + + token = getContract({ + address: tokenAddress, + client: TEST_CLIENT, + chain: ANVIL_CHAIN, + }); + + // approve tokens to entrypoint for distribution + const entrypoint = await getDeployedEntrypointERC20({ + chain: ANVIL_CHAIN, + client: TEST_CLIENT, + }); + + const approvalTx = approve({ + contract: token, + spender: entrypoint?.address as string, + amountWei: toUnits("1000", 18), + }); + await sendAndConfirmTransaction({ + transaction: approvalTx, + account: TEST_ACCOUNT_A, + }); + }, 20000); + + it("should distrbute tokens to specified recipients", async () => { + const contents = [ + { recipient: TEST_ACCOUNT_B.address, amount: 10n }, + { recipient: TEST_ACCOUNT_C.address, amount: 15n }, + { recipient: TEST_ACCOUNT_D.address, amount: 20n }, + ]; + + const transaction = await distributeToken({ + client: TEST_CLIENT, + chain: ANVIL_CHAIN, + tokenAddress: token.address, + contents, + }); + + await sendAndConfirmTransaction({ transaction, account: TEST_ACCOUNT_A }); + + const balanceB = ( + await getBalance({ + contract: token, + address: TEST_ACCOUNT_B.address, + }) + ).value; + + const balanceC = ( + await getBalance({ + contract: token, + address: TEST_ACCOUNT_C.address, + }) + ).value; + + const balanceD = ( + await getBalance({ + contract: token, + address: TEST_ACCOUNT_D.address, + }) + ).value; + + // admin balance + const balanceA = ( + await getBalance({ + contract: token, + address: TEST_ACCOUNT_A.address, + }) + ).value; + + expect(balanceB).to.equal(toUnits("10", 18)); + expect(balanceC).to.equal(toUnits("15", 18)); + expect(balanceD).to.equal(toUnits("20", 18)); + + expect(balanceA).to.equal( + toUnits("10000000000", 18) - balanceB - balanceC - balanceD, + ); + }); + }, +); diff --git a/packages/thirdweb/src/assets/distribute-token.ts b/packages/thirdweb/src/assets/distribute-token.ts new file mode 100644 index 00000000000..6d4ac1f845a --- /dev/null +++ b/packages/thirdweb/src/assets/distribute-token.ts @@ -0,0 +1,26 @@ +import { distributeAsset } from "../extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.js"; +import type { ClientAndChain } from "../utils/types.js"; +import { toUnits } from "../utils/units.js"; +import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; +import type { DistributeContent } from "./types.js"; + +type DistrbuteTokenParams = ClientAndChain & { + tokenAddress: string; + contents: DistributeContent[]; +}; + +export async function distributeToken(options: DistrbuteTokenParams) { + const entrypoint = await getDeployedEntrypointERC20(options); + + if (!entrypoint) { + throw new Error(`Entrypoint not found on chain: ${options.chain.id}`); + } + + return distributeAsset({ + contract: entrypoint, + asset: options.tokenAddress, + contents: options.contents.map((a) => { + return { ...a, amount: toUnits(a.amount.toString(), 18) }; + }), + }); +} diff --git a/packages/thirdweb/src/assets/get-entrypoint-erc20.ts b/packages/thirdweb/src/assets/get-entrypoint-erc20.ts new file mode 100644 index 00000000000..1102bb203a4 --- /dev/null +++ b/packages/thirdweb/src/assets/get-entrypoint-erc20.ts @@ -0,0 +1,123 @@ +import { encodePacked } from "viem"; +import { ZERO_ADDRESS } from "../constants/addresses.js"; +import { type ThirdwebContract, getContract } from "../contract/contract.js"; +import { getOrDeployInfraContract } from "../contract/deployment/utils/bootstrap.js"; +import { getDeployedInfraContract } from "../contract/deployment/utils/infra.js"; +import { encodeInitialize } from "../extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.js"; +import { keccakId } from "../utils/any-evm/keccak-id.js"; +import { isContractDeployed } from "../utils/bytecode/is-contract-deployed.js"; +import { keccak256 } from "../utils/hashing/keccak256.js"; +import type { + ClientAndChain, + ClientAndChainAndAccount, +} from "../utils/types.js"; +import { deployAssetFactory, getDeployedAssetFactory } from "./bootstrap.js"; +import { + DEFAULT_INFRA_ADMIN, + DEFAULT_SALT, + IMPLEMENTATIONS, +} from "./constants.js"; +import { deployInfraProxy } from "./deploy-infra-proxy.js"; +import { getInitCodeHashERC1967 } from "./get-initcode-hash-1967.js"; + +export async function getOrDeployEntrypointERC20( + options: ClientAndChainAndAccount, +): Promise { + const implementations = IMPLEMENTATIONS[options.chain.id]; + + if (implementations?.AssetEntrypointERC20) { + return getContract({ + client: options.client, + chain: options.chain, + address: implementations.AssetEntrypointERC20, + }); + } + + let assetFactory = await getDeployedAssetFactory(options); + if (!assetFactory) { + assetFactory = await deployAssetFactory(options); + } + + const entrypointImpl = await getOrDeployInfraContract({ + ...options, + contractId: "AssetEntrypointERC20", + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + version: "0.0.2", + }); + + // encode init data + const initData = encodeInitialize({ + owner: DEFAULT_INFRA_ADMIN, + router: ZERO_ADDRESS, + rewardLocker: ZERO_ADDRESS, + }); + + const entyrpointProxyAddress = await deployInfraProxy({ + ...options, + initData, + extraData: "0x", + implementationAddress: entrypointImpl.address, + assetFactory, + }); + + return getContract({ + client: options.client, + chain: options.chain, + address: entyrpointProxyAddress, + }); +} + +export async function getDeployedEntrypointERC20(options: ClientAndChain) { + const implementations = IMPLEMENTATIONS[options.chain.id]; + + if (implementations?.AssetEntrypointERC20) { + return getContract({ + client: options.client, + chain: options.chain, + address: implementations.AssetEntrypointERC20, + }); + } + + const [assetFactory, entrypointImpl] = await Promise.all([ + getDeployedAssetFactory(options), + getDeployedInfraContract({ + ...options, + contractId: "AssetEntrypointERC20", + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + version: "0.0.2", + }), + ]); + + if (!assetFactory || !entrypointImpl) { + return null; + } + + const initCodeHash = getInitCodeHashERC1967(entrypointImpl.address); + + const saltHash = keccak256( + encodePacked( + ["bytes32", "address"], + [keccakId(DEFAULT_SALT), DEFAULT_INFRA_ADMIN], + ), + ); + + const hashedDeployInfo = keccak256( + encodePacked( + ["bytes1", "address", "bytes32", "bytes32"], + ["0xff", assetFactory.address, saltHash, initCodeHash], + ), + ); + + const entrypointProxyAddress = `0x${hashedDeployInfo.slice(26)}`; + const entrypointProxy = getContract({ + client: options.client, + chain: options.chain, + address: entrypointProxyAddress, + }); + + if (!(await isContractDeployed(entrypointProxy))) { + return null; + } + + return entrypointProxy; +} diff --git a/packages/thirdweb/src/assets/get-erc20-asset-impl.ts b/packages/thirdweb/src/assets/get-erc20-asset-impl.ts new file mode 100644 index 00000000000..d13a66e3251 --- /dev/null +++ b/packages/thirdweb/src/assets/get-erc20-asset-impl.ts @@ -0,0 +1,25 @@ +import { type ThirdwebContract, getContract } from "../contract/contract.js"; +import { getOrDeployInfraContract } from "../contract/deployment/utils/bootstrap.js"; +import type { ClientAndChainAndAccount } from "../utils/types.js"; +import {} from "./bootstrap.js"; +import { IMPLEMENTATIONS } from "./constants.js"; + +export async function getOrDeployERC20AssetImpl( + options: ClientAndChainAndAccount, +): Promise { + const implementations = IMPLEMENTATIONS[options.chain.id]; + + if (implementations?.ERC20AssetImpl) { + return getContract({ + client: options.client, + chain: options.chain, + address: implementations.ERC20AssetImpl, + }); + } + + return await getOrDeployInfraContract({ + ...options, + contractId: "ERC20Asset", + publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", + }); +} diff --git a/packages/thirdweb/src/assets/get-initcode-hash-1967.ts b/packages/thirdweb/src/assets/get-initcode-hash-1967.ts new file mode 100644 index 00000000000..d1b3bd3e50a --- /dev/null +++ b/packages/thirdweb/src/assets/get-initcode-hash-1967.ts @@ -0,0 +1,8 @@ +import { keccak256 } from "../utils/hashing/keccak256.js"; + +export function getInitCodeHashERC1967(implementation: string) { + // See `initCodeHashERC1967` - LibClone {https://github.com/vectorized/solady/blob/main/src/utils/LibClone.sol} + return keccak256( + `0x603d3d8160223d3973${implementation.toLowerCase().replace(/^0x/, "")}60095155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3`, + ); +} diff --git a/packages/thirdweb/src/assets/index.ts b/packages/thirdweb/src/assets/index.ts new file mode 100644 index 00000000000..102a7c09eb0 --- /dev/null +++ b/packages/thirdweb/src/assets/index.ts @@ -0,0 +1,16 @@ +export { + deployRouter, + deployRewardLocker, + deployFeeManager, + deployAssetFactory, + getDeployedRouter, + getDeployedRewardLocker, + getDeployedFeeManager, + getDeployedAssetFactory, +} from "./bootstrap.js"; +export { createToken } from "./create-token.js"; +export { createTokenByImplConfig } from "./create-token-by-impl-config.js"; +export { distributeToken } from "./distribute-token.js"; +export { isRouterEnabled } from "./is-router-enabled.js"; +export * from "./types.js"; +export { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; diff --git a/packages/thirdweb/src/assets/is-router-enabled.ts b/packages/thirdweb/src/assets/is-router-enabled.ts new file mode 100644 index 00000000000..9b23d0f1d2d --- /dev/null +++ b/packages/thirdweb/src/assets/is-router-enabled.ts @@ -0,0 +1,20 @@ +import { ZERO_ADDRESS } from "../constants/addresses.js"; +import { getRouter } from "../extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.js"; +import type { ClientAndChain } from "../utils/types.js"; +import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; + +export async function isRouterEnabled( + options: ClientAndChain, +): Promise { + const entrypoint = await getDeployedEntrypointERC20(options); + + if (!entrypoint) { + return false; + } + + const router = await getRouter({ + contract: entrypoint, + }); + + return router !== ZERO_ADDRESS; +} diff --git a/packages/thirdweb/src/assets/token-utils.ts b/packages/thirdweb/src/assets/token-utils.ts new file mode 100644 index 00000000000..fd81e9a05b3 --- /dev/null +++ b/packages/thirdweb/src/assets/token-utils.ts @@ -0,0 +1,122 @@ +import type { Hex } from "viem"; +import type { ThirdwebClient } from "../client/client.js"; +import { NATIVE_TOKEN_ADDRESS, ZERO_ADDRESS } from "../constants/addresses.js"; +import { encodeInitialize } from "../extensions/assets/__generated__/ERC20Asset/write/initialize.js"; +import { upload } from "../storage/upload.js"; +import { encodeAbiParameters } from "../utils/abi/encodeAbiParameters.js"; +import { toUnits } from "../utils/units.js"; +import { + DEFAULT_MAX_SUPPLY_ERC20, + DEFAULT_POOL_FEE, + DEFAULT_POOL_INITIAL_TICK, +} from "./constants.js"; +import type { MarketConfig, PoolConfig, TokenParams } from "./types.js"; + +export async function encodeInitParams(options: { + client: ThirdwebClient; + params: TokenParams; + creator: string; +}): Promise { + const { client, params, creator } = options; + + const contractURI = + options.params.contractURI || + (await upload({ + client, + files: [ + { + name: params.name, + description: params.description, + symbol: params.symbol, + image: params.image, + external_link: params.external_link, + social_urls: params.social_urls, + }, + ], + })) || + ""; + + return encodeInitialize({ + name: params.name, + symbol: params.symbol || params.name, + contractURI, + maxSupply: toUnits( + params.maxSupply.toString() || DEFAULT_MAX_SUPPLY_ERC20.toString(), + 18, + ), + owner: creator, + }); +} + +export function encodePoolConfig(poolConfig: PoolConfig): Hex { + const POOL_PARAMS = [ + { + type: "address", + name: "currency", + }, + { + type: "uint256", + name: "amount", + }, + { + type: "uint24", + name: "fee", + }, + { + type: "uint24", + name: "initialTick", + }, + ] as const; + + return encodeAbiParameters(POOL_PARAMS, [ + poolConfig.currency || NATIVE_TOKEN_ADDRESS, + toUnits(poolConfig.amount.toString(), 18), + poolConfig.fee || DEFAULT_POOL_FEE, + poolConfig.initialTick || DEFAULT_POOL_INITIAL_TICK, + ]); +} + +export function encodeMarketConfig( + marketConfig: MarketConfig & { decimals: number }, +): Hex { + const MARKET_PARAMS = [ + { + type: "address", + name: "tokenOut", + }, + { + type: "uint256", + name: "pricePerUnit", + }, + { + type: "uint8", + name: "priceDenominator", + }, + { + type: "uint48", + name: "startTime", + }, + { + type: "uint48", + name: "endTime", + }, + { + type: "address", + name: "hook", + }, + { + type: "bytes", + name: "hookInit", + }, + ] as const; + + return encodeAbiParameters(MARKET_PARAMS, [ + marketConfig.tokenOut || NATIVE_TOKEN_ADDRESS, + marketConfig.pricePerUnit, + marketConfig.priceDenominator || marketConfig.decimals || 18, + marketConfig.startTime || 0, + marketConfig.endTime || 0, + ZERO_ADDRESS, + "0x", + ]); +} diff --git a/packages/thirdweb/src/assets/types.ts b/packages/thirdweb/src/assets/types.ts new file mode 100644 index 00000000000..48766dff719 --- /dev/null +++ b/packages/thirdweb/src/assets/types.ts @@ -0,0 +1,51 @@ +import type { FileOrBufferOrString } from "../storage/upload/types.js"; +import type { ClientAndChainAndAccount } from "../utils/types.js"; + +export type TokenParams = { + name: string; + description?: string; + image?: FileOrBufferOrString; + external_link?: string; + social_urls?: Record; + symbol?: string; + contractURI?: string; + maxSupply: bigint; + owner?: string; +}; + +export type PoolConfig = { + amount: bigint; + currency?: string; + fee?: number; + initialTick?: number; +}; + +export type MarketConfig = { + tokenOut?: string; + pricePerUnit: bigint; + priceDenominator?: number; + startTime?: number; + endTime?: number; + hookAddress?: string; + hookInitData?: string; +}; + +export type DistributeContent = { + amount: bigint; + recipient: string; +}; + +type DistributeConfig = { + content: DistributeContent[]; +}; + +type LaunchConfig = + | { kind: "pool"; config: PoolConfig } + | { kind: "market"; config: MarketConfig } + | { kind: "distribute"; config: DistributeConfig }; + +export type CreateTokenOptions = ClientAndChainAndAccount & { + salt?: string; + params: TokenParams; + launchConfig?: LaunchConfig; +}; diff --git a/packages/thirdweb/src/exports/assets.ts b/packages/thirdweb/src/exports/assets.ts new file mode 100644 index 00000000000..13ffd0155f9 --- /dev/null +++ b/packages/thirdweb/src/exports/assets.ts @@ -0,0 +1 @@ +export * from "../assets/index.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts new file mode 100644 index 00000000000..96c1d21407b --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "AssetCreated" event. + */ +export type AssetCreatedEventFilters = Partial<{ + creator: AbiParameterToPrimitiveType<{ + type: "address"; + name: "creator"; + indexed: true; + }>; + asset: AbiParameterToPrimitiveType<{ + type: "address"; + name: "asset"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the AssetCreated event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { assetCreatedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * assetCreatedEvent({ + * creator: ..., + * asset: ..., + * }) + * ], + * }); + * ``` + */ +export function assetCreatedEvent(filters: AssetCreatedEventFilters = {}) { + return prepareEvent({ + signature: + "event AssetCreated(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetDistributed.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetDistributed.ts new file mode 100644 index 00000000000..6367047c30b --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetDistributed.ts @@ -0,0 +1,25 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the AssetDistributed event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { assetDistributedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * assetDistributedEvent() + * ], + * }); + * ``` + */ +export function assetDistributedEvent() { + return prepareEvent({ + signature: + "event AssetDistributed(address asset, uint256 recipientCount, uint256 totalAmount)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts new file mode 100644 index 00000000000..b5333ad831d --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts @@ -0,0 +1,43 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "ImplementationAdded" event. + */ +export type ImplementationAddedEventFilters = Partial<{ + implementation: AbiParameterToPrimitiveType<{ + type: "address"; + name: "implementation"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the ImplementationAdded event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { implementationAddedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * implementationAddedEvent({ + * implementation: ..., + * }) + * ], + * }); + * ``` + */ +export function implementationAddedEvent( + filters: ImplementationAddedEventFilters = {}, +) { + return prepareEvent({ + signature: + "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes32 createHookData)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts new file mode 100644 index 00000000000..bd9c7befa75 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "RewardLockerUpdated" event. + */ +export type RewardLockerUpdatedEventFilters = Partial<{ + locker: AbiParameterToPrimitiveType<{ + type: "address"; + name: "locker"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the RewardLockerUpdated event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { rewardLockerUpdatedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * rewardLockerUpdatedEvent({ + * locker: ..., + * }) + * ], + * }); + * ``` + */ +export function rewardLockerUpdatedEvent( + filters: RewardLockerUpdatedEventFilters = {}, +) { + return prepareEvent({ + signature: "event RewardLockerUpdated(address indexed locker)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts new file mode 100644 index 00000000000..e9dba112c23 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts @@ -0,0 +1,40 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "RouterUpdated" event. + */ +export type RouterUpdatedEventFilters = Partial<{ + router: AbiParameterToPrimitiveType<{ + type: "address"; + name: "router"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the RouterUpdated event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { routerUpdatedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * routerUpdatedEvent({ + * router: ..., + * }) + * ], + * }); + * ``` + */ +export function routerUpdatedEvent(filters: RouterUpdatedEventFilters = {}) { + return prepareEvent({ + signature: "event RouterUpdated(address indexed router)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts new file mode 100644 index 00000000000..b670bcbe65b --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts @@ -0,0 +1,152 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "getImplementation" function. + */ +export type GetImplementationParams = { + contractId: AbiParameterToPrimitiveType<{ + type: "bytes32"; + name: "contractId"; + }>; +}; + +export const FN_SELECTOR = "0x3c2e0828" as const; +const FN_INPUTS = [ + { + type: "bytes32", + name: "contractId", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "tuple", + components: [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "implementation", + }, + { + type: "uint8", + name: "implementationType", + }, + { + type: "uint8", + name: "createHook", + }, + { + type: "bytes", + name: "createHookData", + }, + ], + }, +] as const; + +/** + * Checks if the `getImplementation` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getImplementation` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isGetImplementationSupported } from "thirdweb/extensions/assets"; + * const supported = isGetImplementationSupported(["0x..."]); + * ``` + */ +export function isGetImplementationSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "getImplementation" function. + * @param options - The options for the getImplementation function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeGetImplementationParams } from "thirdweb/extensions/assets"; + * const result = encodeGetImplementationParams({ + * contractId: ..., + * }); + * ``` + */ +export function encodeGetImplementationParams( + options: GetImplementationParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.contractId]); +} + +/** + * Encodes the "getImplementation" function into a Hex string with its parameters. + * @param options - The options for the getImplementation function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeGetImplementation } from "thirdweb/extensions/assets"; + * const result = encodeGetImplementation({ + * contractId: ..., + * }); + * ``` + */ +export function encodeGetImplementation(options: GetImplementationParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGetImplementationParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the getImplementation function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeGetImplementationResult } from "thirdweb/extensions/assets"; + * const result = decodeGetImplementationResultResult("..."); + * ``` + */ +export function decodeGetImplementationResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getImplementation" function on the contract. + * @param options - The options for the getImplementation function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { getImplementation } from "thirdweb/extensions/assets"; + * + * const result = await getImplementation({ + * contract, + * contractId: ..., + * }); + * + * ``` + */ +export async function getImplementation( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.contractId], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts new file mode 100644 index 00000000000..dbe2181ab56 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xb0188df2" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "rewardLocker", + }, +] as const; + +/** + * Checks if the `getRewardLocker` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getRewardLocker` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isGetRewardLockerSupported } from "thirdweb/extensions/assets"; + * const supported = isGetRewardLockerSupported(["0x..."]); + * ``` + */ +export function isGetRewardLockerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the getRewardLocker function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeGetRewardLockerResult } from "thirdweb/extensions/assets"; + * const result = decodeGetRewardLockerResultResult("..."); + * ``` + */ +export function decodeGetRewardLockerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getRewardLocker" function on the contract. + * @param options - The options for the getRewardLocker function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { getRewardLocker } from "thirdweb/extensions/assets"; + * + * const result = await getRewardLocker({ + * contract, + * }); + * + * ``` + */ +export async function getRewardLocker(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts new file mode 100644 index 00000000000..f90e6da4cde --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xb0f479a1" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "router", + }, +] as const; + +/** + * Checks if the `getRouter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getRouter` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isGetRouterSupported } from "thirdweb/extensions/assets"; + * const supported = isGetRouterSupported(["0x..."]); + * ``` + */ +export function isGetRouterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the getRouter function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeGetRouterResult } from "thirdweb/extensions/assets"; + * const result = decodeGetRouterResultResult("..."); + * ``` + */ +export function decodeGetRouterResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getRouter" function on the contract. + * @param options - The options for the getRouter function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { getRouter } from "thirdweb/extensions/assets"; + * + * const result = await getRouter({ + * contract, + * }); + * + * ``` + */ +export async function getRouter(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts new file mode 100644 index 00000000000..1928273a182 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts @@ -0,0 +1,181 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "addImplementation" function. + */ +export type AddImplementationParams = WithOverrides<{ + config: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "config"; + components: [ + { type: "bytes32"; name: "contractId" }, + { type: "address"; name: "implementation" }, + { type: "uint8"; name: "implementationType" }, + { type: "uint8"; name: "createHook" }, + { type: "bytes"; name: "createHookData" }, + ]; + }>; + isDefault: AbiParameterToPrimitiveType<{ type: "bool"; name: "isDefault" }>; +}>; + +export const FN_SELECTOR = "0x4bf8055d" as const; +const FN_INPUTS = [ + { + type: "tuple", + name: "config", + components: [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "implementation", + }, + { + type: "uint8", + name: "implementationType", + }, + { + type: "uint8", + name: "createHook", + }, + { + type: "bytes", + name: "createHookData", + }, + ], + }, + { + type: "bool", + name: "isDefault", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `addImplementation` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `addImplementation` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isAddImplementationSupported } from "thirdweb/extensions/assets"; + * + * const supported = isAddImplementationSupported(["0x..."]); + * ``` + */ +export function isAddImplementationSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "addImplementation" function. + * @param options - The options for the addImplementation function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeAddImplementationParams } from "thirdweb/extensions/assets"; + * const result = encodeAddImplementationParams({ + * config: ..., + * isDefault: ..., + * }); + * ``` + */ +export function encodeAddImplementationParams( + options: AddImplementationParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.config, options.isDefault]); +} + +/** + * Encodes the "addImplementation" function into a Hex string with its parameters. + * @param options - The options for the addImplementation function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeAddImplementation } from "thirdweb/extensions/assets"; + * const result = encodeAddImplementation({ + * config: ..., + * isDefault: ..., + * }); + * ``` + */ +export function encodeAddImplementation(options: AddImplementationParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeAddImplementationParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "addImplementation" function on the contract. + * @param options - The options for the "addImplementation" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { addImplementation } from "thirdweb/extensions/assets"; + * + * const transaction = addImplementation({ + * contract, + * config: ..., + * isDefault: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function addImplementation( + options: BaseTransactionOptions< + | AddImplementationParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.config, resolvedOptions.isDefault] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts new file mode 100644 index 00000000000..2c6753711bb --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts @@ -0,0 +1,196 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "buyAsset" function. + */ +export type BuyAssetParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "address"; name: "recipient" }, + { type: "address"; name: "referrer" }, + { type: "address"; name: "tokenIn" }, + { type: "uint256"; name: "amountIn" }, + { type: "uint256"; name: "minAmountOut" }, + { type: "uint256"; name: "deadline" }, + { type: "bytes"; name: "data" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x4af11f67" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "address", + name: "tokenIn", + }, + { + type: "uint256", + name: "amountIn", + }, + { + type: "uint256", + name: "minAmountOut", + }, + { + type: "uint256", + name: "deadline", + }, + { + type: "bytes", + name: "data", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "amountIn", + }, + { + type: "uint256", + name: "amountOut", + }, +] as const; + +/** + * Checks if the `buyAsset` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `buyAsset` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isBuyAssetSupported } from "thirdweb/extensions/assets"; + * + * const supported = isBuyAssetSupported(["0x..."]); + * ``` + */ +export function isBuyAssetSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "buyAsset" function. + * @param options - The options for the buyAsset function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeBuyAssetParams } from "thirdweb/extensions/assets"; + * const result = encodeBuyAssetParams({ + * asset: ..., + * params: ..., + * }); + * ``` + */ +export function encodeBuyAssetParams(options: BuyAssetParams) { + return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); +} + +/** + * Encodes the "buyAsset" function into a Hex string with its parameters. + * @param options - The options for the buyAsset function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeBuyAsset } from "thirdweb/extensions/assets"; + * const result = encodeBuyAsset({ + * asset: ..., + * params: ..., + * }); + * ``` + */ +export function encodeBuyAsset(options: BuyAssetParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeBuyAssetParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "buyAsset" function on the contract. + * @param options - The options for the "buyAsset" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { buyAsset } from "thirdweb/extensions/assets"; + * + * const transaction = buyAsset({ + * contract, + * asset: ..., + * params: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function buyAsset( + options: BaseTransactionOptions< + | BuyAssetParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset, resolvedOptions.params] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts new file mode 100644 index 00000000000..3ab09e5350e --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts @@ -0,0 +1,187 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "createAsset" function. + */ +export type CreateAssetParams = WithOverrides<{ + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + createParams: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "createParams"; + components: [ + { type: "uint256"; name: "amount" }, + { type: "address"; name: "referrer" }, + { type: "bytes32"; name: "salt" }, + { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x58ac06bd" as const; +const FN_INPUTS = [ + { + type: "address", + name: "creator", + }, + { + type: "tuple", + name: "createParams", + components: [ + { + type: "uint256", + name: "amount", + }, + { + type: "address", + name: "referrer", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; + +/** + * Checks if the `createAsset` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `createAsset` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCreateAssetSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCreateAssetSupported(["0x..."]); + * ``` + */ +export function isCreateAssetSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "createAsset" function. + * @param options - The options for the createAsset function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCreateAssetParams } from "thirdweb/extensions/assets"; + * const result = encodeCreateAssetParams({ + * creator: ..., + * createParams: ..., + * }); + * ``` + */ +export function encodeCreateAssetParams(options: CreateAssetParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.creator, + options.createParams, + ]); +} + +/** + * Encodes the "createAsset" function into a Hex string with its parameters. + * @param options - The options for the createAsset function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCreateAsset } from "thirdweb/extensions/assets"; + * const result = encodeCreateAsset({ + * creator: ..., + * createParams: ..., + * }); + * ``` + */ +export function encodeCreateAsset(options: CreateAssetParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCreateAssetParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "createAsset" function on the contract. + * @param options - The options for the "createAsset" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { createAsset } from "thirdweb/extensions/assets"; + * + * const transaction = createAsset({ + * contract, + * creator: ..., + * createParams: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function createAsset( + options: BaseTransactionOptions< + | CreateAssetParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.creator, resolvedOptions.createParams] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts new file mode 100644 index 00000000000..5c79d94b26a --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts @@ -0,0 +1,203 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "createAssetById" function. + */ +export type CreateAssetByIdParams = WithOverrides<{ + contractId: AbiParameterToPrimitiveType<{ + type: "bytes32"; + name: "contractId"; + }>; + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "uint256"; name: "amount" }, + { type: "address"; name: "referrer" }, + { type: "bytes32"; name: "salt" }, + { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x1c8dd10a" as const; +const FN_INPUTS = [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "creator", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "uint256", + name: "amount", + }, + { + type: "address", + name: "referrer", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; + +/** + * Checks if the `createAssetById` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `createAssetById` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCreateAssetByIdSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCreateAssetByIdSupported(["0x..."]); + * ``` + */ +export function isCreateAssetByIdSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "createAssetById" function. + * @param options - The options for the createAssetById function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCreateAssetByIdParams } from "thirdweb/extensions/assets"; + * const result = encodeCreateAssetByIdParams({ + * contractId: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodeCreateAssetByIdParams(options: CreateAssetByIdParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.contractId, + options.creator, + options.params, + ]); +} + +/** + * Encodes the "createAssetById" function into a Hex string with its parameters. + * @param options - The options for the createAssetById function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCreateAssetById } from "thirdweb/extensions/assets"; + * const result = encodeCreateAssetById({ + * contractId: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodeCreateAssetById(options: CreateAssetByIdParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCreateAssetByIdParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "createAssetById" function on the contract. + * @param options - The options for the "createAssetById" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { createAssetById } from "thirdweb/extensions/assets"; + * + * const transaction = createAssetById({ + * contract, + * contractId: ..., + * creator: ..., + * params: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function createAssetById( + options: BaseTransactionOptions< + | CreateAssetByIdParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.contractId, + resolvedOptions.creator, + resolvedOptions.params, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts new file mode 100644 index 00000000000..4c3c7c73308 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts @@ -0,0 +1,238 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "createAssetByImplementationConfig" function. + */ +export type CreateAssetByImplementationConfigParams = WithOverrides<{ + config: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "config"; + components: [ + { type: "bytes32"; name: "contractId" }, + { type: "address"; name: "implementation" }, + { type: "uint8"; name: "implementationType" }, + { type: "uint8"; name: "createHook" }, + { type: "bytes"; name: "createHookData" }, + ]; + }>; + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "uint256"; name: "amount" }, + { type: "address"; name: "referrer" }, + { type: "bytes32"; name: "salt" }, + { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x230ffc78" as const; +const FN_INPUTS = [ + { + type: "tuple", + name: "config", + components: [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "implementation", + }, + { + type: "uint8", + name: "implementationType", + }, + { + type: "uint8", + name: "createHook", + }, + { + type: "bytes", + name: "createHookData", + }, + ], + }, + { + type: "address", + name: "creator", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "uint256", + name: "amount", + }, + { + type: "address", + name: "referrer", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; + +/** + * Checks if the `createAssetByImplementationConfig` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `createAssetByImplementationConfig` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCreateAssetByImplementationConfigSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCreateAssetByImplementationConfigSupported(["0x..."]); + * ``` + */ +export function isCreateAssetByImplementationConfigSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "createAssetByImplementationConfig" function. + * @param options - The options for the createAssetByImplementationConfig function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCreateAssetByImplementationConfigParams } from "thirdweb/extensions/assets"; + * const result = encodeCreateAssetByImplementationConfigParams({ + * config: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodeCreateAssetByImplementationConfigParams( + options: CreateAssetByImplementationConfigParams, +) { + return encodeAbiParameters(FN_INPUTS, [ + options.config, + options.creator, + options.params, + ]); +} + +/** + * Encodes the "createAssetByImplementationConfig" function into a Hex string with its parameters. + * @param options - The options for the createAssetByImplementationConfig function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCreateAssetByImplementationConfig } from "thirdweb/extensions/assets"; + * const result = encodeCreateAssetByImplementationConfig({ + * config: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodeCreateAssetByImplementationConfig( + options: CreateAssetByImplementationConfigParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCreateAssetByImplementationConfigParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "createAssetByImplementationConfig" function on the contract. + * @param options - The options for the "createAssetByImplementationConfig" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { createAssetByImplementationConfig } from "thirdweb/extensions/assets"; + * + * const transaction = createAssetByImplementationConfig({ + * contract, + * config: ..., + * creator: ..., + * params: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function createAssetByImplementationConfig( + options: BaseTransactionOptions< + | CreateAssetByImplementationConfigParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.config, + resolvedOptions.creator, + resolvedOptions.params, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts new file mode 100644 index 00000000000..49d845a11d2 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts @@ -0,0 +1,164 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "distributeAsset" function. + */ +export type DistributeAssetParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; + contents: AbiParameterToPrimitiveType<{ + type: "tuple[]"; + name: "contents"; + components: [ + { type: "uint256"; name: "amount" }, + { type: "address"; name: "recipient" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x5954167a" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, + { + type: "tuple[]", + name: "contents", + components: [ + { + type: "uint256", + name: "amount", + }, + { + type: "address", + name: "recipient", + }, + ], + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `distributeAsset` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `distributeAsset` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isDistributeAssetSupported } from "thirdweb/extensions/assets"; + * + * const supported = isDistributeAssetSupported(["0x..."]); + * ``` + */ +export function isDistributeAssetSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "distributeAsset" function. + * @param options - The options for the distributeAsset function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeDistributeAssetParams } from "thirdweb/extensions/assets"; + * const result = encodeDistributeAssetParams({ + * asset: ..., + * contents: ..., + * }); + * ``` + */ +export function encodeDistributeAssetParams(options: DistributeAssetParams) { + return encodeAbiParameters(FN_INPUTS, [options.asset, options.contents]); +} + +/** + * Encodes the "distributeAsset" function into a Hex string with its parameters. + * @param options - The options for the distributeAsset function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeDistributeAsset } from "thirdweb/extensions/assets"; + * const result = encodeDistributeAsset({ + * asset: ..., + * contents: ..., + * }); + * ``` + */ +export function encodeDistributeAsset(options: DistributeAssetParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeDistributeAssetParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "distributeAsset" function on the contract. + * @param options - The options for the "distributeAsset" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { distributeAsset } from "thirdweb/extensions/assets"; + * + * const transaction = distributeAsset({ + * contract, + * asset: ..., + * contents: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function distributeAsset( + options: BaseTransactionOptions< + | DistributeAssetParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset, resolvedOptions.contents] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts new file mode 100644 index 00000000000..51e8abaaaaa --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts @@ -0,0 +1,166 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "initialize" function. + */ +export type InitializeParams = WithOverrides<{ + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; + router: AbiParameterToPrimitiveType<{ type: "address"; name: "_router" }>; + rewardLocker: AbiParameterToPrimitiveType<{ + type: "address"; + name: "_rewardLocker"; + }>; +}>; + +export const FN_SELECTOR = "0xc0c53b8b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "_owner", + }, + { + type: "address", + name: "_router", + }, + { + type: "address", + name: "_rewardLocker", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `initialize` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `initialize` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isInitializeSupported } from "thirdweb/extensions/assets"; + * + * const supported = isInitializeSupported(["0x..."]); + * ``` + */ +export function isInitializeSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "initialize" function. + * @param options - The options for the initialize function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeInitializeParams } from "thirdweb/extensions/assets"; + * const result = encodeInitializeParams({ + * owner: ..., + * router: ..., + * rewardLocker: ..., + * }); + * ``` + */ +export function encodeInitializeParams(options: InitializeParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.owner, + options.router, + options.rewardLocker, + ]); +} + +/** + * Encodes the "initialize" function into a Hex string with its parameters. + * @param options - The options for the initialize function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeInitialize } from "thirdweb/extensions/assets"; + * const result = encodeInitialize({ + * owner: ..., + * router: ..., + * rewardLocker: ..., + * }); + * ``` + */ +export function encodeInitialize(options: InitializeParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeInitializeParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "initialize" function on the contract. + * @param options - The options for the "initialize" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { initialize } from "thirdweb/extensions/assets"; + * + * const transaction = initialize({ + * contract, + * owner: ..., + * router: ..., + * rewardLocker: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function initialize( + options: BaseTransactionOptions< + | InitializeParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.owner, + resolvedOptions.router, + resolvedOptions.rewardLocker, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts new file mode 100644 index 00000000000..5cc2ba42f2c --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts @@ -0,0 +1,174 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "listAsset" function. + */ +export type ListAssetParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "address"; name: "tokenIn" }, + { type: "uint256"; name: "price" }, + { type: "uint256"; name: "duration" }, + { type: "bytes"; name: "data" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x80ac2260" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "address", + name: "tokenIn", + }, + { + type: "uint256", + name: "price", + }, + { + type: "uint256", + name: "duration", + }, + { + type: "bytes", + name: "data", + }, + ], + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `listAsset` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `listAsset` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isListAssetSupported } from "thirdweb/extensions/assets"; + * + * const supported = isListAssetSupported(["0x..."]); + * ``` + */ +export function isListAssetSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "listAsset" function. + * @param options - The options for the listAsset function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeListAssetParams } from "thirdweb/extensions/assets"; + * const result = encodeListAssetParams({ + * asset: ..., + * params: ..., + * }); + * ``` + */ +export function encodeListAssetParams(options: ListAssetParams) { + return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); +} + +/** + * Encodes the "listAsset" function into a Hex string with its parameters. + * @param options - The options for the listAsset function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeListAsset } from "thirdweb/extensions/assets"; + * const result = encodeListAsset({ + * asset: ..., + * params: ..., + * }); + * ``` + */ +export function encodeListAsset(options: ListAssetParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeListAssetParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "listAsset" function on the contract. + * @param options - The options for the "listAsset" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { listAsset } from "thirdweb/extensions/assets"; + * + * const transaction = listAsset({ + * contract, + * asset: ..., + * params: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function listAsset( + options: BaseTransactionOptions< + | ListAssetParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset, resolvedOptions.params] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts new file mode 100644 index 00000000000..27d7fd4bb4e --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts @@ -0,0 +1,193 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "sellAsset" function. + */ +export type SellAssetParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "address"; name: "recipient" }, + { type: "address"; name: "tokenOut" }, + { type: "uint256"; name: "amountIn" }, + { type: "uint256"; name: "minAmountOut" }, + { type: "uint256"; name: "deadline" }, + { type: "bytes"; name: "data" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x5de3eedb" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "tokenOut", + }, + { + type: "uint256", + name: "amountIn", + }, + { + type: "uint256", + name: "minAmountOut", + }, + { + type: "uint256", + name: "deadline", + }, + { + type: "bytes", + name: "data", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "amountIn", + }, + { + type: "uint256", + name: "amountOut", + }, +] as const; + +/** + * Checks if the `sellAsset` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `sellAsset` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSellAssetSupported } from "thirdweb/extensions/assets"; + * + * const supported = isSellAssetSupported(["0x..."]); + * ``` + */ +export function isSellAssetSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "sellAsset" function. + * @param options - The options for the sellAsset function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeSellAssetParams } from "thirdweb/extensions/assets"; + * const result = encodeSellAssetParams({ + * asset: ..., + * params: ..., + * }); + * ``` + */ +export function encodeSellAssetParams(options: SellAssetParams) { + return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); +} + +/** + * Encodes the "sellAsset" function into a Hex string with its parameters. + * @param options - The options for the sellAsset function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeSellAsset } from "thirdweb/extensions/assets"; + * const result = encodeSellAsset({ + * asset: ..., + * params: ..., + * }); + * ``` + */ +export function encodeSellAsset(options: SellAssetParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSellAssetParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "sellAsset" function on the contract. + * @param options - The options for the "sellAsset" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { sellAsset } from "thirdweb/extensions/assets"; + * + * const transaction = sellAsset({ + * contract, + * asset: ..., + * params: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function sellAsset( + options: BaseTransactionOptions< + | SellAssetParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset, resolvedOptions.params] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts new file mode 100644 index 00000000000..159899d75b1 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts @@ -0,0 +1,142 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setRewardLocker" function. + */ +export type SetRewardLockerParams = WithOverrides<{ + rewardLocker: AbiParameterToPrimitiveType<{ + type: "address"; + name: "rewardLocker"; + }>; +}>; + +export const FN_SELECTOR = "0xeb7fb197" as const; +const FN_INPUTS = [ + { + type: "address", + name: "rewardLocker", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setRewardLocker` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setRewardLocker` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSetRewardLockerSupported } from "thirdweb/extensions/assets"; + * + * const supported = isSetRewardLockerSupported(["0x..."]); + * ``` + */ +export function isSetRewardLockerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setRewardLocker" function. + * @param options - The options for the setRewardLocker function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetRewardLockerParams } from "thirdweb/extensions/assets"; + * const result = encodeSetRewardLockerParams({ + * rewardLocker: ..., + * }); + * ``` + */ +export function encodeSetRewardLockerParams(options: SetRewardLockerParams) { + return encodeAbiParameters(FN_INPUTS, [options.rewardLocker]); +} + +/** + * Encodes the "setRewardLocker" function into a Hex string with its parameters. + * @param options - The options for the setRewardLocker function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetRewardLocker } from "thirdweb/extensions/assets"; + * const result = encodeSetRewardLocker({ + * rewardLocker: ..., + * }); + * ``` + */ +export function encodeSetRewardLocker(options: SetRewardLockerParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetRewardLockerParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setRewardLocker" function on the contract. + * @param options - The options for the "setRewardLocker" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setRewardLocker } from "thirdweb/extensions/assets"; + * + * const transaction = setRewardLocker({ + * contract, + * rewardLocker: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setRewardLocker( + options: BaseTransactionOptions< + | SetRewardLockerParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.rewardLocker] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts new file mode 100644 index 00000000000..5245d9c150d --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setRouter" function. + */ +export type SetRouterParams = WithOverrides<{ + router: AbiParameterToPrimitiveType<{ type: "address"; name: "router" }>; +}>; + +export const FN_SELECTOR = "0xc0d78655" as const; +const FN_INPUTS = [ + { + type: "address", + name: "router", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setRouter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setRouter` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSetRouterSupported } from "thirdweb/extensions/assets"; + * + * const supported = isSetRouterSupported(["0x..."]); + * ``` + */ +export function isSetRouterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setRouter" function. + * @param options - The options for the setRouter function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetRouterParams } from "thirdweb/extensions/assets"; + * const result = encodeSetRouterParams({ + * router: ..., + * }); + * ``` + */ +export function encodeSetRouterParams(options: SetRouterParams) { + return encodeAbiParameters(FN_INPUTS, [options.router]); +} + +/** + * Encodes the "setRouter" function into a Hex string with its parameters. + * @param options - The options for the setRouter function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetRouter } from "thirdweb/extensions/assets"; + * const result = encodeSetRouter({ + * router: ..., + * }); + * ``` + */ +export function encodeSetRouter(options: SetRouterParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetRouterParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setRouter" function on the contract. + * @param options - The options for the "setRouter" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setRouter } from "thirdweb/extensions/assets"; + * + * const transaction = setRouter({ + * contract, + * router: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setRouter( + options: BaseTransactionOptions< + | SetRouterParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.router] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts new file mode 100644 index 00000000000..9eabdaeaaa7 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "AssetInfraDeployed" event. + */ +export type AssetInfraDeployedEventFilters = Partial<{ + implementation: AbiParameterToPrimitiveType<{ + type: "address"; + name: "implementation"; + indexed: true; + }>; + proxy: AbiParameterToPrimitiveType<{ + type: "address"; + name: "proxy"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the AssetInfraDeployed event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { assetInfraDeployedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * assetInfraDeployedEvent({ + * implementation: ..., + * proxy: ..., + * }) + * ], + * }); + * ``` + */ +export function assetInfraDeployedEvent( + filters: AssetInfraDeployedEventFilters = {}, +) { + return prepareEvent({ + signature: + "event AssetInfraDeployed(address indexed implementation, address indexed proxy, bytes32 inputSalt, bytes data, bytes extraData)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts new file mode 100644 index 00000000000..437686f8a5b --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts @@ -0,0 +1,187 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "deployInfraProxyDeterministic" function. + */ +export type DeployInfraProxyDeterministicParams = WithOverrides<{ + implementation: AbiParameterToPrimitiveType<{ + type: "address"; + name: "implementation"; + }>; + data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; + salt: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "salt" }>; + extraData: AbiParameterToPrimitiveType<{ type: "bytes"; name: "extraData" }>; +}>; + +export const FN_SELECTOR = "0xb43c830c" as const; +const FN_INPUTS = [ + { + type: "address", + name: "implementation", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "extraData", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "deployedProxy", + }, +] as const; + +/** + * Checks if the `deployInfraProxyDeterministic` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `deployInfraProxyDeterministic` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isDeployInfraProxyDeterministicSupported } from "thirdweb/extensions/assets"; + * + * const supported = isDeployInfraProxyDeterministicSupported(["0x..."]); + * ``` + */ +export function isDeployInfraProxyDeterministicSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "deployInfraProxyDeterministic" function. + * @param options - The options for the deployInfraProxyDeterministic function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeDeployInfraProxyDeterministicParams } from "thirdweb/extensions/assets"; + * const result = encodeDeployInfraProxyDeterministicParams({ + * implementation: ..., + * data: ..., + * salt: ..., + * extraData: ..., + * }); + * ``` + */ +export function encodeDeployInfraProxyDeterministicParams( + options: DeployInfraProxyDeterministicParams, +) { + return encodeAbiParameters(FN_INPUTS, [ + options.implementation, + options.data, + options.salt, + options.extraData, + ]); +} + +/** + * Encodes the "deployInfraProxyDeterministic" function into a Hex string with its parameters. + * @param options - The options for the deployInfraProxyDeterministic function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeDeployInfraProxyDeterministic } from "thirdweb/extensions/assets"; + * const result = encodeDeployInfraProxyDeterministic({ + * implementation: ..., + * data: ..., + * salt: ..., + * extraData: ..., + * }); + * ``` + */ +export function encodeDeployInfraProxyDeterministic( + options: DeployInfraProxyDeterministicParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeDeployInfraProxyDeterministicParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "deployInfraProxyDeterministic" function on the contract. + * @param options - The options for the "deployInfraProxyDeterministic" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { deployInfraProxyDeterministic } from "thirdweb/extensions/assets"; + * + * const transaction = deployInfraProxyDeterministic({ + * contract, + * implementation: ..., + * data: ..., + * salt: ..., + * extraData: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function deployInfraProxyDeterministic( + options: BaseTransactionOptions< + | DeployInfraProxyDeterministicParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.implementation, + resolvedOptions.data, + resolvedOptions.salt, + resolvedOptions.extraData, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts new file mode 100644 index 00000000000..4787e7cf6f3 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts @@ -0,0 +1,189 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "initialize" function. + */ +export type InitializeParams = WithOverrides<{ + name: AbiParameterToPrimitiveType<{ type: "string"; name: "_name" }>; + symbol: AbiParameterToPrimitiveType<{ type: "string"; name: "_symbol" }>; + contractURI: AbiParameterToPrimitiveType<{ + type: "string"; + name: "_contractURI"; + }>; + maxSupply: AbiParameterToPrimitiveType<{ + type: "uint256"; + name: "_maxSupply"; + }>; + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; +}>; + +export const FN_SELECTOR = "0x30a8ff4e" as const; +const FN_INPUTS = [ + { + type: "string", + name: "_name", + }, + { + type: "string", + name: "_symbol", + }, + { + type: "string", + name: "_contractURI", + }, + { + type: "uint256", + name: "_maxSupply", + }, + { + type: "address", + name: "_owner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `initialize` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `initialize` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isInitializeSupported } from "thirdweb/extensions/assets"; + * + * const supported = isInitializeSupported(["0x..."]); + * ``` + */ +export function isInitializeSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "initialize" function. + * @param options - The options for the initialize function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeInitializeParams } from "thirdweb/extensions/assets"; + * const result = encodeInitializeParams({ + * name: ..., + * symbol: ..., + * contractURI: ..., + * maxSupply: ..., + * owner: ..., + * }); + * ``` + */ +export function encodeInitializeParams(options: InitializeParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.name, + options.symbol, + options.contractURI, + options.maxSupply, + options.owner, + ]); +} + +/** + * Encodes the "initialize" function into a Hex string with its parameters. + * @param options - The options for the initialize function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeInitialize } from "thirdweb/extensions/assets"; + * const result = encodeInitialize({ + * name: ..., + * symbol: ..., + * contractURI: ..., + * maxSupply: ..., + * owner: ..., + * }); + * ``` + */ +export function encodeInitialize(options: InitializeParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeInitializeParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "initialize" function on the contract. + * @param options - The options for the "initialize" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { initialize } from "thirdweb/extensions/assets"; + * + * const transaction = initialize({ + * contract, + * name: ..., + * symbol: ..., + * contractURI: ..., + * maxSupply: ..., + * owner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function initialize( + options: BaseTransactionOptions< + | InitializeParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.name, + resolvedOptions.symbol, + resolvedOptions.contractURI, + resolvedOptions.maxSupply, + resolvedOptions.owner, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts new file mode 100644 index 00000000000..89d1a31b7d7 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts @@ -0,0 +1,169 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "initialize" function. + */ +export type InitializeParams = WithOverrides<{ + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; + feeRecipient: AbiParameterToPrimitiveType<{ + type: "address"; + name: "_feeRecipient"; + }>; + defaultFee: AbiParameterToPrimitiveType<{ + type: "uint96"; + name: "_defaultFee"; + }>; +}>; + +export const FN_SELECTOR = "0xc861c250" as const; +const FN_INPUTS = [ + { + type: "address", + name: "_owner", + }, + { + type: "address", + name: "_feeRecipient", + }, + { + type: "uint96", + name: "_defaultFee", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `initialize` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `initialize` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isInitializeSupported } from "thirdweb/extensions/assets"; + * + * const supported = isInitializeSupported(["0x..."]); + * ``` + */ +export function isInitializeSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "initialize" function. + * @param options - The options for the initialize function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeInitializeParams } from "thirdweb/extensions/assets"; + * const result = encodeInitializeParams({ + * owner: ..., + * feeRecipient: ..., + * defaultFee: ..., + * }); + * ``` + */ +export function encodeInitializeParams(options: InitializeParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.owner, + options.feeRecipient, + options.defaultFee, + ]); +} + +/** + * Encodes the "initialize" function into a Hex string with its parameters. + * @param options - The options for the initialize function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeInitialize } from "thirdweb/extensions/assets"; + * const result = encodeInitialize({ + * owner: ..., + * feeRecipient: ..., + * defaultFee: ..., + * }); + * ``` + */ +export function encodeInitialize(options: InitializeParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeInitializeParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "initialize" function on the contract. + * @param options - The options for the "initialize" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { initialize } from "thirdweb/extensions/assets"; + * + * const transaction = initialize({ + * contract, + * owner: ..., + * feeRecipient: ..., + * defaultFee: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function initialize( + options: BaseTransactionOptions< + | InitializeParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.owner, + resolvedOptions.feeRecipient, + resolvedOptions.defaultFee, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts new file mode 100644 index 00000000000..eea57847ad0 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "initialize" function. + */ +export type InitializeParams = WithOverrides<{ + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; +}>; + +export const FN_SELECTOR = "0xc4d66de8" as const; +const FN_INPUTS = [ + { + type: "address", + name: "_owner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `initialize` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `initialize` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isInitializeSupported } from "thirdweb/extensions/assets"; + * + * const supported = isInitializeSupported(["0x..."]); + * ``` + */ +export function isInitializeSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "initialize" function. + * @param options - The options for the initialize function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeInitializeParams } from "thirdweb/extensions/assets"; + * const result = encodeInitializeParams({ + * owner: ..., + * }); + * ``` + */ +export function encodeInitializeParams(options: InitializeParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner]); +} + +/** + * Encodes the "initialize" function into a Hex string with its parameters. + * @param options - The options for the initialize function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeInitialize } from "thirdweb/extensions/assets"; + * const result = encodeInitialize({ + * owner: ..., + * }); + * ``` + */ +export function encodeInitialize(options: InitializeParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeInitializeParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "initialize" function on the contract. + * @param options - The options for the "initialize" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { initialize } from "thirdweb/extensions/assets"; + * + * const transaction = initialize({ + * contract, + * owner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function initialize( + options: BaseTransactionOptions< + | InitializeParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.owner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} From 6b816fb3f46d643eb0b2a7487a8f72ef3773283f Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Mon, 23 Jun 2025 21:06:08 +0530 Subject: [PATCH 02/32] Fix lint errors --- packages/thirdweb/biome.json | 2 +- packages/thirdweb/src/assets/bootstrap.ts | 40 ++++++------- .../src/assets/bootstrapinfra.test.ts | 2 +- packages/thirdweb/src/assets/constants.ts | 4 +- .../src/assets/create-token-by-impl-config.ts | 18 +++--- .../thirdweb/src/assets/create-token.test.ts | 9 ++- packages/thirdweb/src/assets/create-token.ts | 12 ++-- .../thirdweb/src/assets/deploy-infra-proxy.ts | 4 +- .../src/assets/distribute-token.test.ts | 32 +++++----- .../thirdweb/src/assets/distribute-token.ts | 2 +- .../src/assets/get-entrypoint-erc20.ts | 24 ++++---- .../src/assets/get-erc20-asset-impl.ts | 7 +-- packages/thirdweb/src/assets/index.ts | 14 ++--- packages/thirdweb/src/assets/token-utils.ts | 32 +++++----- .../events/AssetCreated.ts | 4 +- .../events/ImplementationAdded.ts | 4 +- .../events/RewardLockerUpdated.ts | 4 +- .../events/RouterUpdated.ts | 4 +- .../read/getImplementation.ts | 18 +++--- .../read/getRewardLocker.ts | 7 +-- .../AssetEntrypointERC20/read/getRouter.ts | 7 +-- .../write/addImplementation.ts | 42 +++++++------- .../AssetEntrypointERC20/write/buyAsset.ts | 50 ++++++++-------- .../AssetEntrypointERC20/write/createAsset.ts | 44 +++++++------- .../write/createAssetById.ts | 46 +++++++-------- .../createAssetByImplementationConfig.ts | 58 +++++++++---------- .../write/distributeAsset.ts | 36 ++++++------ .../AssetEntrypointERC20/write/initialize.ts | 32 +++++----- .../AssetEntrypointERC20/write/listAsset.ts | 40 ++++++------- .../AssetEntrypointERC20/write/sellAsset.ts | 48 +++++++-------- .../write/setRewardLocker.ts | 28 ++++----- .../AssetEntrypointERC20/write/setRouter.ts | 28 ++++----- .../events/AssetInfraDeployed.ts | 4 +- .../write/deployInfraProxyDeterministic.ts | 36 ++++++------ .../ERC20Asset/write/initialize.ts | 36 ++++++------ .../FeeManager/write/initialize.ts | 32 +++++----- .../__generated__/Router/write/initialize.ts | 28 ++++----- 37 files changed, 416 insertions(+), 422 deletions(-) diff --git a/packages/thirdweb/biome.json b/packages/thirdweb/biome.json index 780bbdcd1af..cec0f72abd0 100644 --- a/packages/thirdweb/biome.json +++ b/packages/thirdweb/biome.json @@ -1,4 +1,4 @@ { - "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json", + "$schema": "https://biomejs.dev/schemas/2.0.4/schema.json", "extends": "//" } diff --git a/packages/thirdweb/src/assets/bootstrap.ts b/packages/thirdweb/src/assets/bootstrap.ts index 7378b6a1df0..6d52bdb1ccd 100644 --- a/packages/thirdweb/src/assets/bootstrap.ts +++ b/packages/thirdweb/src/assets/bootstrap.ts @@ -59,11 +59,11 @@ export async function deployRouter(options: ClientAndChainAndAccount) { const routerImpl = await getOrDeployInfraContract({ ...options, - contractId: "Router", constructorParams: { - _marketSaleImplementation: marketSaleImpl.address, _feeManager: feeManager.address, + _marketSaleImplementation: marketSaleImpl.address, }, + contractId: "Router", publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", }); @@ -74,16 +74,16 @@ export async function deployRouter(options: ClientAndChainAndAccount) { const routerProxyAddress = await deployInfraProxy({ ...options, - initData, + assetFactory, extraData: "0x", implementationAddress: routerImpl.address, - assetFactory, + initData, }); return getContract({ - client: options.client, - chain: options.chain, address: routerProxyAddress, + chain: options.chain, + client: options.client, }); } @@ -106,12 +106,12 @@ export async function deployRewardLocker(options: ClientAndChainAndAccount) { return await getOrDeployInfraContract({ ...options, - contractId: "RewardLocker", constructorParams: { _feeManager: feeManager.address, _v3PositionManager: v3PositionManager, _v4PositionManager: v4PositionManager, }, + contractId: "RewardLocker", publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", }); } @@ -132,23 +132,23 @@ export async function deployFeeManager(options: ClientAndChainAndAccount) { // encode init data const initData = encodeFeeManagerInit({ - owner: DEFAULT_INFRA_ADMIN, - feeRecipient: DEFAULT_FEE_RECIPIENT, defaultFee: DEFAULT_FEE_BPS, + feeRecipient: DEFAULT_FEE_RECIPIENT, + owner: DEFAULT_INFRA_ADMIN, }); // fee manager proxy deployment const transaction = deployInfraProxyDeterministic({ contract: assetFactory, - implementation: feeManagerImpl.address, data: initData, extraData: "0x", + implementation: feeManagerImpl.address, salt: keccakId(DEFAULT_SALT), }); const receipt = await sendAndConfirmTransaction({ - transaction, account: options.account, + transaction, }); const proxyEvent = assetInfraDeployedEvent(); const decodedEvent = parseEventLogs({ @@ -165,9 +165,9 @@ export async function deployFeeManager(options: ClientAndChainAndAccount) { const feeManagerProxyAddress = decodedEvent[0]?.args.proxy; return getContract({ - client: options.client, - chain: options.chain, address: feeManagerProxyAddress, + chain: options.chain, + client: options.client, }); } @@ -203,11 +203,11 @@ export async function getDeployedRouter(options: ClientAndChain) { const routerImpl = await getDeployedInfraContract({ ...options, - contractId: "Router", constructorParams: { - _marketSaleImplementation: marketSaleImpl.address, _feeManager: feeManager.address, + _marketSaleImplementation: marketSaleImpl.address, }, + contractId: "Router", publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", }); @@ -233,9 +233,9 @@ export async function getDeployedRouter(options: ClientAndChain) { const routerProxyAddress = `0x${hashedDeployInfo.slice(26)}`; const routerProxy = getContract({ - client: options.client, - chain: options.chain, address: routerProxyAddress, + chain: options.chain, + client: options.client, }); if (!(await isContractDeployed(routerProxy))) { @@ -264,12 +264,12 @@ export async function getDeployedRewardLocker(options: ClientAndChain) { return await getDeployedInfraContract({ ...options, - contractId: "RewardLocker", constructorParams: { _feeManager: feeManager.address, _v3PositionManager: v3PositionManager, _v4PositionManager: v4PositionManager, }, + contractId: "RewardLocker", publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", }); } @@ -306,9 +306,9 @@ export async function getDeployedFeeManager(options: ClientAndChain) { const feeManagerProxyAddress = `0x${hashedDeployInfo.slice(26)}`; const feeManagerProxy = getContract({ - client: options.client, - chain: options.chain, address: feeManagerProxyAddress, + chain: options.chain, + client: options.client, }); if (!(await isContractDeployed(feeManagerProxy))) { diff --git a/packages/thirdweb/src/assets/bootstrapinfra.test.ts b/packages/thirdweb/src/assets/bootstrapinfra.test.ts index fa767cb5ba3..936652de893 100644 --- a/packages/thirdweb/src/assets/bootstrapinfra.test.ts +++ b/packages/thirdweb/src/assets/bootstrapinfra.test.ts @@ -7,9 +7,9 @@ import { deployFeeManager, getDeployedFeeManager } from "./bootstrap.js"; describe.runIf(process.env.TW_SECRET_KEY)("bootstrap asset infra", () => { it("should bootstrap fee manager", async () => { const feeManager = await deployFeeManager({ + account: TEST_ACCOUNT_A, chain: ANVIL_CHAIN, client: TEST_CLIENT, - account: TEST_ACCOUNT_A, }); const expectedFeeManager = await getDeployedFeeManager({ diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index 1948b75d5de..0b300604fe8 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -8,7 +8,7 @@ export const DEFAULT_FEE_BPS = 50n; export const DEFAULT_SALT = "thirdweb"; export const IMPLEMENTATIONS: Record> = { - [84532]: { + 84532: { AssetEntrypointERC20: "0x79C1236cFe59f1f088A15Da08b0D8667387d9703", ERC20AssetImpl: "", V3PositionManager: "", @@ -16,7 +16,6 @@ export const IMPLEMENTATIONS: Record> = { }, }; -// biome-ignore lint/nursery/noEnum: FIXME export enum ImplementationType { CLONE = 0, CLONE_WITH_IMMUTABLE_ARGS = 1, @@ -24,7 +23,6 @@ export enum ImplementationType { ERC1967_WITH_IMMUTABLE_ARGS = 3, } -// biome-ignore lint/nursery/noEnum: FIXME export enum CreateHook { NONE = 0, // do nothing CREATE_POOL = 1, // create a DEX pool via Router diff --git a/packages/thirdweb/src/assets/create-token-by-impl-config.ts b/packages/thirdweb/src/assets/create-token-by-impl-config.ts index 97a8bb75d67..96460b0ff72 100644 --- a/packages/thirdweb/src/assets/create-token-by-impl-config.ts +++ b/packages/thirdweb/src/assets/create-token-by-impl-config.ts @@ -32,8 +32,8 @@ export async function createTokenByImplConfig(options: CreateTokenOptions) { const encodedInitData = await encodeInitParams({ client, - params, creator, + params, }); const rpcRequest = getRpcClient({ @@ -68,9 +68,9 @@ export async function createTokenByImplConfig(options: CreateTokenOptions) { launchConfig.config.tokenOut && launchConfig.config.tokenOut !== NATIVE_TOKEN_ADDRESS ? getContract({ - client, - chain, address: launchConfig.config.tokenOut, + chain, + client, }) : null; const currencyDecimals = launchConfig.config.priceDenominator @@ -88,12 +88,8 @@ export async function createTokenByImplConfig(options: CreateTokenOptions) { } const transaction = createAssetByImplementationConfig({ - contract: entrypoint, - creator, config: { contractId: keccakId("ERC20Asset"), - implementation: tokenImpl.address, - implementationType: ImplementationType.ERC1967, createHook: launchConfig?.kind === "pool" ? CreateHook.CREATE_POOL @@ -103,13 +99,17 @@ export async function createTokenByImplConfig(options: CreateTokenOptions) { ? CreateHook.DISTRIBUTE : CreateHook.NONE, createHookData: hookData, + implementation: tokenImpl.address, + implementationType: ImplementationType.ERC1967, }, + contract: entrypoint, + creator, params: { amount, - referrer: ZERO_ADDRESS, - salt, data: encodedInitData, hookData, + referrer: ZERO_ADDRESS, + salt, }, }); diff --git a/packages/thirdweb/src/assets/create-token.test.ts b/packages/thirdweb/src/assets/create-token.test.ts index cabaad3602d..6749404c7b7 100644 --- a/packages/thirdweb/src/assets/create-token.test.ts +++ b/packages/thirdweb/src/assets/create-token.test.ts @@ -1,4 +1,3 @@ -import { totalSupply } from "src/extensions/erc20/__generated__/IERC20/read/totalSupply.js"; import { describe, expect, it } from "vitest"; import { ANVIL_CHAIN } from "../../test/src/chains.js"; import { TEST_CLIENT } from "../../test/src/test-clients.js"; @@ -11,12 +10,12 @@ import { createTokenByImplConfig } from "./create-token-by-impl-config.js"; describe.runIf(process.env.TW_SECRET_KEY)("create token by impl config", () => { it("should create token without pool", async () => { const token = await createTokenByImplConfig({ + account: TEST_ACCOUNT_A, chain: ANVIL_CHAIN, client: TEST_CLIENT, - account: TEST_ACCOUNT_A, params: { - name: "Test", maxSupply: 10_00n, + name: "Test", }, salt: "salt123", }); @@ -25,9 +24,9 @@ describe.runIf(process.env.TW_SECRET_KEY)("create token by impl config", () => { const tokenName = await name({ contract: getContract({ - client: TEST_CLIENT, - chain: ANVIL_CHAIN, address: token, + chain: ANVIL_CHAIN, + client: TEST_CLIENT, }), }); expect(tokenName).to.eq("Test"); diff --git a/packages/thirdweb/src/assets/create-token.ts b/packages/thirdweb/src/assets/create-token.ts index c46967e9e69..9bc6d09f947 100644 --- a/packages/thirdweb/src/assets/create-token.ts +++ b/packages/thirdweb/src/assets/create-token.ts @@ -27,8 +27,8 @@ export async function createToken(options: CreateTokenOptions) { const encodedInitData = await encodeInitParams({ client, - params, creator, + params, }); const rpcRequest = getRpcClient({ @@ -62,9 +62,9 @@ export async function createToken(options: CreateTokenOptions) { launchConfig.config.tokenOut && launchConfig.config.tokenOut !== NATIVE_TOKEN_ADDRESS ? getContract({ - client, - chain, address: launchConfig.config.tokenOut, + chain, + client, }) : null; const currencyDecimals = launchConfig.config.priceDenominator @@ -83,14 +83,14 @@ export async function createToken(options: CreateTokenOptions) { const transaction = createAsset({ contract: entrypoint, - creator, createParams: { amount, - referrer: ZERO_ADDRESS, - salt, data: encodedInitData, hookData, + referrer: ZERO_ADDRESS, + salt, }, + creator, }); const receipt = await sendAndConfirmTransaction({ account, transaction }); diff --git a/packages/thirdweb/src/assets/deploy-infra-proxy.ts b/packages/thirdweb/src/assets/deploy-infra-proxy.ts index d85c7a84f4e..cc18a36ac3d 100644 --- a/packages/thirdweb/src/assets/deploy-infra-proxy.ts +++ b/packages/thirdweb/src/assets/deploy-infra-proxy.ts @@ -18,15 +18,15 @@ export async function deployInfraProxy( ) { const transaction = deployInfraProxyDeterministic({ contract: options.assetFactory, - implementation: options.implementationAddress, data: options.initData, extraData: options.extraData, + implementation: options.implementationAddress, salt: keccakId(DEFAULT_SALT), }); const receipt = await sendAndConfirmTransaction({ - transaction, account: options.account, + transaction, }); const proxyEvent = assetInfraDeployedEvent(); const decodedEvent = parseEventLogs({ diff --git a/packages/thirdweb/src/assets/distribute-token.test.ts b/packages/thirdweb/src/assets/distribute-token.test.ts index 444f1a89b93..322f39478e0 100644 --- a/packages/thirdweb/src/assets/distribute-token.test.ts +++ b/packages/thirdweb/src/assets/distribute-token.test.ts @@ -1,4 +1,4 @@ -import { type ThirdwebContract, getContract } from "src/contract/contract.js"; +import { getContract, type ThirdwebContract } from "src/contract/contract.js"; import { getBalance } from "src/extensions/erc20/read/getBalance.js"; import { approve } from "src/extensions/erc20/write/approve.js"; import { sendAndConfirmTransaction } from "src/transaction/actions/send-and-confirm-transaction.js"; @@ -26,20 +26,20 @@ describe.runIf(process.env.TW_SECRET_KEY)( beforeAll(async () => { // create token const tokenAddress = await createTokenByImplConfig({ + account: TEST_ACCOUNT_A, chain: ANVIL_CHAIN, client: TEST_CLIENT, - account: TEST_ACCOUNT_A, params: { - name: "Test", maxSupply: 10_000_000_000n, + name: "Test", }, salt: "salt123", }); token = getContract({ address: tokenAddress, - client: TEST_CLIENT, chain: ANVIL_CHAIN, + client: TEST_CLIENT, }); // approve tokens to entrypoint for distribution @@ -49,58 +49,58 @@ describe.runIf(process.env.TW_SECRET_KEY)( }); const approvalTx = approve({ + amountWei: toUnits("1000", 18), contract: token, spender: entrypoint?.address as string, - amountWei: toUnits("1000", 18), }); await sendAndConfirmTransaction({ - transaction: approvalTx, account: TEST_ACCOUNT_A, + transaction: approvalTx, }); }, 20000); it("should distrbute tokens to specified recipients", async () => { const contents = [ - { recipient: TEST_ACCOUNT_B.address, amount: 10n }, - { recipient: TEST_ACCOUNT_C.address, amount: 15n }, - { recipient: TEST_ACCOUNT_D.address, amount: 20n }, + { amount: 10n, recipient: TEST_ACCOUNT_B.address }, + { amount: 15n, recipient: TEST_ACCOUNT_C.address }, + { amount: 20n, recipient: TEST_ACCOUNT_D.address }, ]; const transaction = await distributeToken({ - client: TEST_CLIENT, chain: ANVIL_CHAIN, - tokenAddress: token.address, + client: TEST_CLIENT, contents, + tokenAddress: token.address, }); - await sendAndConfirmTransaction({ transaction, account: TEST_ACCOUNT_A }); + await sendAndConfirmTransaction({ account: TEST_ACCOUNT_A, transaction }); const balanceB = ( await getBalance({ - contract: token, address: TEST_ACCOUNT_B.address, + contract: token, }) ).value; const balanceC = ( await getBalance({ - contract: token, address: TEST_ACCOUNT_C.address, + contract: token, }) ).value; const balanceD = ( await getBalance({ - contract: token, address: TEST_ACCOUNT_D.address, + contract: token, }) ).value; // admin balance const balanceA = ( await getBalance({ - contract: token, address: TEST_ACCOUNT_A.address, + contract: token, }) ).value; diff --git a/packages/thirdweb/src/assets/distribute-token.ts b/packages/thirdweb/src/assets/distribute-token.ts index 6d4ac1f845a..6fd25acd6da 100644 --- a/packages/thirdweb/src/assets/distribute-token.ts +++ b/packages/thirdweb/src/assets/distribute-token.ts @@ -17,10 +17,10 @@ export async function distributeToken(options: DistrbuteTokenParams) { } return distributeAsset({ - contract: entrypoint, asset: options.tokenAddress, contents: options.contents.map((a) => { return { ...a, amount: toUnits(a.amount.toString(), 18) }; }), + contract: entrypoint, }); } diff --git a/packages/thirdweb/src/assets/get-entrypoint-erc20.ts b/packages/thirdweb/src/assets/get-entrypoint-erc20.ts index 1102bb203a4..4d02c7789fa 100644 --- a/packages/thirdweb/src/assets/get-entrypoint-erc20.ts +++ b/packages/thirdweb/src/assets/get-entrypoint-erc20.ts @@ -1,6 +1,6 @@ import { encodePacked } from "viem"; import { ZERO_ADDRESS } from "../constants/addresses.js"; -import { type ThirdwebContract, getContract } from "../contract/contract.js"; +import { getContract, type ThirdwebContract } from "../contract/contract.js"; import { getOrDeployInfraContract } from "../contract/deployment/utils/bootstrap.js"; import { getDeployedInfraContract } from "../contract/deployment/utils/infra.js"; import { encodeInitialize } from "../extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.js"; @@ -27,9 +27,9 @@ export async function getOrDeployEntrypointERC20( if (implementations?.AssetEntrypointERC20) { return getContract({ - client: options.client, - chain: options.chain, address: implementations.AssetEntrypointERC20, + chain: options.chain, + client: options.client, }); } @@ -48,22 +48,22 @@ export async function getOrDeployEntrypointERC20( // encode init data const initData = encodeInitialize({ owner: DEFAULT_INFRA_ADMIN, - router: ZERO_ADDRESS, rewardLocker: ZERO_ADDRESS, + router: ZERO_ADDRESS, }); const entyrpointProxyAddress = await deployInfraProxy({ ...options, - initData, + assetFactory, extraData: "0x", implementationAddress: entrypointImpl.address, - assetFactory, + initData, }); return getContract({ - client: options.client, - chain: options.chain, address: entyrpointProxyAddress, + chain: options.chain, + client: options.client, }); } @@ -72,9 +72,9 @@ export async function getDeployedEntrypointERC20(options: ClientAndChain) { if (implementations?.AssetEntrypointERC20) { return getContract({ - client: options.client, - chain: options.chain, address: implementations.AssetEntrypointERC20, + chain: options.chain, + client: options.client, }); } @@ -110,9 +110,9 @@ export async function getDeployedEntrypointERC20(options: ClientAndChain) { const entrypointProxyAddress = `0x${hashedDeployInfo.slice(26)}`; const entrypointProxy = getContract({ - client: options.client, - chain: options.chain, address: entrypointProxyAddress, + chain: options.chain, + client: options.client, }); if (!(await isContractDeployed(entrypointProxy))) { diff --git a/packages/thirdweb/src/assets/get-erc20-asset-impl.ts b/packages/thirdweb/src/assets/get-erc20-asset-impl.ts index d13a66e3251..a01d410b08e 100644 --- a/packages/thirdweb/src/assets/get-erc20-asset-impl.ts +++ b/packages/thirdweb/src/assets/get-erc20-asset-impl.ts @@ -1,7 +1,6 @@ -import { type ThirdwebContract, getContract } from "../contract/contract.js"; +import { getContract, type ThirdwebContract } from "../contract/contract.js"; import { getOrDeployInfraContract } from "../contract/deployment/utils/bootstrap.js"; import type { ClientAndChainAndAccount } from "../utils/types.js"; -import {} from "./bootstrap.js"; import { IMPLEMENTATIONS } from "./constants.js"; export async function getOrDeployERC20AssetImpl( @@ -11,9 +10,9 @@ export async function getOrDeployERC20AssetImpl( if (implementations?.ERC20AssetImpl) { return getContract({ - client: options.client, - chain: options.chain, address: implementations.ERC20AssetImpl, + chain: options.chain, + client: options.client, }); } diff --git a/packages/thirdweb/src/assets/index.ts b/packages/thirdweb/src/assets/index.ts index 102a7c09eb0..10787149f9c 100644 --- a/packages/thirdweb/src/assets/index.ts +++ b/packages/thirdweb/src/assets/index.ts @@ -1,16 +1,16 @@ export { - deployRouter, - deployRewardLocker, - deployFeeManager, deployAssetFactory, - getDeployedRouter, - getDeployedRewardLocker, - getDeployedFeeManager, + deployFeeManager, + deployRewardLocker, + deployRouter, getDeployedAssetFactory, + getDeployedFeeManager, + getDeployedRewardLocker, + getDeployedRouter, } from "./bootstrap.js"; export { createToken } from "./create-token.js"; export { createTokenByImplConfig } from "./create-token-by-impl-config.js"; export { distributeToken } from "./distribute-token.js"; +export { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; export { isRouterEnabled } from "./is-router-enabled.js"; export * from "./types.js"; -export { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; diff --git a/packages/thirdweb/src/assets/token-utils.ts b/packages/thirdweb/src/assets/token-utils.ts index fd81e9a05b3..f9462691b2e 100644 --- a/packages/thirdweb/src/assets/token-utils.ts +++ b/packages/thirdweb/src/assets/token-utils.ts @@ -25,46 +25,46 @@ export async function encodeInitParams(options: { client, files: [ { - name: params.name, description: params.description, - symbol: params.symbol, - image: params.image, external_link: params.external_link, + image: params.image, + name: params.name, social_urls: params.social_urls, + symbol: params.symbol, }, ], })) || ""; return encodeInitialize({ - name: params.name, - symbol: params.symbol || params.name, contractURI, maxSupply: toUnits( params.maxSupply.toString() || DEFAULT_MAX_SUPPLY_ERC20.toString(), 18, ), + name: params.name, owner: creator, + symbol: params.symbol || params.name, }); } export function encodePoolConfig(poolConfig: PoolConfig): Hex { const POOL_PARAMS = [ { - type: "address", name: "currency", + type: "address", }, { - type: "uint256", name: "amount", + type: "uint256", }, { - type: "uint24", name: "fee", + type: "uint24", }, { - type: "uint24", name: "initialTick", + type: "uint24", }, ] as const; @@ -81,32 +81,32 @@ export function encodeMarketConfig( ): Hex { const MARKET_PARAMS = [ { - type: "address", name: "tokenOut", + type: "address", }, { - type: "uint256", name: "pricePerUnit", + type: "uint256", }, { - type: "uint8", name: "priceDenominator", + type: "uint8", }, { - type: "uint48", name: "startTime", + type: "uint48", }, { - type: "uint48", name: "endTime", + type: "uint48", }, { - type: "address", name: "hook", + type: "address", }, { - type: "bytes", name: "hookInit", + type: "bytes", }, ] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts index 96c1d21407b..95291f68765 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AssetCreated" event. @@ -40,8 +40,8 @@ export type AssetCreatedEventFilters = Partial<{ */ export function assetCreatedEvent(filters: AssetCreatedEventFilters = {}) { return prepareEvent({ + filters, signature: "event AssetCreated(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", - filters, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts index b5333ad831d..81b10e03836 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ImplementationAdded" event. @@ -36,8 +36,8 @@ export function implementationAddedEvent( filters: ImplementationAddedEventFilters = {}, ) { return prepareEvent({ + filters, signature: "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes32 createHookData)", - filters, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts index bd9c7befa75..23e56bb89a9 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardLockerUpdated" event. @@ -36,7 +36,7 @@ export function rewardLockerUpdatedEvent( filters: RewardLockerUpdatedEventFilters = {}, ) { return prepareEvent({ - signature: "event RewardLockerUpdated(address indexed locker)", filters, + signature: "event RewardLockerUpdated(address indexed locker)", }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts index e9dba112c23..c2fa8133d8c 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RouterUpdated" event. @@ -34,7 +34,7 @@ export type RouterUpdatedEventFilters = Partial<{ */ export function routerUpdatedEvent(filters: RouterUpdatedEventFilters = {}) { return prepareEvent({ - signature: "event RouterUpdated(address indexed router)", filters, + signature: "event RouterUpdated(address indexed router)", }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts index b670bcbe65b..61f2a869cb3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getImplementation" function. @@ -19,35 +19,35 @@ export type GetImplementationParams = { export const FN_SELECTOR = "0x3c2e0828" as const; const FN_INPUTS = [ { - type: "bytes32", name: "contractId", + type: "bytes32", }, ] as const; const FN_OUTPUTS = [ { - type: "tuple", components: [ { - type: "bytes32", name: "contractId", + type: "bytes32", }, { - type: "address", name: "implementation", + type: "address", }, { - type: "uint8", name: "implementationType", + type: "uint8", }, { - type: "uint8", name: "createHook", + type: "uint8", }, { - type: "bytes", name: "createHookData", + type: "bytes", }, ], + type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts index dbe2181ab56..37080c9174b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts @@ -1,16 +1,15 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb0188df2" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - type: "address", name: "rewardLocker", + type: "address", }, ] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts index f90e6da4cde..a1498baac8a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts @@ -1,16 +1,15 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb0f479a1" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - type: "address", name: "router", + type: "address", }, ] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts index 1928273a182..8d158c238a2 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addImplementation" function. @@ -29,34 +29,34 @@ export type AddImplementationParams = WithOverrides<{ export const FN_SELECTOR = "0x4bf8055d" as const; const FN_INPUTS = [ { - type: "tuple", - name: "config", components: [ { - type: "bytes32", name: "contractId", + type: "bytes32", }, { - type: "address", name: "implementation", + type: "address", }, { - type: "uint8", name: "implementationType", + type: "uint8", }, { - type: "uint8", name: "createHook", + type: "uint8", }, { - type: "bytes", name: "createHookData", + type: "bytes", }, ], + name: "config", + type: "tuple", }, { - type: "bool", name: "isDefault", + type: "bool", }, ] as const; const FN_OUTPUTS = [] as const; @@ -159,23 +159,23 @@ export function addImplementation( }); return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.config, resolvedOptions.isDefault] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, gas: async () => (await asyncOptions()).overrides?.gas, gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.config, resolvedOptions.isDefault] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts index 2c6753711bb..8dec5f4df9b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "buyAsset" function. @@ -31,52 +31,52 @@ export type BuyAssetParams = WithOverrides<{ export const FN_SELECTOR = "0x4af11f67" as const; const FN_INPUTS = [ { - type: "address", name: "asset", + type: "address", }, { - type: "tuple", - name: "params", components: [ { - type: "address", name: "recipient", + type: "address", }, { - type: "address", name: "referrer", + type: "address", }, { - type: "address", name: "tokenIn", + type: "address", }, { - type: "uint256", name: "amountIn", + type: "uint256", }, { - type: "uint256", name: "minAmountOut", + type: "uint256", }, { - type: "uint256", name: "deadline", + type: "uint256", }, { - type: "bytes", name: "data", + type: "bytes", }, ], + name: "params", + type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - type: "uint256", name: "amountIn", + type: "uint256", }, { - type: "uint256", name: "amountOut", + type: "uint256", }, ] as const; @@ -174,23 +174,23 @@ export function buyAsset( }); return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.asset, resolvedOptions.params] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, gas: async () => (await asyncOptions()).overrides?.gas, gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset, resolvedOptions.params] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts index 3ab09e5350e..cbb24740e9c 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAsset" function. @@ -29,40 +29,40 @@ export type CreateAssetParams = WithOverrides<{ export const FN_SELECTOR = "0x58ac06bd" as const; const FN_INPUTS = [ { - type: "address", name: "creator", + type: "address", }, { - type: "tuple", - name: "createParams", components: [ { - type: "uint256", name: "amount", + type: "uint256", }, { - type: "address", name: "referrer", + type: "address", }, { - type: "bytes32", name: "salt", + type: "bytes32", }, { - type: "bytes", name: "data", + type: "bytes", }, { - type: "bytes", name: "hookData", + type: "bytes", }, ], + name: "createParams", + type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - type: "address", name: "asset", + type: "address", }, ] as const; @@ -165,23 +165,23 @@ export function createAsset( }); return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.creator, resolvedOptions.createParams] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, gas: async () => (await asyncOptions()).overrides?.gas, gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.creator, resolvedOptions.createParams] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts index 5c79d94b26a..d3b420e1c29 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAssetById" function. @@ -33,44 +33,44 @@ export type CreateAssetByIdParams = WithOverrides<{ export const FN_SELECTOR = "0x1c8dd10a" as const; const FN_INPUTS = [ { - type: "bytes32", name: "contractId", + type: "bytes32", }, { - type: "address", name: "creator", + type: "address", }, { - type: "tuple", - name: "params", components: [ { - type: "uint256", name: "amount", + type: "uint256", }, { - type: "address", name: "referrer", + type: "address", }, { - type: "bytes32", name: "salt", + type: "bytes32", }, { - type: "bytes", name: "data", + type: "bytes", }, { - type: "bytes", name: "hookData", + type: "bytes", }, ], + name: "params", + type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - type: "address", name: "asset", + type: "address", }, ] as const; @@ -177,8 +177,19 @@ export function createAssetById( }); return prepareContractCall({ + accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -188,16 +199,5 @@ export function createAssetById( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts index 4c3c7c73308..78ae878f899 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAssetByImplementationConfig" function. @@ -40,66 +40,66 @@ export type CreateAssetByImplementationConfigParams = WithOverrides<{ export const FN_SELECTOR = "0x230ffc78" as const; const FN_INPUTS = [ { - type: "tuple", - name: "config", components: [ { - type: "bytes32", name: "contractId", + type: "bytes32", }, { - type: "address", name: "implementation", + type: "address", }, { - type: "uint8", name: "implementationType", + type: "uint8", }, { - type: "uint8", name: "createHook", + type: "uint8", }, { - type: "bytes", name: "createHookData", + type: "bytes", }, ], + name: "config", + type: "tuple", }, { - type: "address", name: "creator", + type: "address", }, { - type: "tuple", - name: "params", components: [ { - type: "uint256", name: "amount", + type: "uint256", }, { - type: "address", name: "referrer", + type: "address", }, { - type: "bytes32", name: "salt", + type: "bytes32", }, { - type: "bytes", name: "data", + type: "bytes", }, { - type: "bytes", name: "hookData", + type: "bytes", }, ], + name: "params", + type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - type: "address", name: "asset", + type: "address", }, ] as const; @@ -212,8 +212,19 @@ export function createAssetByImplementationConfig( }); return prepareContractCall({ + accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -223,16 +234,5 @@ export function createAssetByImplementationConfig( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts index 49d845a11d2..1cc7ca4390c 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "distributeAsset" function. @@ -26,22 +26,22 @@ export type DistributeAssetParams = WithOverrides<{ export const FN_SELECTOR = "0x5954167a" as const; const FN_INPUTS = [ { - type: "address", name: "asset", + type: "address", }, { - type: "tuple[]", - name: "contents", components: [ { - type: "uint256", name: "amount", + type: "uint256", }, { - type: "address", name: "recipient", + type: "address", }, ], + name: "contents", + type: "tuple[]", }, ] as const; const FN_OUTPUTS = [] as const; @@ -142,23 +142,23 @@ export function distributeAsset( }); return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.asset, resolvedOptions.contents] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, gas: async () => (await asyncOptions()).overrides?.gas, gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset, resolvedOptions.contents] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts index 51e8abaaaaa..9b2125c2130 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. @@ -23,16 +23,16 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xc0c53b8b" as const; const FN_INPUTS = [ { - type: "address", name: "_owner", + type: "address", }, { - type: "address", name: "_router", + type: "address", }, { - type: "address", name: "_rewardLocker", + type: "address", }, ] as const; const FN_OUTPUTS = [] as const; @@ -140,8 +140,19 @@ export function initialize( }); return prepareContractCall({ + accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -151,16 +162,5 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts index 5cc2ba42f2c..c3f781b6a36 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "listAsset" function. @@ -28,30 +28,30 @@ export type ListAssetParams = WithOverrides<{ export const FN_SELECTOR = "0x80ac2260" as const; const FN_INPUTS = [ { - type: "address", name: "asset", + type: "address", }, { - type: "tuple", - name: "params", components: [ { - type: "address", name: "tokenIn", + type: "address", }, { - type: "uint256", name: "price", + type: "uint256", }, { - type: "uint256", name: "duration", + type: "uint256", }, { - type: "bytes", name: "data", + type: "bytes", }, ], + name: "params", + type: "tuple", }, ] as const; const FN_OUTPUTS = [] as const; @@ -152,23 +152,23 @@ export function listAsset( }); return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.asset, resolvedOptions.params] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, gas: async () => (await asyncOptions()).overrides?.gas, gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset, resolvedOptions.params] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts index 27d7fd4bb4e..c8be8f33fc2 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "sellAsset" function. @@ -30,48 +30,48 @@ export type SellAssetParams = WithOverrides<{ export const FN_SELECTOR = "0x5de3eedb" as const; const FN_INPUTS = [ { - type: "address", name: "asset", + type: "address", }, { - type: "tuple", - name: "params", components: [ { - type: "address", name: "recipient", + type: "address", }, { - type: "address", name: "tokenOut", + type: "address", }, { - type: "uint256", name: "amountIn", + type: "uint256", }, { - type: "uint256", name: "minAmountOut", + type: "uint256", }, { - type: "uint256", name: "deadline", + type: "uint256", }, { - type: "bytes", name: "data", + type: "bytes", }, ], + name: "params", + type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - type: "uint256", name: "amountIn", + type: "uint256", }, { - type: "uint256", name: "amountOut", + type: "uint256", }, ] as const; @@ -171,23 +171,23 @@ export function sellAsset( }); return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.asset, resolvedOptions.params] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, gas: async () => (await asyncOptions()).overrides?.gas, gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset, resolvedOptions.params] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts index 159899d75b1..37d628ec69c 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRewardLocker" function. @@ -21,8 +21,8 @@ export type SetRewardLockerParams = WithOverrides<{ export const FN_SELECTOR = "0xeb7fb197" as const; const FN_INPUTS = [ { - type: "address", name: "rewardLocker", + type: "address", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setRewardLocker( }); return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.rewardLocker] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, gas: async () => (await asyncOptions()).overrides?.gas, gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.rewardLocker] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts index 5245d9c150d..4fb04052854 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRouter" function. @@ -18,8 +18,8 @@ export type SetRouterParams = WithOverrides<{ export const FN_SELECTOR = "0xc0d78655" as const; const FN_INPUTS = [ { - type: "address", name: "router", + type: "address", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function setRouter( }); return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.router] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, gas: async () => (await asyncOptions()).overrides?.gas, gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.router] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts index 9eabdaeaaa7..2bc3f6be4c2 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AssetInfraDeployed" event. @@ -42,8 +42,8 @@ export function assetInfraDeployedEvent( filters: AssetInfraDeployedEventFilters = {}, ) { return prepareEvent({ + filters, signature: "event AssetInfraDeployed(address indexed implementation, address indexed proxy, bytes32 inputSalt, bytes data, bytes extraData)", - filters, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts index 437686f8a5b..204dd2a6d36 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deployInfraProxyDeterministic" function. @@ -24,26 +24,26 @@ export type DeployInfraProxyDeterministicParams = WithOverrides<{ export const FN_SELECTOR = "0xb43c830c" as const; const FN_INPUTS = [ { - type: "address", name: "implementation", + type: "address", }, { - type: "bytes", name: "data", + type: "bytes", }, { - type: "bytes32", name: "salt", + type: "bytes32", }, { - type: "bytes", name: "extraData", + type: "bytes", }, ] as const; const FN_OUTPUTS = [ { - type: "address", name: "deployedProxy", + type: "address", }, ] as const; @@ -160,8 +160,19 @@ export function deployInfraProxyDeterministic( }); return prepareContractCall({ + accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -172,16 +183,5 @@ export function deployInfraProxyDeterministic( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts index 4787e7cf6f3..a9194516924 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. @@ -28,24 +28,24 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0x30a8ff4e" as const; const FN_INPUTS = [ { - type: "string", name: "_name", + type: "string", }, { - type: "string", name: "_symbol", + type: "string", }, { - type: "string", name: "_contractURI", + type: "string", }, { - type: "uint256", name: "_maxSupply", + type: "uint256", }, { - type: "address", name: "_owner", + type: "address", }, ] as const; const FN_OUTPUTS = [] as const; @@ -161,8 +161,19 @@ export function initialize( }); return prepareContractCall({ + accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -174,16 +185,5 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts index 89d1a31b7d7..a21e466058c 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. @@ -26,16 +26,16 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xc861c250" as const; const FN_INPUTS = [ { - type: "address", name: "_owner", + type: "address", }, { - type: "address", name: "_feeRecipient", + type: "address", }, { - type: "uint96", name: "_defaultFee", + type: "uint96", }, ] as const; const FN_OUTPUTS = [] as const; @@ -143,8 +143,19 @@ export function initialize( }); return prepareContractCall({ + accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -154,16 +165,5 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts index eea57847ad0..eeaae25ec04 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. @@ -18,8 +18,8 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xc4d66de8" as const; const FN_INPUTS = [ { - type: "address", name: "_owner", + type: "address", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function initialize( }); return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.owner] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + contract: options.contract, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, gas: async () => (await asyncOptions()).overrides?.gas, gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.owner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, }); } From 7266b3117b1c223734d1e6b8453fed994f1993a9 Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Mon, 23 Jun 2025 22:23:11 +0530 Subject: [PATCH 03/32] update package.json --- packages/thirdweb/package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index 84245fa94ae..1177e9dea87 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -352,6 +352,9 @@ "ai": [ "./dist/types/exports/ai.d.ts" ], + "assets": [ + "./dist/types/exports/assets.d.ts" + ], "auth": [ "./dist/types/exports/auth.d.ts" ], From 47c87ea3f79230964a144e00254f6760877733a1 Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Mon, 23 Jun 2025 22:47:10 +0530 Subject: [PATCH 04/32] remove export * --- packages/thirdweb/src/assets/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/thirdweb/src/assets/index.ts b/packages/thirdweb/src/assets/index.ts index 10787149f9c..ada29f81a09 100644 --- a/packages/thirdweb/src/assets/index.ts +++ b/packages/thirdweb/src/assets/index.ts @@ -13,4 +13,10 @@ export { createTokenByImplConfig } from "./create-token-by-impl-config.js"; export { distributeToken } from "./distribute-token.js"; export { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; export { isRouterEnabled } from "./is-router-enabled.js"; -export * from "./types.js"; +export type { + CreateTokenOptions, + DistributeContent, + MarketConfig, + PoolConfig, + TokenParams, +} from "./types.js"; From 82cc1160ec551288e975aa2e42d0e14654add310 Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Mon, 23 Jun 2025 23:53:30 +0530 Subject: [PATCH 05/32] remove export * --- packages/thirdweb/src/assets/index.ts | 22 ---------------------- packages/thirdweb/src/exports/assets.ts | 23 ++++++++++++++++++++++- 2 files changed, 22 insertions(+), 23 deletions(-) delete mode 100644 packages/thirdweb/src/assets/index.ts diff --git a/packages/thirdweb/src/assets/index.ts b/packages/thirdweb/src/assets/index.ts deleted file mode 100644 index ada29f81a09..00000000000 --- a/packages/thirdweb/src/assets/index.ts +++ /dev/null @@ -1,22 +0,0 @@ -export { - deployAssetFactory, - deployFeeManager, - deployRewardLocker, - deployRouter, - getDeployedAssetFactory, - getDeployedFeeManager, - getDeployedRewardLocker, - getDeployedRouter, -} from "./bootstrap.js"; -export { createToken } from "./create-token.js"; -export { createTokenByImplConfig } from "./create-token-by-impl-config.js"; -export { distributeToken } from "./distribute-token.js"; -export { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; -export { isRouterEnabled } from "./is-router-enabled.js"; -export type { - CreateTokenOptions, - DistributeContent, - MarketConfig, - PoolConfig, - TokenParams, -} from "./types.js"; diff --git a/packages/thirdweb/src/exports/assets.ts b/packages/thirdweb/src/exports/assets.ts index 13ffd0155f9..17163b74355 100644 --- a/packages/thirdweb/src/exports/assets.ts +++ b/packages/thirdweb/src/exports/assets.ts @@ -1 +1,22 @@ -export * from "../assets/index.js"; +export { + deployAssetFactory, + deployFeeManager, + deployRewardLocker, + deployRouter, + getDeployedAssetFactory, + getDeployedFeeManager, + getDeployedRewardLocker, + getDeployedRouter, +} from "../assets/bootstrap.js"; +export { createToken } from "../assets/create-token.js"; +export { createTokenByImplConfig } from "../assets/create-token-by-impl-config.js"; +export { distributeToken } from "../assets/distribute-token.js"; +export { getDeployedEntrypointERC20 } from "../assets/get-entrypoint-erc20.js"; +export { isRouterEnabled } from "../assets/is-router-enabled.js"; +export type { + CreateTokenOptions, + DistributeContent, + MarketConfig, + PoolConfig, + TokenParams, +} from "../assets/types.js"; From 873e46de98ef42e846425ca052198da9aa009810 Mon Sep 17 00:00:00 2001 From: Yash Date: Tue, 1 Jul 2025 02:26:20 +0530 Subject: [PATCH 06/32] base mainnet entrypoint --- packages/thirdweb/src/assets/constants.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index 0b300604fe8..ed1252e030a 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -14,6 +14,12 @@ export const IMPLEMENTATIONS: Record> = { V3PositionManager: "", V4PositionManager: "", }, + 8453: { + AssetEntrypointERC20: "0xad8978A9E8E39c5Ba81cAcE02358e4D90A7dBDcC", + ERC20AssetImpl: "", + V3PositionManager: "", + V4PositionManager: "", + }, }; export enum ImplementationType { From b7169419e590ef4f6d2bbbbeaf95882f52e7dad0 Mon Sep 17 00:00:00 2001 From: Yash Date: Tue, 1 Jul 2025 19:13:26 +0530 Subject: [PATCH 07/32] fix entrypoint addr --- packages/thirdweb/src/assets/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index ed1252e030a..3a6545dabc5 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -15,7 +15,7 @@ export const IMPLEMENTATIONS: Record> = { V4PositionManager: "", }, 8453: { - AssetEntrypointERC20: "0xad8978A9E8E39c5Ba81cAcE02358e4D90A7dBDcC", + AssetEntrypointERC20: "0x7FF679bFb89ee0F88645CAb8Ab0844ea485a3434", ERC20AssetImpl: "", V3PositionManager: "", V4PositionManager: "", From 0d71393be381eda0586fc4e8ad3b9331cb45213b Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Tue, 1 Jul 2025 20:32:32 +0530 Subject: [PATCH 08/32] fix lint --- packages/thirdweb/src/assets/constants.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index 3a6545dabc5..7069f63c20f 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -8,14 +8,14 @@ export const DEFAULT_FEE_BPS = 50n; export const DEFAULT_SALT = "thirdweb"; export const IMPLEMENTATIONS: Record> = { - 84532: { - AssetEntrypointERC20: "0x79C1236cFe59f1f088A15Da08b0D8667387d9703", + 8453: { + AssetEntrypointERC20: "0x7FF679bFb89ee0F88645CAb8Ab0844ea485a3434", ERC20AssetImpl: "", V3PositionManager: "", V4PositionManager: "", }, - 8453: { - AssetEntrypointERC20: "0x7FF679bFb89ee0F88645CAb8Ab0844ea485a3434", + 84532: { + AssetEntrypointERC20: "0x79C1236cFe59f1f088A15Da08b0D8667387d9703", ERC20AssetImpl: "", V3PositionManager: "", V4PositionManager: "", From 675287879b0860123a83e7df8f96ebe0027e5e77 Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Thu, 10 Jul 2025 06:44:11 +0000 Subject: [PATCH 09/32] Update contracts. New pool config encoder. Salt mixing --- packages/thirdweb/src/assets/constants.ts | 8 +++---- packages/thirdweb/src/assets/create-token.ts | 22 +++++++++++++------- packages/thirdweb/src/assets/token-utils.ts | 20 +++++++++--------- packages/thirdweb/src/assets/types.ts | 3 ++- 4 files changed, 31 insertions(+), 22 deletions(-) diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index 7069f63c20f..8c19f137f38 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -1,21 +1,21 @@ export const DEFAULT_MAX_SUPPLY_ERC20 = 10_000_000_000n; -export const DEFAULT_POOL_FEE = 10000; export const DEFAULT_POOL_INITIAL_TICK = 230200; +export const DEFAULT_REFERRER_REWARD_BPS = 5000; // 50% export const DEFAULT_INFRA_ADMIN = "0x1a472863cf21d5aa27f417df9140400324c48f22"; export const DEFAULT_FEE_RECIPIENT = - "0x1af20c6b23373350ad464700b5965ce4b0d2ad94"; + "0x1Af20C6B23373350aD464700B5965CE4B0D2aD94"; export const DEFAULT_FEE_BPS = 50n; export const DEFAULT_SALT = "thirdweb"; export const IMPLEMENTATIONS: Record> = { 8453: { - AssetEntrypointERC20: "0x7FF679bFb89ee0F88645CAb8Ab0844ea485a3434", + AssetEntrypointERC20: "0x556688D4d192FC59b27E239ff6e06D28786aAdbE", ERC20AssetImpl: "", V3PositionManager: "", V4PositionManager: "", }, 84532: { - AssetEntrypointERC20: "0x79C1236cFe59f1f088A15Da08b0D8667387d9703", + AssetEntrypointERC20: "0xf0ED90ea4df819017ee1dfDADf26d65a678b31b7", ERC20AssetImpl: "", V3PositionManager: "", V4PositionManager: "", diff --git a/packages/thirdweb/src/assets/create-token.ts b/packages/thirdweb/src/assets/create-token.ts index 9bc6d09f947..8fe4d47a8ef 100644 --- a/packages/thirdweb/src/assets/create-token.ts +++ b/packages/thirdweb/src/assets/create-token.ts @@ -35,13 +35,21 @@ export async function createToken(options: CreateTokenOptions) { ...options, }); const blockNumber = await eth_blockNumber(rpcRequest); - const salt = options.salt - ? options.salt.startsWith("0x") && options.salt.length === 66 - ? (options.salt as `0x${string}`) - : keccakId(options.salt) - : toHex(blockNumber, { + + let salt: Hex = "0x"; + if (!options.salt) { + salt = + "0x1f" + + toHex(blockNumber, { size: 32, - }); + }).substring(4); + } else { + if (options.salt.startsWith("0x") && options.salt.length === 66) { + salt = options.salt as `0x${string}`; + } else { + salt = "0x1f" + keccakId(options.salt).substring(4); + } + } const entrypoint = await getOrDeployEntrypointERC20(options); @@ -87,7 +95,7 @@ export async function createToken(options: CreateTokenOptions) { amount, data: encodedInitData, hookData, - referrer: ZERO_ADDRESS, + referrer: options.referrerAddress || ZERO_ADDRESS, salt, }, creator, diff --git a/packages/thirdweb/src/assets/token-utils.ts b/packages/thirdweb/src/assets/token-utils.ts index f9462691b2e..9f8cafaf538 100644 --- a/packages/thirdweb/src/assets/token-utils.ts +++ b/packages/thirdweb/src/assets/token-utils.ts @@ -7,8 +7,8 @@ import { encodeAbiParameters } from "../utils/abi/encodeAbiParameters.js"; import { toUnits } from "../utils/units.js"; import { DEFAULT_MAX_SUPPLY_ERC20, - DEFAULT_POOL_FEE, DEFAULT_POOL_INITIAL_TICK, + DEFAULT_REFERRER_REWARD_BPS, } from "./constants.js"; import type { MarketConfig, PoolConfig, TokenParams } from "./types.js"; @@ -50,29 +50,29 @@ export async function encodeInitParams(options: { export function encodePoolConfig(poolConfig: PoolConfig): Hex { const POOL_PARAMS = [ - { - name: "currency", - type: "address", - }, { name: "amount", type: "uint256", }, { - name: "fee", - type: "uint24", + name: "currency", + type: "address", }, { name: "initialTick", - type: "uint24", + type: "int24", + }, + { + name: "referrerRewardBps", + type: "uint16", }, ] as const; return encodeAbiParameters(POOL_PARAMS, [ - poolConfig.currency || NATIVE_TOKEN_ADDRESS, toUnits(poolConfig.amount.toString(), 18), - poolConfig.fee || DEFAULT_POOL_FEE, + poolConfig.currency || NATIVE_TOKEN_ADDRESS, poolConfig.initialTick || DEFAULT_POOL_INITIAL_TICK, + poolConfig.referrerRewardBps || DEFAULT_REFERRER_REWARD_BPS, ]); } diff --git a/packages/thirdweb/src/assets/types.ts b/packages/thirdweb/src/assets/types.ts index 48766dff719..70a8ff96660 100644 --- a/packages/thirdweb/src/assets/types.ts +++ b/packages/thirdweb/src/assets/types.ts @@ -16,8 +16,8 @@ export type TokenParams = { export type PoolConfig = { amount: bigint; currency?: string; - fee?: number; initialTick?: number; + referrerRewardBps?: number; }; export type MarketConfig = { @@ -48,4 +48,5 @@ export type CreateTokenOptions = ClientAndChainAndAccount & { salt?: string; params: TokenParams; launchConfig?: LaunchConfig; + referrerAddress?: string; }; From 2c8b80e14a374cd0d1e55bfdff912f625a26577e Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Thu, 10 Jul 2025 21:36:40 +0530 Subject: [PATCH 10/32] Fix build --- packages/thirdweb/src/assets/create-token.ts | 12 +++++------- packages/thirdweb/src/assets/types.ts | 3 ++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/thirdweb/src/assets/create-token.ts b/packages/thirdweb/src/assets/create-token.ts index 8fe4d47a8ef..0185e9cb7de 100644 --- a/packages/thirdweb/src/assets/create-token.ts +++ b/packages/thirdweb/src/assets/create-token.ts @@ -38,16 +38,14 @@ export async function createToken(options: CreateTokenOptions) { let salt: Hex = "0x"; if (!options.salt) { - salt = - "0x1f" + - toHex(blockNumber, { - size: 32, - }).substring(4); + salt = `0x1f${toHex(blockNumber, { + size: 32, + }).substring(4)}`; } else { if (options.salt.startsWith("0x") && options.salt.length === 66) { - salt = options.salt as `0x${string}`; + salt = options.salt; } else { - salt = "0x1f" + keccakId(options.salt).substring(4); + salt = `0x1f${keccakId(options.salt).substring(4)}`; } } diff --git a/packages/thirdweb/src/assets/types.ts b/packages/thirdweb/src/assets/types.ts index 70a8ff96660..966390e852a 100644 --- a/packages/thirdweb/src/assets/types.ts +++ b/packages/thirdweb/src/assets/types.ts @@ -1,3 +1,4 @@ +import type { Hex } from "viem"; import type { FileOrBufferOrString } from "../storage/upload/types.js"; import type { ClientAndChainAndAccount } from "../utils/types.js"; @@ -45,7 +46,7 @@ type LaunchConfig = | { kind: "distribute"; config: DistributeConfig }; export type CreateTokenOptions = ClientAndChainAndAccount & { - salt?: string; + salt?: Hex; params: TokenParams; launchConfig?: LaunchConfig; referrerAddress?: string; From 89e63f9df61a260ca3ceac9335ee98961eb4640e Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Tue, 15 Jul 2025 07:09:29 +0000 Subject: [PATCH 11/32] Update contracts. Add RewardLocker. Simplify assets --- .../abis/assets/AssetEntrypointERC20.json | 34 -- .../abis/assets/AssetInfraDeployer.json | 2 +- .../generate/abis/assets/ERC20Asset.json | 48 ++- .../abis/assets/ERC20AssetEntrypoint.json | 67 ++++ .../generate/abis/assets/FeeManager.json | 46 ++- .../generate/abis/assets/RewardLocker.json | 16 + .../scripts/generate/abis/assets/Router.json | 53 ++- packages/thirdweb/src/assets/bootstrap.ts | 331 ------------------ .../src/assets/bootstrapinfra.test.ts | 25 -- packages/thirdweb/src/assets/constants.ts | 13 +- .../src/assets/create-token-by-impl-config.ts | 14 +- .../thirdweb/src/assets/create-token.test.ts | 5 +- packages/thirdweb/src/assets/create-token.ts | 4 +- .../src/assets/distribute-token.test.ts | 5 +- .../thirdweb/src/assets/distribute-token.ts | 2 +- .../src/assets/get-entrypoint-erc20.ts | 90 +---- .../thirdweb/src/assets/is-router-enabled.ts | 2 +- packages/thirdweb/src/assets/types.ts | 4 + packages/thirdweb/src/exports/assets.ts | 13 +- .../Airdrop/events/OwnerUpdated.ts | 4 +- .../Airdrop/read/eip712Domain.ts | 19 +- .../__generated__/Airdrop/read/isClaimed.ts | 10 +- .../__generated__/Airdrop/read/owner.ts | 5 +- .../Airdrop/read/tokenConditionId.ts | 6 +- .../Airdrop/read/tokenMerkleRoot.ts | 6 +- .../Airdrop/write/airdropERC1155.ts | 38 +- .../write/airdropERC1155WithSignature.ts | 48 +-- .../Airdrop/write/airdropERC20.ts | 36 +- .../write/airdropERC20WithSignature.ts | 46 +-- .../Airdrop/write/airdropERC721.ts | 36 +- .../write/airdropERC721WithSignature.ts | 46 +-- .../Airdrop/write/airdropNativeToken.ts | 34 +- .../Airdrop/write/claimERC1155.ts | 36 +- .../__generated__/Airdrop/write/claimERC20.ts | 34 +- .../Airdrop/write/claimERC721.ts | 34 +- .../__generated__/Airdrop/write/initialize.ts | 28 +- .../Airdrop/write/setMerkleRoot.ts | 32 +- .../__generated__/Airdrop/write/setOwner.ts | 28 +- .../events/AssetInfraDeployed.ts | 4 +- .../write/deployInfraProxyDeterministic.ts | 36 +- .../ERC20Asset/events/Approval.ts | 47 +++ .../ERC20Asset/events/ContractURIUpdated.ts | 24 ++ .../ERC20Asset/events/Initialized.ts | 24 ++ .../events/OwnershipHandoverCanceled.ts | 42 +++ .../events/OwnershipHandoverRequested.ts | 42 +++ .../ERC20Asset/events/OwnershipTransferred.ts | 49 +++ .../ERC20Asset/events/Transfer.ts | 47 +++ .../ERC20Asset/read/DOMAIN_SEPARATOR.ts | 71 ++++ .../ERC20Asset/read/allowance.ts | 134 +++++++ .../ERC20Asset/read/balanceOf.ts | 126 +++++++ .../ERC20Asset/read/contractURI.ts | 70 ++++ .../__generated__/ERC20Asset/read/decimals.ts | 70 ++++ .../__generated__/ERC20Asset/read/name.ts | 70 ++++ .../__generated__/ERC20Asset/read/nonces.ts | 122 +++++++ .../__generated__/ERC20Asset/read/owner.ts | 71 ++++ .../read/ownershipHandoverExpiresAt.ts | 135 +++++++ .../ERC20Asset/read/supportsInterface.ts | 130 +++++++ .../__generated__/ERC20Asset/read/symbol.ts | 70 ++++ .../ERC20Asset/read/totalSupply.ts | 71 ++++ .../__generated__/ERC20Asset/write/approve.ts | 149 ++++++++ .../__generated__/ERC20Asset/write/burn.ts | 137 ++++++++ .../ERC20Asset/write/burnFrom.ts | 145 ++++++++ .../write/cancelOwnershipHandover.ts | 52 +++ .../write/completeOwnershipHandover.ts | 148 ++++++++ .../ERC20Asset/write/initialize.ts | 36 +- .../__generated__/ERC20Asset/write/permit.ts | 201 +++++++++++ .../ERC20Asset/write/renounceOwnership.ts | 50 +++ .../write/requestOwnershipHandover.ts | 52 +++ .../ERC20Asset/write/setContractURI.ts | 142 ++++++++ .../ERC20Asset/write/transfer.ts | 149 ++++++++ .../ERC20Asset/write/transferFrom.ts | 167 +++++++++ .../ERC20Asset/write/transferOwnership.ts | 141 ++++++++ .../events/AirdropUpdated.ts | 24 ++ .../events/AssetCreated.ts | 4 +- .../events/AssetDistributed.ts | 0 .../events/ImplementationAdded.ts | 6 +- .../events/Initialized.ts | 24 ++ .../events/OwnershipHandoverCanceled.ts | 42 +++ .../events/OwnershipHandoverRequested.ts | 42 +++ .../events/OwnershipTransferred.ts | 49 +++ .../events/RewardLockerUpdated.ts | 24 ++ .../events/RouterUpdated.ts | 24 ++ .../events/Upgraded.ts} | 22 +- .../read/decodeOwnerFromInitData.ts | 132 +++++++ .../ERC20AssetEntrypoint/read/getAirdrop.ts | 71 ++++ .../read/getImplementation.ts | 19 +- .../read/getRewardLocker.ts | 7 +- .../read/getRewardPosition.ts | 149 ++++++++ .../read/getRouter.ts | 7 +- .../ERC20AssetEntrypoint/read/guardSalt.ts | 165 +++++++++ .../ERC20AssetEntrypoint/read/owner.ts | 71 ++++ .../read/ownershipHandoverExpiresAt.ts | 135 +++++++ .../read/predictAssetAddress.ts | 183 ++++++++++ .../read/predictAssetAddressByConfig.ts | 216 ++++++++++++ .../read/proxiableUUID.ts | 70 ++++ .../write/addImplementation.ts | 42 +-- .../write/buyAsset.ts | 52 +-- .../write/cancelOwnershipHandover.ts | 52 +++ .../write/claimRewards.ts | 139 ++++++++ .../write/completeOwnershipHandover.ts | 148 ++++++++ .../write/createAsset.ts | 44 +-- .../write/createAssetById.ts | 46 +-- .../createAssetByImplementationConfig.ts | 58 +-- .../write/distributeAsset.ts | 36 +- .../write/initialize.ts | 50 +-- .../write/listAsset.ts | 85 +++-- .../write/renounceOwnership.ts | 50 +++ .../write/requestOwnershipHandover.ts | 52 +++ .../write/sellAsset.ts | 50 +-- .../ERC20AssetEntrypoint/write/setAirdrop.ts | 139 ++++++++ .../write/setRewardLocker.ts | 28 +- .../write/setRouter.ts | 28 +- .../write/transferOwnership.ts | 141 ++++++++ .../write/upgradeToAndCall.ts | 153 ++++++++ .../FeeManager/events/FeeConfigUpdated.ts | 49 +++ .../events/FeeConfigUpdatedBySignature.ts | 55 +++ .../FeeManager/events/FeeRecipientUpdated.ts | 24 ++ .../events/OwnershipHandoverCanceled.ts | 42 +++ .../events/OwnershipHandoverRequested.ts | 42 +++ .../FeeManager/events/OwnershipTransferred.ts | 49 +++ .../FeeManager/events/RolesUpdated.ts | 47 +++ .../FeeManager/read/ROLE_FEE_MANAGER.ts | 70 ++++ .../FeeManager/read/calculateFee.ts | 167 +++++++++ .../FeeManager/read/domainSeparator.ts | 70 ++++ .../FeeManager/read/eip712Domain.ts | 95 +++++ .../FeeManager/read/feeConfigs.ts | 142 ++++++++ .../FeeManager/read/feeRecipient.ts | 70 ++++ .../FeeManager/read/getFeeConfig.ts | 148 ++++++++ .../FeeManager/read/hasAllRoles.ts | 133 +++++++ .../FeeManager/read/hasAnyRole.ts | 133 +++++++ .../__generated__/FeeManager/read/owner.ts | 71 ++++ .../read/ownershipHandoverExpiresAt.ts | 135 +++++++ .../__generated__/FeeManager/read/rolesOf.ts | 122 +++++++ .../FeeManager/read/usedNonces.ts | 129 +++++++ .../write/cancelOwnershipHandover.ts | 52 +++ .../write/completeOwnershipHandover.ts | 148 ++++++++ .../FeeManager/write/grantRoles.ts | 147 ++++++++ .../FeeManager/write/renounceOwnership.ts | 50 +++ .../FeeManager/write/renounceRoles.ts | 139 ++++++++ .../write/requestOwnershipHandover.ts | 52 +++ .../FeeManager/write/revokeRoles.ts | 147 ++++++++ .../FeeManager/write/setFeeConfig.ts | 163 +++++++++ .../write/setFeeConfigBySignature.ts | 222 ++++++++++++ .../{initialize.ts => setFeeRecipient.ts} | 107 +++--- .../FeeManager/write/setTargetFeeConfig.ts | 188 ++++++++++ .../FeeManager/write/transferOwnership.ts | 141 ++++++++ .../RewardLocker/events/PositionLocked.ts | 47 +++ .../RewardLocker/events/RewardsCollected.ts | 49 +++ .../RewardLocker/read/feeManager.ts | 70 ++++ .../RewardLocker/read/positions.ts | 150 ++++++++ .../RewardLocker/read/v3PositionManager.ts | 70 ++++ .../RewardLocker/read/v4PositionManager.ts | 70 ++++ .../RewardLocker/write/collectRewards.ts | 164 +++++++++ .../RewardLocker/write/lockPosition.ts | 202 +++++++++++ .../Router/events/AdapterDisabled.ts | 24 ++ .../Router/events/AdapterEnabled.ts | 24 ++ .../Router/events/Initialized.ts | 24 ++ .../events/OwnershipHandoverCanceled.ts | 42 +++ .../events/OwnershipHandoverRequested.ts | 42 +++ .../Router/events/OwnershipTransferred.ts | 49 +++ .../Router/events/SwapExecuted.ts | 53 +++ .../events/Upgraded.ts} | 24 +- .../__generated__/Router/read/NATIVE_TOKEN.ts | 70 ++++ .../assets/__generated__/Router/read/owner.ts | 71 ++++ .../Router/read/ownershipHandoverExpiresAt.ts | 135 +++++++ .../Router/read/proxiableUUID.ts | 70 ++++ .../Router/write/cancelOwnershipHandover.ts | 52 +++ .../Router/write/completeOwnershipHandover.ts | 148 ++++++++ .../Router/write/createMarket.ts | 214 +++++++++++ .../__generated__/Router/write/createPool.ts | 202 +++++++++++ .../Router/write/disableAdapter.ts | 142 ++++++++ .../Router/write/enableAdapter.ts | 150 ++++++++ .../__generated__/Router/write/initialize.ts | 30 +- .../Router/write/renounceOwnership.ts | 50 +++ .../Router/write/requestOwnershipHandover.ts | 52 +++ .../assets/__generated__/Router/write/swap.ts | 203 +++++++++++ .../Router/write/transferOwnership.ts | 141 ++++++++ .../Router/write/upgradeToAndCall.ts | 153 ++++++++ .../write/setClaimConditions.ts | 48 +-- .../IContractMetadata/read/contractURI.ts | 5 +- .../IContractMetadata/read/name.ts | 5 +- .../IContractMetadata/read/symbol.ts | 5 +- .../IContractMetadata/write/setContractURI.ts | 28 +- .../IMulticall/write/multicall.ts | 30 +- .../IOwnable/events/OwnerUpdated.ts | 4 +- .../__generated__/IOwnable/read/owner.ts | 5 +- .../__generated__/IOwnable/write/setOwner.ts | 28 +- .../events/PlatformFeeInfoUpdated.ts | 4 +- .../IPlatformFee/read/getPlatformFeeInfo.ts | 5 +- .../IPlatformFee/write/setPlatformFeeInfo.ts | 30 +- .../events/PrimarySaleRecipientUpdated.ts | 4 +- .../IPrimarySale/read/primarySaleRecipient.ts | 5 +- .../write/setPrimarySaleRecipient.ts | 28 +- .../IRoyalty/events/DefaultRoyalty.ts | 4 +- .../IRoyalty/events/RoyaltyForToken.ts | 4 +- .../IRoyalty/read/getDefaultRoyaltyInfo.ts | 5 +- .../IRoyalty/read/getRoyaltyInfoForToken.ts | 6 +- .../IRoyalty/read/royaltyInfo.ts | 12 +- .../IRoyalty/read/supportsInterface.ts | 6 +- .../IRoyalty/write/setDefaultRoyaltyInfo.ts | 30 +- .../IRoyalty/write/setRoyaltyInfoForToken.ts | 32 +- .../events/RoyaltyEngineUpdated.ts | 4 +- .../read/supportsInterface.ts | 6 +- .../IRoyaltyPayments/write/getRoyalty.ts | 36 +- .../write/setRoyaltyEngine.ts | 28 +- .../read/getAllExtensions.ts | 25 +- .../IExtensionManager/write/addExtension.ts | 48 +-- .../write/removeExtension.ts | 28 +- .../__generated__/AddressResolver/read/ABI.ts | 8 +- .../AddressResolver/read/addr.ts | 6 +- .../AddressResolver/read/contenthash.ts | 6 +- .../AddressResolver/read/name.ts | 6 +- .../AddressResolver/read/pubkey.ts | 10 +- .../AddressResolver/read/text.ts | 8 +- .../ens/__generated__/L2Resolver/read/name.ts | 6 +- .../UniversalResolver/read/resolve.ts | 8 +- .../UniversalResolver/read/reverse.ts | 6 +- .../BatchMintMetadata/read/getBaseURICount.ts | 5 +- .../read/getBatchIdAtIndex.ts | 6 +- .../DropERC1155/read/verifyClaim.ts | 30 +- .../DropERC1155/write/freezeBatchBaseURI.ts | 28 +- .../DropERC1155/write/setMaxTotalSupply.ts | 30 +- .../write/setSaleRecipientForToken.ts | 30 +- .../DropERC1155/write/updateBatchBaseURI.ts | 30 +- .../IAirdropERC1155/events/AirdropFailed.ts | 4 +- .../IAirdropERC1155/write/airdropERC1155.ts | 40 +-- .../events/TokensClaimed.ts | 4 +- .../IAirdropERC1155Claimable/write/claim.ts | 36 +- .../IBurnableERC1155/write/burn.ts | 32 +- .../IBurnableERC1155/write/burnBatch.ts | 32 +- .../IClaimableERC1155/events/TokensClaimed.ts | 4 +- .../IClaimableERC1155/read/verifyClaim.ts | 6 +- .../IClaimableERC1155/write/claim.ts | 32 +- .../events/ClaimConditionsUpdated.ts | 4 +- .../IDrop1155/events/TokensClaimed.ts | 4 +- .../IDrop1155/read/claimCondition.ts | 10 +- .../read/getActiveClaimConditionId.ts | 6 +- .../IDrop1155/read/getClaimConditionById.ts | 28 +- .../__generated__/IDrop1155/write/claim.ts | 50 +-- .../IDrop1155/write/setClaimConditions.ts | 50 +-- .../events/ClaimConditionUpdated.ts | 4 +- .../events/TokensClaimed.ts | 4 +- .../read/claimCondition.ts | 22 +- .../IDropSinglePhase1155/write/claim.ts | 50 +-- .../write/setClaimConditions.ts | 50 +-- .../IERC1155/events/ApprovalForAll.ts | 4 +- .../IERC1155/events/TransferBatch.ts | 4 +- .../IERC1155/events/TransferSingle.ts | 4 +- .../__generated__/IERC1155/events/URI.ts | 4 +- .../__generated__/IERC1155/read/balanceOf.ts | 8 +- .../IERC1155/read/balanceOfBatch.ts | 8 +- .../IERC1155/read/isApprovedForAll.ts | 8 +- .../IERC1155/read/totalSupply.ts | 6 +- .../__generated__/IERC1155/read/uri.ts | 6 +- .../IERC1155/write/safeBatchTransferFrom.ts | 36 +- .../IERC1155/write/safeTransferFrom.ts | 36 +- .../IERC1155/write/setApprovalForAll.ts | 30 +- .../read/nextTokenIdToMint.ts | 5 +- .../read/supportsInterface.ts | 6 +- .../write/onERC1155BatchReceived.ts | 36 +- .../write/onERC1155Received.ts | 36 +- .../write/depositRewardTokens.ts | 28 +- .../write/withdrawRewardTokens.ts | 28 +- .../ILazyMint/events/TokensLazyMinted.ts | 4 +- .../__generated__/ILazyMint/write/lazyMint.ts | 34 +- .../IMintableERC1155/events/TokensMinted.ts | 4 +- .../IMintableERC1155/write/mintTo.ts | 34 +- .../INFTMetadata/read/supportsInterface.ts | 6 +- .../INFTMetadata/write/freezeMetadata.ts | 2 +- .../INFTMetadata/write/setTokenURI.ts | 30 +- .../__generated__/IPack/events/PackCreated.ts | 4 +- .../__generated__/IPack/events/PackOpened.ts | 4 +- .../__generated__/IPack/events/PackUpdated.ts | 4 +- .../__generated__/IPack/write/createPack.ts | 52 +-- .../__generated__/IPack/write/openPack.ts | 40 +-- .../events/PackOpenRequested.ts | 4 +- .../events/PackRandomnessFulfilled.ts | 4 +- .../IPackVRFDirect/read/canClaimRewards.ts | 6 +- .../IPackVRFDirect/write/claimRewards.ts | 14 +- .../write/openPackAndClaimRewards.ts | 32 +- .../events/TokensMintedWithSignature.ts | 4 +- .../ISignatureMintERC1155/read/verify.ts | 38 +- .../write/mintWithSignature.ts | 56 +-- .../IStaking1155/events/RewardsClaimed.ts | 4 +- .../IStaking1155/events/TokensStaked.ts | 4 +- .../IStaking1155/events/TokensWithdrawn.ts | 4 +- .../events/UpdatedRewardsPerUnitTime.ts | 4 +- .../IStaking1155/events/UpdatedTimeUnit.ts | 4 +- .../IStaking1155/read/getStakeInfo.ts | 12 +- .../IStaking1155/read/getStakeInfoForToken.ts | 12 +- .../IStaking1155/write/claimRewards.ts | 28 +- .../__generated__/IStaking1155/write/stake.ts | 30 +- .../IStaking1155/write/withdraw.ts | 30 +- .../Zora1155/read/nextTokenId.ts | 5 +- .../isValidSignature/read/isValidSignature.ts | 8 +- .../IERC165/read/supportsInterface.ts | 6 +- .../IERC1822Proxiable/read/proxiableUUID.ts | 5 +- .../DropERC20/read/verifyClaim.ts | 28 +- .../IAirdropERC20/events/AirdropFailed.ts | 4 +- .../IAirdropERC20/write/airdropERC20.ts | 38 +- .../events/TokensClaimed.ts | 4 +- .../IAirdropERC20Claimable/write/claim.ts | 34 +- .../IBurnableERC20/write/burn.ts | 28 +- .../IBurnableERC20/write/burnFrom.ts | 30 +- .../IDropERC20/events/TokensClaimed.ts | 4 +- .../IDropERC20/read/claimCondition.ts | 9 +- .../read/getActiveClaimConditionId.ts | 5 +- .../IDropERC20/read/getClaimConditionById.ts | 26 +- .../__generated__/IDropERC20/write/claim.ts | 48 +-- .../IDropERC20/write/setClaimConditions.ts | 48 +-- .../__generated__/IERC20/events/Approval.ts | 4 +- .../__generated__/IERC20/events/Transfer.ts | 4 +- .../__generated__/IERC20/read/allowance.ts | 8 +- .../__generated__/IERC20/read/balanceOf.ts | 6 +- .../__generated__/IERC20/read/decimals.ts | 5 +- .../__generated__/IERC20/read/totalSupply.ts | 5 +- .../__generated__/IERC20/write/approve.ts | 30 +- .../__generated__/IERC20/write/transfer.ts | 30 +- .../IERC20/write/transferFrom.ts | 32 +- .../IERC20Permit/read/DOMAIN_SEPARATOR.ts | 5 +- .../__generated__/IERC20Permit/read/nonces.ts | 6 +- .../IERC20Permit/write/permit.ts | 40 +-- .../IMintableERC20/events/TokensMinted.ts | 4 +- .../IMintableERC20/write/mintTo.ts | 30 +- .../events/TokensMintedWithSignature.ts | 4 +- .../ISignatureMintERC20/read/verify.ts | 30 +- .../write/mintWithSignature.ts | 48 +-- .../IStaking20/events/RewardsClaimed.ts | 4 +- .../IStaking20/events/TokensStaked.ts | 4 +- .../IStaking20/events/TokensWithdrawn.ts | 4 +- .../IStaking20/read/getStakeInfo.ts | 10 +- .../IStaking20/write/claimRewards.ts | 2 +- .../__generated__/IStaking20/write/stake.ts | 28 +- .../IStaking20/write/withdraw.ts | 28 +- .../ITokenStake/write/depositRewardTokens.ts | 28 +- .../ITokenStake/write/withdrawRewardTokens.ts | 28 +- .../IVotes/events/DelegateChanged.ts | 4 +- .../IVotes/events/DelegateVotesChanged.ts | 4 +- .../__generated__/IVotes/read/delegates.ts | 6 +- .../IVotes/read/getPastTotalSupply.ts | 6 +- .../__generated__/IVotes/read/getPastVotes.ts | 8 +- .../__generated__/IVotes/read/getVotes.ts | 6 +- .../__generated__/IVotes/write/delegate.ts | 28 +- .../IVotes/write/delegateBySig.ts | 38 +- .../__generated__/IWETH/write/deposit.ts | 2 +- .../__generated__/IWETH/write/transfer.ts | 30 +- .../__generated__/IWETH/write/withdraw.ts | 28 +- .../read/isTrustedForwarder.ts | 6 +- .../IERC2981/read/royaltyInfo.ts | 12 +- .../IAccount/write/validateUserOp.ts | 58 +-- .../IAccountFactory/events/AccountCreated.ts | 4 +- .../IAccountFactory/events/SignerAdded.ts | 4 +- .../IAccountFactory/events/SignerRemoved.ts | 4 +- .../read/accountImplementation.ts | 5 +- .../IAccountFactory/read/getAccounts.ts | 8 +- .../read/getAccountsOfSigner.ts | 8 +- .../IAccountFactory/read/getAddress.ts | 8 +- .../IAccountFactory/read/getAllAccounts.ts | 5 +- .../IAccountFactory/read/isRegistered.ts | 6 +- .../IAccountFactory/read/totalAccounts.ts | 5 +- .../IAccountFactory/write/createAccount.ts | 32 +- .../IAccountFactory/write/onSignerAdded.ts | 32 +- .../IAccountFactory/write/onSignerRemoved.ts | 32 +- .../events/AdminUpdated.ts | 4 +- .../events/SignerPermissionsUpdated.ts | 4 +- .../read/getAllActiveSigners.ts | 19 +- .../IAccountPermissions/read/getAllAdmins.ts | 7 +- .../IAccountPermissions/read/getAllSigners.ts | 19 +- .../read/getPermissionsForSigner.ts | 20 +- .../read/isActiveSigner.ts | 6 +- .../IAccountPermissions/read/isAdmin.ts | 6 +- .../read/verifySignerPermissionRequest.ts | 32 +- .../write/setPermissionsForSigner.ts | 50 +-- .../IEntryPoint/events/AccountDeployed.ts | 4 +- .../IEntryPoint/events/Deposited.ts | 4 +- .../events/SignatureAggregatorChanged.ts | 4 +- .../IEntryPoint/events/StakeLocked.ts | 4 +- .../IEntryPoint/events/StakeUnlocked.ts | 4 +- .../IEntryPoint/events/StakeWithdrawn.ts | 4 +- .../IEntryPoint/events/UserOperationEvent.ts | 4 +- .../events/UserOperationRevertReason.ts | 4 +- .../IEntryPoint/events/Withdrawn.ts | 4 +- .../IEntryPoint/read/balanceOf.ts | 6 +- .../IEntryPoint/read/getDepositInfo.ts | 20 +- .../IEntryPoint/read/getNonce.ts | 10 +- .../IEntryPoint/read/getUserOpHash.ts | 30 +- .../IEntryPoint/write/addStake.ts | 28 +- .../IEntryPoint/write/depositTo.ts | 28 +- .../IEntryPoint/write/getSenderAddress.ts | 28 +- .../IEntryPoint/write/handleAggregatedOps.ts | 62 ++-- .../IEntryPoint/write/handleOps.ts | 54 +-- .../IEntryPoint/write/incrementNonce.ts | 28 +- .../IEntryPoint/write/simulateHandleOp.ts | 56 +-- .../IEntryPoint/write/simulateValidation.ts | 52 +-- .../IEntryPoint/write/unlockStake.ts | 2 +- .../IEntryPoint/write/withdrawStake.ts | 28 +- .../IEntryPoint/write/withdrawTo.ts | 30 +- .../events/PostOpRevertReason.ts | 4 +- .../IEntryPoint_v07/read/getUserOpHash.ts | 26 +- .../__generated__/IPaymaster/write/postOp.ts | 32 +- .../write/validatePaymasterUserOp.ts | 60 ++-- .../__generated__/IERC4626/events/Deposit.ts | 4 +- .../__generated__/IERC4626/events/Withdraw.ts | 4 +- .../__generated__/IERC4626/read/asset.ts | 7 +- .../IERC4626/read/convertToAssets.ts | 8 +- .../IERC4626/read/convertToShares.ts | 8 +- .../__generated__/IERC4626/read/maxDeposit.ts | 8 +- .../__generated__/IERC4626/read/maxMint.ts | 8 +- .../__generated__/IERC4626/read/maxRedeem.ts | 8 +- .../IERC4626/read/maxWithdraw.ts | 8 +- .../IERC4626/read/previewDeposit.ts | 8 +- .../IERC4626/read/previewMint.ts | 6 +- .../IERC4626/read/previewRedeem.ts | 8 +- .../IERC4626/read/previewWithdraw.ts | 8 +- .../IERC4626/read/totalAssets.ts | 7 +- .../__generated__/IERC4626/write/deposit.ts | 32 +- .../__generated__/IERC4626/write/mint.ts | 32 +- .../__generated__/IERC4626/write/redeem.ts | 34 +- .../__generated__/IERC4626/write/withdraw.ts | 34 +- .../IERC6551Account/read/isValidSigner.ts | 10 +- .../IERC6551Account/read/state.ts | 5 +- .../IERC6551Account/read/token.ts | 11 +- .../DropERC721/read/verifyClaim.ts | 28 +- .../DropERC721/write/freezeBatchBaseURI.ts | 28 +- .../DropERC721/write/setMaxTotalSupply.ts | 28 +- .../DropERC721/write/updateBatchBaseURI.ts | 30 +- .../IAirdropERC721/events/AirdropFailed.ts | 4 +- .../IAirdropERC721/write/airdropERC721.ts | 38 +- .../events/TokensClaimed.ts | 4 +- .../IAirdropERC721Claimable/write/claim.ts | 34 +- .../read/getBaseURICount.ts | 5 +- .../read/getBatchIdAtIndex.ts | 6 +- .../IBurnableERC721/write/burn.ts | 28 +- .../IClaimableERC721/events/TokensClaimed.ts | 4 +- .../IClaimableERC721/read/verifyClaim.ts | 4 +- .../IClaimableERC721/write/claim.ts | 30 +- .../IDelayedReveal/events/TokenURIRevealed.ts | 4 +- .../IDelayedReveal/read/encryptDecrypt.ts | 10 +- .../IDelayedReveal/read/encryptedData.ts | 6 +- .../IDelayedReveal/write/reveal.ts | 32 +- .../IDrop/events/TokensClaimed.ts | 4 +- .../IDrop/read/baseURIIndices.ts | 6 +- .../IDrop/read/claimCondition.ts | 9 +- .../IDrop/read/getActiveClaimConditionId.ts | 5 +- .../IDrop/read/getClaimConditionById.ts | 26 +- .../IDrop/read/nextTokenIdToClaim.ts | 5 +- .../erc721/__generated__/IDrop/write/claim.ts | 48 +-- .../IDrop/write/setClaimConditions.ts | 48 +-- .../IDropSinglePhase/events/TokensClaimed.ts | 4 +- .../IDropSinglePhase/read/claimCondition.ts | 25 +- .../IDropSinglePhase/write/claim.ts | 48 +-- .../write/setClaimConditions.ts | 48 +-- .../__generated__/IERC721A/events/Approval.ts | 4 +- .../IERC721A/events/ApprovalForAll.ts | 4 +- .../__generated__/IERC721A/events/Transfer.ts | 4 +- .../__generated__/IERC721A/read/balanceOf.ts | 6 +- .../IERC721A/read/getApproved.ts | 6 +- .../IERC721A/read/isApprovedForAll.ts | 8 +- .../__generated__/IERC721A/read/name.ts | 5 +- .../__generated__/IERC721A/read/ownerOf.ts | 6 +- .../IERC721A/read/startTokenId.ts | 5 +- .../__generated__/IERC721A/read/symbol.ts | 5 +- .../__generated__/IERC721A/read/tokenURI.ts | 6 +- .../IERC721A/read/totalSupply.ts | 5 +- .../__generated__/IERC721A/write/approve.ts | 30 +- .../IERC721A/write/safeTransferFrom.ts | 32 +- .../IERC721A/write/setApprovalForAll.ts | 30 +- .../IERC721A/write/transferFrom.ts | 32 +- .../events/ConsecutiveTransfer.ts | 4 +- .../IERC721AQueryable/read/tokensOfOwner.ts | 6 +- .../IERC721AQueryable/read/tokensOfOwnerIn.ts | 10 +- .../read/nextTokenIdToMint.ts | 5 +- .../IERC721Enumerable/read/tokenByIndex.ts | 6 +- .../read/tokenOfOwnerByIndex.ts | 8 +- .../IERC721Receiver/write/onERC721Received.ts | 34 +- .../ILazyMint/events/TokensLazyMinted.ts | 4 +- .../__generated__/ILazyMint/write/lazyMint.ts | 34 +- .../IMintableERC721/events/TokensMinted.ts | 4 +- .../IMintableERC721/write/mintTo.ts | 30 +- .../INFTMetadata/read/supportsInterface.ts | 6 +- .../INFTMetadata/write/freezeMetadata.ts | 2 +- .../INFTMetadata/write/setTokenURI.ts | 30 +- .../INFTStake/write/depositRewardTokens.ts | 28 +- .../INFTStake/write/withdrawRewardTokens.ts | 28 +- .../ISharedMetadata/read/sharedMetadata.ts | 13 +- .../write/setSharedMetadata.ts | 38 +- .../events/SharedMetadataDeleted.ts | 4 +- .../events/SharedMetadataUpdated.ts | 4 +- .../read/getAllSharedMetadata.ts | 23 +- .../write/deleteSharedMetadata.ts | 28 +- .../write/setSharedMetadata.ts | 40 +-- .../events/TokensMintedWithSignature.ts | 4 +- .../ISignatureMintERC721/read/verify.ts | 34 +- .../write/mintWithSignature.ts | 54 +-- .../events/TokensMintedWithSignature.ts | 4 +- .../ISignatureMintERC721_v2/read/verify.ts | 36 +- .../write/mintWithSignature.ts | 56 +-- .../IStaking721/events/RewardsClaimed.ts | 4 +- .../IStaking721/events/TokensStaked.ts | 4 +- .../IStaking721/events/TokensWithdrawn.ts | 4 +- .../IStaking721/read/getStakeInfo.ts | 10 +- .../IStaking721/write/claimRewards.ts | 2 +- .../__generated__/IStaking721/write/stake.ts | 28 +- .../IStaking721/write/withdraw.ts | 28 +- .../LoyaltyCard/events/TokensMinted.ts | 4 +- .../events/TokensMintedWithSignature.ts | 4 +- .../LoyaltyCard/read/nextTokenIdToMint.ts | 5 +- .../LoyaltyCard/read/supportsInterface.ts | 6 +- .../LoyaltyCard/read/tokenURI.ts | 6 +- .../LoyaltyCard/read/totalMinted.ts | 5 +- .../__generated__/LoyaltyCard/write/cancel.ts | 28 +- .../LoyaltyCard/write/initialize.ts | 46 +-- .../__generated__/LoyaltyCard/write/mintTo.ts | 32 +- .../LoyaltyCard/write/mintWithSignature.ts | 54 +-- .../__generated__/LoyaltyCard/write/revoke.ts | 28 +- .../Multiwrap/events/TokensUnwrapped.ts | 4 +- .../Multiwrap/events/TokensWrapped.ts | 4 +- .../Multiwrap/read/contractType.ts | 5 +- .../Multiwrap/read/contractVersion.ts | 5 +- .../Multiwrap/read/getWrappedContents.ts | 18 +- .../Multiwrap/read/nextTokenIdToMint.ts | 5 +- .../Multiwrap/read/supportsInterface.ts | 6 +- .../__generated__/Multiwrap/read/tokenURI.ts | 6 +- .../Multiwrap/write/initialize.ts | 40 +-- .../__generated__/Multiwrap/write/unwrap.ts | 30 +- .../__generated__/Multiwrap/write/wrap.ts | 44 +-- .../IRouterState/read/getAllExtensions.ts | 27 +- .../IERC7579Account/read/accountId.ts | 7 +- .../IERC7579Account/read/isModuleInstalled.ts | 10 +- .../IERC7579Account/read/isValidSignature.ts | 8 +- .../read/supportsExecutionMode.ts | 6 +- .../IERC7579Account/read/supportsModule.ts | 6 +- .../IERC7579Account/write/execute.ts | 30 +- .../write/executeFromExecutor.ts | 32 +- .../IERC7579Account/write/installModule.ts | 32 +- .../IERC7579Account/write/uninstallModule.ts | 32 +- .../events/OwnershipTransferred.ts | 4 +- .../ModularAccountFactory/events/Upgraded.ts | 4 +- .../read/accountImplementation.ts | 5 +- .../ModularAccountFactory/read/entrypoint.ts | 5 +- .../ModularAccountFactory/read/getAddress.ts | 10 +- .../read/implementation.ts | 7 +- .../ModularAccountFactory/read/owner.ts | 7 +- .../ModularAccountFactory/write/addStake.ts | 28 +- .../write/createAccountWithModules.ts | 40 +-- .../write/renounceOwnership.ts | 2 +- .../write/transferOwnership.ts | 28 +- .../write/unlockStake.ts | 2 +- .../ModularAccountFactory/write/upgradeTo.ts | 28 +- .../ModularAccountFactory/write/withdraw.ts | 32 +- .../write/withdrawStake.ts | 28 +- .../MinimalAccount/events/Executed.ts | 4 +- .../MinimalAccount/events/SessionCreated.ts | 4 +- .../MinimalAccount/read/eip712Domain.ts | 19 +- .../read/getCallPoliciesForSigner.ts | 44 +-- .../read/getSessionExpirationForSigner.ts | 6 +- .../read/getSessionStateForSigner.ts | 44 +-- .../read/getTransferPoliciesForSigner.ts | 22 +- .../MinimalAccount/read/isWildcardSigner.ts | 6 +- .../write/createSessionWithSig.ts | 98 +++--- .../MinimalAccount/write/execute.ts | 36 +- .../MinimalAccount/write/executeWithSig.ts | 44 +-- .../__generated__/IBundler/read/idGateway.ts | 5 +- .../__generated__/IBundler/read/keyGateway.ts | 5 +- .../__generated__/IBundler/read/price.ts | 6 +- .../__generated__/IBundler/write/register.ts | 58 +-- .../IIdGateway/read/REGISTER_TYPEHASH.ts | 5 +- .../IIdGateway/read/idRegistry.ts | 5 +- .../__generated__/IIdGateway/read/price.ts | 6 +- .../IIdGateway/read/storageRegistry.ts | 5 +- .../IIdGateway/write/register.ts | 34 +- .../IIdGateway/write/registerFor.ts | 40 +-- .../IIdRegistry/events/AdminReset.ts | 4 +- .../events/ChangeRecoveryAddress.ts | 4 +- .../IIdRegistry/events/Recover.ts | 4 +- .../IIdRegistry/events/Register.ts | 4 +- .../IIdRegistry/events/Transfer.ts | 4 +- .../read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts | 5 +- .../TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts | 5 +- .../IIdRegistry/read/TRANSFER_TYPEHASH.ts | 5 +- .../IIdRegistry/read/custodyOf.ts | 8 +- .../IIdRegistry/read/gatewayFrozen.ts | 5 +- .../IIdRegistry/read/idCounter.ts | 5 +- .../IIdRegistry/read/idGateway.ts | 5 +- .../__generated__/IIdRegistry/read/idOf.ts | 8 +- .../IIdRegistry/read/recoveryOf.ts | 8 +- .../IIdRegistry/read/verifyFidSignature.ts | 14 +- .../write/changeRecoveryAddress.ts | 28 +- .../write/changeRecoveryAddressFor.ts | 34 +- .../IIdRegistry/write/recover.ts | 34 +- .../IIdRegistry/write/recoverFor.ts | 38 +- .../IIdRegistry/write/transfer.ts | 32 +- .../write/transferAndChangeRecovery.ts | 34 +- .../write/transferAndChangeRecoveryFor.ts | 40 +-- .../IIdRegistry/write/transferFor.ts | 38 +- .../IKeyGateway/read/ADD_TYPEHASH.ts | 5 +- .../IKeyGateway/read/keyRegistry.ts | 5 +- .../__generated__/IKeyGateway/read/nonces.ts | 6 +- .../__generated__/IKeyGateway/write/add.ts | 34 +- .../__generated__/IKeyGateway/write/addFor.ts | 40 +-- .../__generated__/IKeyRegistry/events/Add.ts | 4 +- .../IKeyRegistry/events/AdminReset.ts | 4 +- .../IKeyRegistry/events/Remove.ts | 4 +- .../IKeyRegistry/read/REMOVE_TYPEHASH.ts | 5 +- .../IKeyRegistry/read/gatewayFrozen.ts | 5 +- .../IKeyRegistry/read/idRegistry.ts | 5 +- .../__generated__/IKeyRegistry/read/keyAt.ts | 10 +- .../IKeyRegistry/read/keyDataOf.ts | 8 +- .../IKeyRegistry/read/keyGateway.ts | 5 +- .../__generated__/IKeyRegistry/read/keysOf.ts | 8 +- .../IKeyRegistry/read/maxKeysPerFid.ts | 5 +- .../IKeyRegistry/read/totalKeys.ts | 8 +- .../IKeyRegistry/write/remove.ts | 28 +- .../IKeyRegistry/write/removeFor.ts | 34 +- .../read/deprecationTimestamp.ts | 5 +- .../IStorageRegistry/read/maxUnits.ts | 5 +- .../IStorageRegistry/read/price.ts | 6 +- .../IStorageRegistry/read/rentedUnits.ts | 5 +- .../IStorageRegistry/read/unitPrice.ts | 5 +- .../IStorageRegistry/read/usdUnitPrice.ts | 5 +- .../IStorageRegistry/write/batchRent.ts | 30 +- .../IStorageRegistry/write/rent.ts | 32 +- .../FollowNFT/read/getFollowData.ts | 16 +- .../FollowNFT/read/getFollowTimestamp.ts | 6 +- .../FollowNFT/read/getFollowTokenId.ts | 6 +- .../FollowNFT/read/getFollowerCount.ts | 5 +- .../FollowNFT/read/getFollowerProfileId.ts | 6 +- .../read/getOriginalFollowTimestamp.ts | 6 +- .../read/getProfileIdAllowedToRecover.ts | 6 +- .../FollowNFT/read/isFollowing.ts | 6 +- .../FollowNFT/read/mintTimestampOf.ts | 6 +- .../LensHandle/read/getHandle.ts | 6 +- .../read/getHandleTokenURIContract.ts | 5 +- .../LensHandle/read/getLocalName.ts | 6 +- .../LensHandle/read/getTokenId.ts | 6 +- .../lens/__generated__/LensHub/read/exists.ts | 6 +- .../LensHub/read/getContentURI.ts | 8 +- .../__generated__/LensHub/read/getProfile.ts | 22 +- .../LensHub/read/getProfileIdByHandleHash.ts | 6 +- .../LensHub/read/getPublication.ts | 28 +- .../LensHub/read/mintTimestampOf.ts | 6 +- .../lens/__generated__/LensHub/read/nonces.ts | 6 +- .../__generated__/LensHub/read/tokenDataOf.ts | 12 +- .../ModuleRegistry/read/getModuleTypes.ts | 6 +- .../read/isErc20CurrencyRegistered.ts | 6 +- .../ModuleRegistry/read/isModuleRegistered.ts | 6 +- .../read/isModuleRegisteredAs.ts | 8 +- .../read/getDefaultHandle.ts | 6 +- .../TokenHandleRegistry/read/nonces.ts | 8 +- .../TokenHandleRegistry/read/resolve.ts | 6 +- .../events/BuyerApprovedForListing.ts | 4 +- .../events/CancelledListing.ts | 4 +- .../events/CurrencyApprovedForListing.ts | 4 +- .../IDirectListings/events/NewListing.ts | 4 +- .../IDirectListings/events/NewSale.ts | 4 +- .../IDirectListings/events/UpdatedListing.ts | 4 +- .../read/currencyPriceForListing.ts | 8 +- .../IDirectListings/read/getAllListings.ts | 36 +- .../read/getAllValidListings.ts | 36 +- .../IDirectListings/read/getListing.ts | 34 +- .../read/isBuyerApprovedForListing.ts | 8 +- .../read/isCurrencyApprovedForListing.ts | 8 +- .../IDirectListings/read/totalListings.ts | 5 +- .../write/approveBuyerForListing.ts | 32 +- .../write/approveCurrencyForListing.ts | 32 +- .../IDirectListings/write/buyFromListing.ts | 36 +- .../IDirectListings/write/cancelListing.ts | 28 +- .../IDirectListings/write/createListing.ts | 48 +-- .../IDirectListings/write/updateListing.ts | 48 +-- .../IEnglishAuctions/events/AuctionClosed.ts | 4 +- .../events/CancelledAuction.ts | 4 +- .../IEnglishAuctions/events/NewAuction.ts | 4 +- .../IEnglishAuctions/events/NewBid.ts | 4 +- .../IEnglishAuctions/read/getAllAuctions.ts | 40 +-- .../read/getAllValidAuctions.ts | 40 +-- .../IEnglishAuctions/read/getAuction.ts | 38 +- .../IEnglishAuctions/read/getWinningBid.ts | 12 +- .../IEnglishAuctions/read/isAuctionExpired.ts | 6 +- .../IEnglishAuctions/read/isNewWinningBid.ts | 8 +- .../IEnglishAuctions/read/totalAuctions.ts | 5 +- .../IEnglishAuctions/write/bidInAuction.ts | 30 +- .../IEnglishAuctions/write/cancelAuction.ts | 28 +- .../write/collectAuctionPayout.ts | 28 +- .../write/collectAuctionTokens.ts | 28 +- .../IEnglishAuctions/write/createAuction.ts | 52 +-- .../IMarketplace/events/AuctionClosed.ts | 4 +- .../IMarketplace/events/ListingAdded.ts | 4 +- .../IMarketplace/events/ListingRemoved.ts | 4 +- .../IMarketplace/events/ListingUpdated.ts | 4 +- .../IMarketplace/events/NewOffer.ts | 4 +- .../IMarketplace/events/NewSale.ts | 4 +- .../events/PlatformFeeInfoUpdated.ts | 4 +- .../IMarketplace/read/contractType.ts | 5 +- .../IMarketplace/read/contractURI.ts | 5 +- .../IMarketplace/read/contractVersion.ts | 5 +- .../IMarketplace/read/getPlatformFeeInfo.ts | 5 +- .../IMarketplace/write/acceptOffer.ts | 34 +- .../__generated__/IMarketplace/write/buy.ts | 36 +- .../IMarketplace/write/cancelDirectListing.ts | 28 +- .../IMarketplace/write/closeAuction.ts | 30 +- .../IMarketplace/write/createListing.ts | 48 +-- .../__generated__/IMarketplace/write/offer.ts | 36 +- .../IMarketplace/write/setContractURI.ts | 28 +- .../IMarketplace/write/setPlatformFeeInfo.ts | 30 +- .../IMarketplace/write/updateListing.ts | 40 +-- .../IOffers/events/AcceptedOffer.ts | 4 +- .../IOffers/events/CancelledOffer.ts | 4 +- .../__generated__/IOffers/events/NewOffer.ts | 4 +- .../IOffers/read/getAllOffers.ts | 32 +- .../IOffers/read/getAllValidOffers.ts | 32 +- .../__generated__/IOffers/read/getOffer.ts | 30 +- .../__generated__/IOffers/read/totalOffers.ts | 5 +- .../IOffers/write/acceptOffer.ts | 28 +- .../IOffers/write/cancelOffer.ts | 28 +- .../__generated__/IOffers/write/makeOffer.ts | 44 +-- .../BatchMetadataERC1155/module/install.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/getAllMetadataBatches.ts | 13 +- .../read/getBatchIndex.ts | 6 +- .../read/getMetadataBatch.ts | 14 +- .../read/getModuleConfig.ts | 29 +- .../BatchMetadataERC1155/write/setBaseURI.ts | 30 +- .../write/uploadMetadata.ts | 30 +- .../BatchMetadataERC721/module/install.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/getAllMetadataBatches.ts | 13 +- .../BatchMetadataERC721/read/getBatchIndex.ts | 6 +- .../read/getMetadataBatch.ts | 14 +- .../read/getModuleConfig.ts | 29 +- .../BatchMetadataERC721/write/setBaseURI.ts | 30 +- .../write/uploadMetadata.ts | 30 +- .../encode/encodeBytesBeforeMintERC1155.ts | 10 +- ...codeBytesBeforeMintWithSignatureERC1155.ts | 16 +- .../encode/encodeBytesOnInstall.ts | 2 +- .../ClaimableERC1155/module/install.ts | 8 +- .../read/getClaimConditionByTokenId.ts | 26 +- .../ClaimableERC1155/read/getSaleConfig.ts | 7 +- .../write/setClaimConditionByTokenId.ts | 48 +-- .../ClaimableERC1155/write/setSaleConfig.ts | 28 +- .../encode/encodeBytesBeforeMintERC20.ts | 10 +- ...encodeBytesBeforeMintWithSignatureERC20.ts | 16 +- .../encode/encodeBytesOnInstall.ts | 2 +- .../ClaimableERC20/module/install.ts | 8 +- .../ClaimableERC20/read/getClaimCondition.ts | 25 +- .../ClaimableERC20/read/getSaleConfig.ts | 7 +- .../ClaimableERC20/write/setClaimCondition.ts | 46 +-- .../ClaimableERC20/write/setSaleConfig.ts | 28 +- .../encode/encodeBytesBeforeMintERC721.ts | 10 +- ...ncodeBytesBeforeMintWithSignatureERC721.ts | 16 +- .../encode/encodeBytesOnInstall.ts | 2 +- .../ClaimableERC721/module/install.ts | 8 +- .../ClaimableERC721/read/getClaimCondition.ts | 25 +- .../ClaimableERC721/read/getSaleConfig.ts | 7 +- .../write/setClaimCondition.ts | 46 +-- .../ClaimableERC721/write/setSaleConfig.ts | 28 +- .../__generated__/ERC1155Core/write/burn.ts | 34 +- .../ERC1155Core/write/initialize.ts | 38 +- .../__generated__/ERC1155Core/write/mint.ts | 36 +- .../ERC1155Core/write/mintWithSignature.ts | 38 +- .../__generated__/ERC20Core/write/burn.ts | 32 +- .../ERC20Core/write/initialize.ts | 38 +- .../__generated__/ERC20Core/write/mint.ts | 32 +- .../ERC20Core/write/mintWithSignature.ts | 34 +- .../ERC721Core/read/totalMinted.ts | 5 +- .../__generated__/ERC721Core/write/burn.ts | 30 +- .../ERC721Core/write/initialize.ts | 38 +- .../__generated__/ERC721Core/write/mint.ts | 34 +- .../ERC721Core/write/mintWithSignature.ts | 36 +- .../IModularCore/read/getInstalledModules.ts | 33 +- .../read/getSupportedCallbackFunctions.ts | 11 +- .../IModularCore/read/supportsInterface.ts | 6 +- .../IModularCore/write/installModule.ts | 30 +- .../IModularCore/write/uninstallModule.ts | 30 +- .../IModule/read/getModuleConfig.ts | 27 +- ...codeBytesBeforeMintWithSignatureERC1155.ts | 14 +- .../encode/encodeBytesOnInstall.ts | 2 +- .../MintableERC1155/module/install.ts | 8 +- .../MintableERC1155/read/getSaleConfig.ts | 7 +- .../MintableERC1155/write/setSaleConfig.ts | 28 +- .../MintableERC1155/write/setTokenURI.ts | 30 +- ...encodeBytesBeforeMintWithSignatureERC20.ts | 14 +- .../encode/encodeBytesOnInstall.ts | 2 +- .../MintableERC20/module/install.ts | 8 +- .../MintableERC20/read/getSaleConfig.ts | 7 +- .../MintableERC20/write/setSaleConfig.ts | 28 +- ...ncodeBytesBeforeMintWithSignatureERC721.ts | 14 +- .../encode/encodeBytesOnInstall.ts | 2 +- .../MintableERC721/events/NewMetadataBatch.ts | 4 +- .../MintableERC721/module/install.ts | 8 +- .../MintableERC721/read/getSaleConfig.ts | 7 +- .../MintableERC721/write/setSaleConfig.ts | 28 +- .../module/install.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/onTokenURI.ts | 6 +- .../write/setSharedMetadata.ts | 38 +- .../events/OwnershipHandoverCanceled.ts | 4 +- .../events/OwnershipHandoverRequested.ts | 4 +- .../events/OwnershipTransferred.ts | 4 +- .../OwnableRoles/events/RolesUpdated.ts | 4 +- .../OwnableRoles/read/hasAllRoles.ts | 8 +- .../OwnableRoles/read/hasAnyRole.ts | 8 +- .../__generated__/OwnableRoles/read/owner.ts | 7 +- .../read/ownershipHandoverExpiresAt.ts | 8 +- .../OwnableRoles/read/rolesOf.ts | 8 +- .../write/cancelOwnershipHandover.ts | 2 +- .../write/completeOwnershipHandover.ts | 28 +- .../OwnableRoles/write/grantRoles.ts | 30 +- .../OwnableRoles/write/renounceOwnership.ts | 2 +- .../OwnableRoles/write/renounceRoles.ts | 28 +- .../write/requestOwnershipHandover.ts | 2 +- .../OwnableRoles/write/revokeRoles.ts | 30 +- .../OwnableRoles/write/transferOwnership.ts | 28 +- .../encode/encodeBytesOnInstall.ts | 6 +- .../events/DefaultRoyaltyUpdated.ts | 4 +- .../events/TokenRoyaltyUpdated.ts | 4 +- .../RoyaltyERC1155/module/install.ts | 8 +- .../read/getDefaultRoyaltyInfo.ts | 5 +- .../read/getRoyaltyInfoForToken.ts | 6 +- .../read/getTransferValidationFunction.ts | 9 +- .../read/getTransferValidator.ts | 7 +- .../RoyaltyERC1155/read/royaltyInfo.ts | 12 +- .../write/setDefaultRoyaltyInfo.ts | 30 +- .../write/setRoyaltyInfoForToken.ts | 32 +- .../write/setTransferValidator.ts | 28 +- .../encode/encodeBytesOnInstall.ts | 6 +- .../events/DefaultRoyaltyUpdated.ts | 4 +- .../events/TokenRoyaltyUpdated.ts | 4 +- .../RoyaltyERC721/module/install.ts | 8 +- .../read/getDefaultRoyaltyInfo.ts | 5 +- .../read/getRoyaltyInfoForToken.ts | 6 +- .../read/getTransferValidationFunction.ts | 9 +- .../read/getTransferValidator.ts | 7 +- .../RoyaltyERC721/read/royaltyInfo.ts | 12 +- .../write/setDefaultRoyaltyInfo.ts | 30 +- .../write/setRoyaltyInfoForToken.ts | 32 +- .../write/setTransferValidator.ts | 28 +- .../encode/encodeBytesOnInstall.ts | 2 +- .../module/install.ts | 8 +- .../read/getModuleConfig.ts | 29 +- .../read/getNextTokenId.ts | 5 +- .../write/updateTokenIdERC1155.ts | 28 +- .../TransferableERC1155/module/install.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/isTransferEnabled.ts | 5 +- .../read/isTransferEnabledFor.ts | 6 +- .../write/setTransferable.ts | 28 +- .../write/setTransferableFor.ts | 30 +- .../TransferableERC20/module/install.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/isTransferEnabled.ts | 5 +- .../read/isTransferEnabledFor.ts | 6 +- .../write/setTransferable.ts | 28 +- .../write/setTransferableFor.ts | 30 +- .../TransferableERC721/module/install.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/isTransferEnabled.ts | 5 +- .../read/isTransferEnabledFor.ts | 6 +- .../write/setTransferable.ts | 28 +- .../write/setTransferableFor.ts | 30 +- .../IMulticall3/read/getBasefee.ts | 7 +- .../IMulticall3/read/getBlockHash.ts | 8 +- .../IMulticall3/read/getBlockNumber.ts | 7 +- .../IMulticall3/read/getChainId.ts | 7 +- .../read/getCurrentBlockCoinbase.ts | 7 +- .../read/getCurrentBlockDifficulty.ts | 7 +- .../read/getCurrentBlockGasLimit.ts | 7 +- .../read/getCurrentBlockTimestamp.ts | 7 +- .../IMulticall3/read/getEthBalance.ts | 8 +- .../IMulticall3/read/getLastBlockHash.ts | 7 +- .../IMulticall3/write/aggregate.ts | 38 +- .../IMulticall3/write/aggregate3.ts | 44 +-- .../IMulticall3/write/aggregate3Value.ts | 46 +-- .../IMulticall3/write/blockAndAggregate.ts | 46 +-- .../IMulticall3/write/tryAggregate.ts | 44 +-- .../IMulticall3/write/tryBlockAndAggregate.ts | 48 +-- .../__generated__/IPack/events/PackCreated.ts | 4 +- .../__generated__/IPack/events/PackOpened.ts | 4 +- .../__generated__/IPack/events/PackUpdated.ts | 4 +- .../__generated__/IPack/read/canUpdatePack.ts | 6 +- .../IPack/read/getPackContents.ts | 20 +- .../IPack/read/getTokenCountOfBundle.ts | 6 +- .../IPack/read/getTokenOfBundle.ts | 18 +- .../IPack/read/getUriOfBundle.ts | 6 +- .../IPack/write/addPackContents.ts | 48 +-- .../__generated__/IPack/write/createPack.ts | 52 +-- .../__generated__/IPack/write/openPack.ts | 40 +-- .../events/PackOpenRequested.ts | 4 +- .../events/PackRandomnessFulfilled.ts | 4 +- .../IPackVRFDirect/read/canClaimRewards.ts | 6 +- .../IPackVRFDirect/write/claimRewards.ts | 14 +- .../write/openPackAndClaimRewards.ts | 32 +- .../IPermissions/events/RoleAdminChanged.ts | 4 +- .../IPermissions/events/RoleGranted.ts | 4 +- .../IPermissions/events/RoleRevoked.ts | 4 +- .../IPermissions/read/getRoleAdmin.ts | 6 +- .../IPermissions/read/hasRole.ts | 8 +- .../IPermissions/write/grantRole.ts | 30 +- .../IPermissions/write/renounceRole.ts | 30 +- .../IPermissions/write/revokeRole.ts | 30 +- .../events/RoleAdminChanged.ts | 4 +- .../events/RoleGranted.ts | 4 +- .../events/RoleRevoked.ts | 4 +- .../read/getRoleAdmin.ts | 6 +- .../read/getRoleMember.ts | 8 +- .../read/getRoleMemberCount.ts | 6 +- .../IPermissionsEnumerable/read/hasRole.ts | 8 +- .../IPermissionsEnumerable/write/grantRole.ts | 30 +- .../write/renounceRole.ts | 30 +- .../write/revokeRole.ts | 30 +- .../DropERC1155/write/initialize.ts | 46 +-- .../DropERC20/write/initialize.ts | 42 +-- .../DropERC721/write/initialize.ts | 46 +-- .../Marketplace/write/initialize.ts | 36 +- .../OpenEditionERC721/write/initialize.ts | 42 +-- .../__generated__/Pack/write/initialize.ts | 40 +-- .../__generated__/Split/write/initialize.ts | 36 +- .../TokenERC1155/write/initialize.ts | 46 +-- .../TokenERC20/write/initialize.ts | 42 +-- .../TokenERC721/write/initialize.ts | 46 +-- .../VoteERC20/write/initialize.ts | 42 +-- .../split/__generated__/Split/read/payee.ts | 6 +- .../__generated__/Split/read/payeeCount.ts | 5 +- .../__generated__/Split/read/releasable.ts | 6 +- .../__generated__/Split/read/released.ts | 6 +- .../split/__generated__/Split/read/shares.ts | 6 +- .../__generated__/Split/read/totalReleased.ts | 5 +- .../__generated__/Split/read/totalShares.ts | 5 +- .../__generated__/Split/write/distribute.ts | 2 +- .../__generated__/Split/write/release.ts | 28 +- .../IArbWasm/read/codehashVersion.ts | 8 +- .../IArbWasm/write/activateProgram.ts | 28 +- .../write/stylus_constructor.ts | 2 +- .../IStylusDeployer/write/deploy.ts | 34 +- .../__generated__/IAppURI/read/appURI.ts | 5 +- .../__generated__/IAppURI/write/setAppURI.ts | 28 +- .../IContractFactory/events/ProxyDeployed.ts | 4 +- .../events/ProxyDeployedV2.ts | 4 +- .../write/deployProxyByImplementation.ts | 32 +- .../write/deployProxyByImplementationV2.ts | 34 +- .../events/ContractPublished.ts | 4 +- .../events/ContractUnpublished.ts | 4 +- .../events/PublisherProfileUpdated.ts | 4 +- .../read/getAllPublishedContracts.ts | 20 +- .../read/getPublishedContract.ts | 22 +- .../read/getPublishedContractVersions.ts | 22 +- .../read/getPublishedUriFromCompilerUri.ts | 8 +- .../read/getPublisherProfileUri.ts | 8 +- .../write/publishContract.ts | 38 +- .../write/setPublisherProfileUri.ts | 30 +- .../write/unpublishContract.ts | 30 +- .../IRulesEngine/events/RuleCreated.ts | 4 +- .../IRulesEngine/events/RuleDeleted.ts | 4 +- .../events/RulesEngineOverriden.ts | 4 +- .../IRulesEngine/read/getAllRules.ts | 23 +- .../read/getRulesEngineOverride.ts | 7 +- .../IRulesEngine/read/getScore.ts | 8 +- .../write/createRuleMultiplicative.ts | 40 +-- .../IRulesEngine/write/createRuleThreshold.ts | 42 +-- .../IRulesEngine/write/deleteRule.ts | 28 +- .../write/setRulesEngineOverride.ts | 28 +- .../events/RequestExecuted.ts | 4 +- .../ISignatureAction/read/verify.ts | 22 +- .../__generated__/ITWFee/read/getFeeInfo.ts | 12 +- .../ITWMultichainRegistry/events/Added.ts | 4 +- .../ITWMultichainRegistry/events/Deleted.ts | 4 +- .../ITWMultichainRegistry/read/count.ts | 8 +- .../ITWMultichainRegistry/read/getAll.ts | 16 +- .../read/getMetadataUri.ts | 10 +- .../ITWMultichainRegistry/write/add.ts | 34 +- .../ITWMultichainRegistry/write/remove.ts | 32 +- .../IThirdwebContract/read/contractType.ts | 5 +- .../IThirdwebContract/read/contractURI.ts | 5 +- .../IThirdwebContract/read/contractVersion.ts | 5 +- .../IThirdwebContract/write/setContractURI.ts | 28 +- .../IQuoter/write/quoteExactInput.ts | 32 +- .../IQuoter/write/quoteExactInputSingle.ts | 38 +- .../IQuoter/write/quoteExactOutput.ts | 32 +- .../IQuoter/write/quoteExactOutputSingle.ts | 38 +- .../ISwapRouter/write/exactInput.ts | 42 +-- .../ISwapRouter/write/exactInputSingle.ts | 48 +-- .../ISwapRouter/write/exactOutput.ts | 42 +-- .../ISwapRouter/write/exactOutputSingle.ts | 48 +-- .../IUniswapV3Factory/events/OwnerChanged.ts | 4 +- .../IUniswapV3Factory/events/PoolCreated.ts | 4 +- .../read/feeAmountTickSpacing.ts | 6 +- .../IUniswapV3Factory/read/getPool.ts | 12 +- .../IUniswapV3Factory/read/owner.ts | 5 +- .../IUniswapV3Factory/write/createPool.ts | 34 +- .../write/enableFeeAmount.ts | 30 +- .../IUniswapV3Factory/write/setOwner.ts | 28 +- .../UnstoppableDomains/read/exists.ts | 6 +- .../UnstoppableDomains/read/getMany.ts | 10 +- .../UnstoppableDomains/read/namehash.ts | 8 +- .../UnstoppableDomains/read/reverseNameOf.ts | 8 +- .../Vote/read/BALLOT_TYPEHASH.ts | 5 +- .../__generated__/Vote/read/COUNTING_MODE.ts | 5 +- .../Vote/read/getAllProposals.ts | 27 +- .../vote/__generated__/Vote/read/getVotes.ts | 8 +- .../Vote/read/getVotesWithParams.ts | 10 +- .../vote/__generated__/Vote/read/hasVoted.ts | 8 +- .../__generated__/Vote/read/hashProposal.ts | 12 +- .../Vote/read/proposalDeadline.ts | 6 +- .../__generated__/Vote/read/proposalIndex.ts | 5 +- .../Vote/read/proposalSnapshot.ts | 6 +- .../Vote/read/proposalThreshold.ts | 5 +- .../__generated__/Vote/read/proposalVotes.ts | 12 +- .../vote/__generated__/Vote/read/proposals.ts | 16 +- .../vote/__generated__/Vote/read/quorum.ts | 6 +- .../Vote/read/quorumDenominator.ts | 5 +- .../vote/__generated__/Vote/read/state.ts | 6 +- .../vote/__generated__/Vote/read/token.ts | 5 +- .../__generated__/Vote/read/votingDelay.ts | 5 +- .../__generated__/Vote/read/votingPeriod.ts | 5 +- .../vote/__generated__/Vote/write/castVote.ts | 30 +- .../__generated__/Vote/write/castVoteBySig.ts | 36 +- .../Vote/write/castVoteWithReason.ts | 32 +- .../Vote/write/castVoteWithReasonAndParams.ts | 34 +- .../write/castVoteWithReasonAndParamsBySig.ts | 40 +-- .../vote/__generated__/Vote/write/execute.ts | 34 +- .../vote/__generated__/Vote/write/propose.ts | 36 +- .../vote/__generated__/Vote/write/relay.ts | 32 +- .../Vote/write/setProposalThreshold.ts | 28 +- .../Vote/write/setVotingDelay.ts | 28 +- .../Vote/write/setVotingPeriod.ts | 28 +- .../Vote/write/updateQuorumNumerator.ts | 28 +- .../events/ContractDeployed.ts | 4 +- 1026 files changed, 19736 insertions(+), 8417 deletions(-) delete mode 100644 packages/thirdweb/scripts/generate/abis/assets/AssetEntrypointERC20.json create mode 100644 packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json create mode 100644 packages/thirdweb/scripts/generate/abis/assets/RewardLocker.json delete mode 100644 packages/thirdweb/src/assets/bootstrap.ts delete mode 100644 packages/thirdweb/src/assets/bootstrapinfra.test.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/ContractURIUpdated.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Initialized.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AirdropUpdated.ts rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/events/AssetCreated.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/events/AssetDistributed.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/events/ImplementationAdded.ts (97%) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Initialized.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RewardLockerUpdated.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RouterUpdated.ts rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20/events/RouterUpdated.ts => ERC20AssetEntrypoint/events/Upgraded.ts} (52%) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/read/getImplementation.ts (99%) rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/read/getRewardLocker.ts (99%) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardPosition.ts rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/read/getRouter.ts (99%) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/addImplementation.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/buyAsset.ts (98%) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimRewards.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/createAsset.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/createAssetById.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/createAssetByImplementationConfig.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/distributeAsset.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/initialize.ts (91%) rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/listAsset.ts (83%) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/sellAsset.ts (98%) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/setRewardLocker.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20 => ERC20AssetEntrypoint}/write/setRouter.ts (100%) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeRecipientUpdated.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts rename packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/{initialize.ts => setFeeRecipient.ts} (59%) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardsCollected.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectRewards.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterDisabled.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterEnabled.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/Initialized.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts rename packages/thirdweb/src/extensions/assets/__generated__/{AssetEntrypointERC20/events/RewardLockerUpdated.ts => Router/events/Upgraded.ts} (50%) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts diff --git a/packages/thirdweb/scripts/generate/abis/assets/AssetEntrypointERC20.json b/packages/thirdweb/scripts/generate/abis/assets/AssetEntrypointERC20.json deleted file mode 100644 index fb70492cbb3..00000000000 --- a/packages/thirdweb/scripts/generate/abis/assets/AssetEntrypointERC20.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - "function initialize(address _owner, address _router, address _rewardLocker)", - "function setRouter(address router)", - "function getRouter() external view returns (address router)", - "function setRewardLocker(address rewardLocker)", - "function getRewardLocker() external view returns (address rewardLocker)", - "function addImplementation((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, bool isDefault)", - "function getImplementation(bytes32 contractId) external view returns ((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData))", - "function createAsset(address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) createParams) external returns (address asset)", - "function createAssetById(bytes32 contractId, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) public returns (address asset)", - "function createAssetByImplementationConfig((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) external returns (address asset)", - "function buyAsset(address asset, (address recipient, address referrer, address tokenIn, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes data) params) external payable returns (uint256 amountIn, uint256 amountOut)", - "function sellAsset(address asset, (address recipient, address tokenOut, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes data) params) external returns (uint256 amountIn, uint256 amountOut)", - "function listAsset(address asset, (address tokenIn, uint256 price, uint256 duration, bytes data) params) external", - "function distributeAsset(address asset, (uint256 amount, address recipient)[] contents) external payable", - "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes32 createHookData)", - "event RouterUpdated(address indexed router)", - "event RewardLockerUpdated(address indexed locker)", - "event AssetCreated(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", - "event AssetDistributed(address asset, uint256 recipientCount, uint256 totalAmount)", - "error InvalidValue()", - "error InvalidContractId()", - "error ValueTransferFailed()", - "error ArrayLengthMismatch()", - "error AssetNotRegistered()", - "error InvalidCreator()", - "error InvalidInitializer()", - "error InvalidImplementation()", - "error InvalidDeploymentArgs()", - "error InvalidCreateHook()", - "error CreateHookFailed()", - "error CreateHookReverted(string reason)", - "error ImplementationAlreadyExists()" -] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json b/packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json index 766a994a655..61dfe2aaaf5 100644 --- a/packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json +++ b/packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json @@ -1,5 +1,5 @@ [ - "function deployInfraProxyDeterministic(address implementation, bytes data, bytes32 salt, bytes extraData) public returns (address deployedProxy)", + "function deployInfraProxyDeterministic(address implementation, bytes data, bytes32 salt, bytes extraData) returns (address deployedProxy)", "event AssetInfraDeployed(address indexed implementation, address indexed proxy, bytes32 inputSalt, bytes data, bytes extraData)", "error ProxyDeploymentFailed()" ] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/assets/ERC20Asset.json b/packages/thirdweb/scripts/generate/abis/assets/ERC20Asset.json index ca2259afcf3..9d9bcc9bf3a 100644 --- a/packages/thirdweb/scripts/generate/abis/assets/ERC20Asset.json +++ b/packages/thirdweb/scripts/generate/abis/assets/ERC20Asset.json @@ -1,3 +1,49 @@ [ - "function initialize(string _name, string _symbol, string _contractURI, uint256 _maxSupply, address _owner) external" + "constructor()", + "function DOMAIN_SEPARATOR() view returns (bytes32 result)", + "function allowance(address owner, address spender) view returns (uint256 result)", + "function approve(address spender, uint256 amount) returns (bool)", + "function balanceOf(address owner) view returns (uint256 result)", + "function burn(uint256 amount)", + "function burnFrom(address from, uint256 amount)", + "function cancelOwnershipHandover() payable", + "function completeOwnershipHandover(address pendingOwner) payable", + "function contractURI() view returns (string)", + "function decimals() view returns (uint8)", + "function initialize(string _name, string _symbol, string _contractURI, uint256 _maxSupply, address _owner)", + "function name() view returns (string)", + "function nonces(address owner) view returns (uint256 result)", + "function owner() view returns (address result)", + "function ownershipHandoverExpiresAt(address pendingOwner) view returns (uint256 result)", + "function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s)", + "function renounceOwnership() payable", + "function requestOwnershipHandover() payable", + "function setContractURI(string _contractURI)", + "function supportsInterface(bytes4 interfaceId) pure returns (bool)", + "function symbol() view returns (string)", + "function totalSupply() view returns (uint256 result)", + "function transfer(address to, uint256 amount) returns (bool)", + "function transferFrom(address from, address to, uint256 amount) returns (bool)", + "function transferOwnership(address newOwner) payable", + "event Approval(address indexed owner, address indexed spender, uint256 amount)", + "event ContractURIUpdated()", + "event Initialized(uint64 version)", + "event OwnershipHandoverCanceled(address indexed pendingOwner)", + "event OwnershipHandoverRequested(address indexed pendingOwner)", + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + "event Transfer(address indexed from, address indexed to, uint256 amount)", + "error AllowanceOverflow()", + "error AllowanceUnderflow()", + "error AlreadyInitialized()", + "error InsufficientAllowance()", + "error InsufficientBalance()", + "error InvalidInitialization()", + "error InvalidPermit()", + "error NewOwnerIsZeroAddress()", + "error NoHandoverRequest()", + "error NotInitializing()", + "error Permit2AllowanceIsFixedAtInfinity()", + "error PermitExpired()", + "error TotalSupplyOverflow()", + "error Unauthorized()" ] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json b/packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json new file mode 100644 index 00000000000..af7e9d1dad5 --- /dev/null +++ b/packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json @@ -0,0 +1,67 @@ +[ + "constructor()", + "function addImplementation((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, bool isDefault)", + "function buyAsset(address asset, (address recipient, address referrer, address tokenIn, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes hookData) params) payable returns (uint256 amountIn, uint256 amountOut)", + "function cancelOwnershipHandover() payable", + "function claimRewards(address asset)", + "function completeOwnershipHandover(address pendingOwner) payable", + "function createAsset(address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) createParams) returns (address asset)", + "function createAssetById(bytes32 contractId, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) returns (address asset)", + "function createAssetByImplementationConfig((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) returns (address asset)", + "function decodeOwnerFromInitData(bytes data) pure returns (address owner)", + "function distributeAsset(address asset, (uint256 amount, address recipient)[] contents) payable", + "function getAirdrop() view returns (address airdrop)", + "function getImplementation(bytes32 contractId) view returns ((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config)", + "function getRewardLocker() view returns (address rewardLocker)", + "function getRewardPosition(address asset) view returns ((address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps))", + "function getRouter() view returns (address router)", + "function guardSalt(bytes32 salt, address creator, bytes contractInitData, bytes hookInitData) view returns (bytes32)", + "function initialize(address owner, address router, address rewardLocker, address airdrop)", + "function listAsset(address asset, (address tokenOut, uint256 pricePerUnit, uint8 priceDenominator, uint256 totalSupply, uint48 startTime, uint48 endTime, address hook, bytes createHookData) params) returns (address sale, address position, uint256 positionId)", + "function owner() view returns (address result)", + "function ownershipHandoverExpiresAt(address pendingOwner) view returns (uint256 result)", + "function predictAssetAddress(bytes32 contractId, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) view returns (address predicted)", + "function predictAssetAddressByConfig((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) view returns (address predicted)", + "function proxiableUUID() view returns (bytes32)", + "function renounceOwnership() payable", + "function requestOwnershipHandover() payable", + "function sellAsset(address asset, (address recipient, address tokenOut, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes hookData) params) returns (uint256 amountIn, uint256 amountOut)", + "function setAirdrop(address airdrop)", + "function setRewardLocker(address rewardLocker)", + "function setRouter(address router)", + "function transferOwnership(address newOwner) payable", + "function upgradeToAndCall(address newImplementation, bytes data) payable", + "event AirdropUpdated(address airdrop)", + "event AssetCreated(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", + "event AssetDistributed(address asset, uint256 recipientCount, uint256 totalAmount)", + "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes createHookData)", + "event Initialized(uint64 version)", + "event OwnershipHandoverCanceled(address indexed pendingOwner)", + "event OwnershipHandoverRequested(address indexed pendingOwner)", + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + "event RewardLockerUpdated(address locker)", + "event RouterUpdated(address router)", + "event Upgraded(address indexed implementation)", + "error AlreadyInitialized()", + "error ArrayLengthMismatch()", + "error AssetNotRegistered()", + "error CreateHookFailed()", + "error CreateHookReverted(string reason)", + "error ImplementationAlreadyExists()", + "error InvalidContractId()", + "error InvalidCreateHook()", + "error InvalidCreator()", + "error InvalidDeploymentArgs()", + "error InvalidImplementation()", + "error InvalidInitialization()", + "error InvalidInitializer()", + "error InvalidSaltFlags()", + "error InvalidValue()", + "error NewOwnerIsZeroAddress()", + "error NoHandoverRequest()", + "error NotInitializing()", + "error Unauthorized()", + "error UnauthorizedCallContext()", + "error UpgradeFailed()", + "error ValueTransferFailed()" +] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/assets/FeeManager.json b/packages/thirdweb/scripts/generate/abis/assets/FeeManager.json index f4673cf7699..71e2b7a570b 100644 --- a/packages/thirdweb/scripts/generate/abis/assets/FeeManager.json +++ b/packages/thirdweb/scripts/generate/abis/assets/FeeManager.json @@ -1,3 +1,47 @@ [ - "function initialize(address _owner, address _feeRecipient, uint96 _defaultFee) external" + "constructor(address _owner, address _feeRecipient)", + "function ROLE_FEE_MANAGER() view returns (uint256)", + "function calculateFee(address payer, bytes4 action, uint256 amount, uint256 maxFeeAmount) view returns (address recipient, uint256 feeAmount)", + "function cancelOwnershipHandover() payable", + "function completeOwnershipHandover(address pendingOwner) payable", + "function domainSeparator() view returns (bytes32)", + "function eip712Domain() view returns (bytes1 fields, string name, string version, uint256 chainId, address verifyingContract, bytes32 salt, uint256[] extensions)", + "function feeConfigs(address target, bytes4 action) view returns (address recipient, uint8 feeType, uint256 value)", + "function feeRecipient() view returns (address)", + "function getFeeConfig(address target, bytes4 action) view returns ((address recipient, uint8 feeType, uint256 value) config)", + "function grantRoles(address user, uint256 roles) payable", + "function hasAllRoles(address user, uint256 roles) view returns (bool)", + "function hasAnyRole(address user, uint256 roles) view returns (bool)", + "function owner() view returns (address result)", + "function ownershipHandoverExpiresAt(address pendingOwner) view returns (uint256 result)", + "function renounceOwnership() payable", + "function renounceRoles(uint256 roles) payable", + "function requestOwnershipHandover() payable", + "function revokeRoles(address user, uint256 roles) payable", + "function rolesOf(address user) view returns (uint256 roles)", + "function setFeeConfig(bytes4 action, uint8 feeType, uint256 value)", + "function setFeeConfigBySignature(address target, bytes4 action, address recipient, uint8 feeType, uint256 value, uint256 nonce, uint256 deadline, bytes signature)", + "function setFeeRecipient(address _feeRecipient)", + "function setTargetFeeConfig(address target, bytes4 action, address recipient, uint8 feeType, uint256 value)", + "function transferOwnership(address newOwner) payable", + "function usedNonces(bytes32 signerNonce) view returns (bool used)", + "event FeeConfigUpdated(address indexed target, bytes4 indexed action, address recipient, uint8 feeType, uint256 value)", + "event FeeConfigUpdatedBySignature(address indexed signer, address indexed target, bytes4 indexed action, address recipient, uint8 feeType, uint256 value)", + "event FeeRecipientUpdated(address feeRecipient)", + "event OwnershipHandoverCanceled(address indexed pendingOwner)", + "event OwnershipHandoverRequested(address indexed pendingOwner)", + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + "event RolesUpdated(address indexed user, uint256 indexed roles)", + "error AlreadyInitialized()", + "error InvalidConfig()", + "error InvalidFeeType()", + "error InvalidModule()", + "error InvalidNonce()", + "error InvalidRecipient()", + "error InvalidSignature()", + "error InvalidValue()", + "error NewOwnerIsZeroAddress()", + "error NoHandoverRequest()", + "error SignatureExpired()", + "error Unauthorized()" ] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/assets/RewardLocker.json b/packages/thirdweb/scripts/generate/abis/assets/RewardLocker.json new file mode 100644 index 00000000000..4d66d45475b --- /dev/null +++ b/packages/thirdweb/scripts/generate/abis/assets/RewardLocker.json @@ -0,0 +1,16 @@ +[ + "constructor(address _feeManager, address _v3PositionManager, address _v4PositionManager)", + "function collectRewards(address owner, address asset) returns (address token0, address token1, uint256 amount0, uint256 amount1)", + "function feeManager() view returns (address)", + "function lockPosition(address asset, address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps)", + "function positions(address owner, address asset) view returns (address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps)", + "function v3PositionManager() view returns (address)", + "function v4PositionManager() view returns (address)", + "event PositionLocked(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, address recipient, address referrer)", + "event RewardsCollected(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, uint256 amount0, uint256 amount1)", + "error InvalidPosition()", + "error InvalidPositionManager()", + "error InvalidReferrerBps()", + "error InvalidRewardRecipient()", + "error TokenAlreadyLocked()" +] diff --git a/packages/thirdweb/scripts/generate/abis/assets/Router.json b/packages/thirdweb/scripts/generate/abis/assets/Router.json index 15e07b4d6b5..28c9887edb1 100644 --- a/packages/thirdweb/scripts/generate/abis/assets/Router.json +++ b/packages/thirdweb/scripts/generate/abis/assets/Router.json @@ -1,3 +1,54 @@ [ - "function initialize(address _owner) external" + "constructor()", + "function NATIVE_TOKEN() view returns (address)", + "function cancelOwnershipHandover() payable", + "function completeOwnershipHandover(address pendingOwner) payable", + "function createMarket((address creator, address tokenIn, address tokenOut, uint256 pricePerUnit, uint8 priceDenominator, uint256 totalSupply, uint48 startTime, uint48 endTime, uint256 tokenId, address hook, bytes createHookData) createMarketConfig) payable returns (address sale, address position, uint256 positionId)", + "function createPool((address recipient, address referrer, address tokenA, address tokenB, uint256 amountA, uint256 amountB, bytes data) createPoolConfig) payable returns (address pool, address position, uint256 positionId, uint256 refundAmount0, uint256 refundAmount1)", + "function disableAdapter(uint8 adapterType)", + "function enableAdapter(uint8 adapterType, bytes config)", + "function initialize(address owner)", + "function owner() view returns (address result)", + "function ownershipHandoverExpiresAt(address pendingOwner) view returns (uint256 result)", + "function proxiableUUID() view returns (bytes32)", + "function renounceOwnership() payable", + "function requestOwnershipHandover() payable", + "function swap((address tokenIn, address tokenOut, uint256 amountIn, uint256 minAmountOut, address recipient, address refundRecipient, uint256 deadline, bytes data) config) payable returns ((uint256 amountIn, uint256 amountOut, address source) result)", + "function transferOwnership(address newOwner) payable", + "function upgradeToAndCall(address newImplementation, bytes data) payable", + "event AdapterDisabled(uint8 adapterType)", + "event AdapterEnabled(uint8 adapterType)", + "event Initialized(uint64 version)", + "event OwnershipHandoverCanceled(address indexed pendingOwner)", + "event OwnershipHandoverRequested(address indexed pendingOwner)", + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + "event SwapExecuted(address indexed sender, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut, uint8 adapterUsed)", + "event Upgraded(address indexed implementation)", + "error AdapterNotFound()", + "error AlreadyInitialized()", + "error DeadlineExceeded()", + "error ExcessiveInput()", + "error InsufficientOutput()", + "error InvalidAmount()", + "error InvalidConfiguration()", + "error InvalidFee()", + "error InvalidFee()", + "error InvalidInitialization()", + "error InvalidPoolConfig()", + "error InvalidTick()", + "error InvalidTick()", + "error NewOwnerIsZeroAddress()", + "error NoAvailableRoute()", + "error NoHandoverRequest()", + "error NotInitializing()", + "error PoolAlreadyExists()", + "error PoolAlreadyExists()", + "error PoolNotFound()", + "error PoolNotFound()", + "error Reentrancy()", + "error SwapFailed()", + "error Unauthorized()", + "error UnauthorizedCallContext()", + "error UpgradeFailed()", + "error ZeroAddress()" ] \ No newline at end of file diff --git a/packages/thirdweb/src/assets/bootstrap.ts b/packages/thirdweb/src/assets/bootstrap.ts deleted file mode 100644 index 6d52bdb1ccd..00000000000 --- a/packages/thirdweb/src/assets/bootstrap.ts +++ /dev/null @@ -1,331 +0,0 @@ -import { encodePacked } from "viem"; -import { ZERO_ADDRESS } from "../constants/addresses.js"; -import { getContract } from "../contract/contract.js"; -import { getOrDeployInfraContract } from "../contract/deployment/utils/bootstrap.js"; -import { - deployCreate2Factory, - getDeployedCreate2Factory, -} from "../contract/deployment/utils/create-2-factory.js"; -import { getDeployedInfraContract } from "../contract/deployment/utils/infra.js"; -import { parseEventLogs } from "../event/actions/parse-logs.js"; -import { assetInfraDeployedEvent } from "../extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.js"; -import { deployInfraProxyDeterministic } from "../extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.js"; -import { encodeInitialize as encodeFeeManagerInit } from "../extensions/assets/__generated__/FeeManager/write/initialize.js"; -import { encodeInitialize as encodeRouterInit } from "../extensions/assets/__generated__/Router/write/initialize.js"; -import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; -import { keccakId } from "../utils/any-evm/keccak-id.js"; -import { isContractDeployed } from "../utils/bytecode/is-contract-deployed.js"; -import { keccak256 } from "../utils/hashing/keccak256.js"; -import type { - ClientAndChain, - ClientAndChainAndAccount, -} from "../utils/types.js"; -import { - DEFAULT_FEE_BPS, - DEFAULT_FEE_RECIPIENT, - DEFAULT_INFRA_ADMIN, - DEFAULT_SALT, - IMPLEMENTATIONS, -} from "./constants.js"; -import { deployInfraProxy } from "./deploy-infra-proxy.js"; -import { getInitCodeHashERC1967 } from "./get-initcode-hash-1967.js"; - -export async function deployRouter(options: ClientAndChainAndAccount) { - let [feeManager, marketSaleImpl] = await Promise.all([ - getDeployedFeeManager(options), - getDeployedInfraContract({ - ...options, - contractId: "MarketSale", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }), - ]); - - if (!feeManager) { - feeManager = await deployFeeManager(options); - } - - if (!marketSaleImpl) { - marketSaleImpl = await getOrDeployInfraContract({ - ...options, - contractId: "MarketSale", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }); - } - - const assetFactory = await getDeployedAssetFactory(options); - if (!assetFactory) { - throw new Error(`Asset factory not found for chain: ${options.chain.id}`); - } - - const routerImpl = await getOrDeployInfraContract({ - ...options, - constructorParams: { - _feeManager: feeManager.address, - _marketSaleImplementation: marketSaleImpl.address, - }, - contractId: "Router", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }); - - // encode init data - const initData = encodeRouterInit({ - owner: DEFAULT_INFRA_ADMIN, - }); - - const routerProxyAddress = await deployInfraProxy({ - ...options, - assetFactory, - extraData: "0x", - implementationAddress: routerImpl.address, - initData, - }); - - return getContract({ - address: routerProxyAddress, - chain: options.chain, - client: options.client, - }); -} - -export async function deployRewardLocker(options: ClientAndChainAndAccount) { - let v3PositionManager = ZERO_ADDRESS; - let v4PositionManager = ZERO_ADDRESS; - - const implementations = IMPLEMENTATIONS[options.chain.id]; - - if (implementations) { - v3PositionManager = implementations.V3PositionManager || ZERO_ADDRESS; - v4PositionManager = implementations.V4PositionManager || ZERO_ADDRESS; - } - - let feeManager = await getDeployedFeeManager(options); - - if (!feeManager) { - feeManager = await deployFeeManager(options); - } - - return await getOrDeployInfraContract({ - ...options, - constructorParams: { - _feeManager: feeManager.address, - _v3PositionManager: v3PositionManager, - _v4PositionManager: v4PositionManager, - }, - contractId: "RewardLocker", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }); -} - -export async function deployFeeManager(options: ClientAndChainAndAccount) { - // asset factory - let assetFactory = await getDeployedAssetFactory(options); - if (!assetFactory) { - assetFactory = await deployAssetFactory(options); - } - - // fee manager implementation - const feeManagerImpl = await getOrDeployInfraContract({ - ...options, - contractId: "FeeManager", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }); - - // encode init data - const initData = encodeFeeManagerInit({ - defaultFee: DEFAULT_FEE_BPS, - feeRecipient: DEFAULT_FEE_RECIPIENT, - owner: DEFAULT_INFRA_ADMIN, - }); - - // fee manager proxy deployment - const transaction = deployInfraProxyDeterministic({ - contract: assetFactory, - data: initData, - extraData: "0x", - implementation: feeManagerImpl.address, - salt: keccakId(DEFAULT_SALT), - }); - - const receipt = await sendAndConfirmTransaction({ - account: options.account, - transaction, - }); - const proxyEvent = assetInfraDeployedEvent(); - const decodedEvent = parseEventLogs({ - events: [proxyEvent], - logs: receipt.logs, - }); - - if (decodedEvent.length === 0 || !decodedEvent[0]) { - throw new Error( - `No AssetInfraDeployed event found in transaction: ${receipt.transactionHash}`, - ); - } - - const feeManagerProxyAddress = decodedEvent[0]?.args.proxy; - - return getContract({ - address: feeManagerProxyAddress, - chain: options.chain, - client: options.client, - }); -} - -export async function deployAssetFactory(options: ClientAndChainAndAccount) { - // create2 factory - const create2Factory = await getDeployedCreate2Factory(options); - if (!create2Factory) { - await deployCreate2Factory(options); - } - - // asset factory - return getOrDeployInfraContract({ - ...options, - contractId: "AssetInfraDeployer", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }); -} - -export async function getDeployedRouter(options: ClientAndChain) { - const [feeManager, marketSaleImpl, assetFactory] = await Promise.all([ - getDeployedFeeManager(options), - getDeployedInfraContract({ - ...options, - contractId: "MarketSale", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }), - getDeployedAssetFactory(options), - ]); - - if (!feeManager || !marketSaleImpl || !assetFactory) { - return null; - } - - const routerImpl = await getDeployedInfraContract({ - ...options, - constructorParams: { - _feeManager: feeManager.address, - _marketSaleImplementation: marketSaleImpl.address, - }, - contractId: "Router", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }); - - if (!routerImpl) { - return null; - } - - const initCodeHash = getInitCodeHashERC1967(routerImpl.address); - - const saltHash = keccak256( - encodePacked( - ["bytes32", "address"], - [keccakId(DEFAULT_SALT), DEFAULT_INFRA_ADMIN], - ), - ); - - const hashedDeployInfo = keccak256( - encodePacked( - ["bytes1", "address", "bytes32", "bytes32"], - ["0xff", assetFactory.address, saltHash, initCodeHash], - ), - ); - - const routerProxyAddress = `0x${hashedDeployInfo.slice(26)}`; - const routerProxy = getContract({ - address: routerProxyAddress, - chain: options.chain, - client: options.client, - }); - - if (!(await isContractDeployed(routerProxy))) { - return null; - } - - return routerProxy; -} - -export async function getDeployedRewardLocker(options: ClientAndChain) { - let v3PositionManager = ZERO_ADDRESS; - let v4PositionManager = ZERO_ADDRESS; - - const implementations = IMPLEMENTATIONS[options.chain.id]; - - if (implementations) { - v3PositionManager = implementations.V3PositionManager || ZERO_ADDRESS; - v4PositionManager = implementations.V4PositionManager || ZERO_ADDRESS; - } - - const feeManager = await getDeployedFeeManager(options); - - if (!feeManager) { - return null; - } - - return await getDeployedInfraContract({ - ...options, - constructorParams: { - _feeManager: feeManager.address, - _v3PositionManager: v3PositionManager, - _v4PositionManager: v4PositionManager, - }, - contractId: "RewardLocker", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }); -} - -export async function getDeployedFeeManager(options: ClientAndChain) { - const [assetFactory, feeManagerImpl] = await Promise.all([ - getDeployedAssetFactory(options), - getDeployedInfraContract({ - ...options, - contractId: "FeeManager", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }), - ]); - - if (!assetFactory || !feeManagerImpl) { - return null; - } - - const initCodeHash = getInitCodeHashERC1967(feeManagerImpl.address); - - const saltHash = keccak256( - encodePacked( - ["bytes32", "address"], - [keccakId(DEFAULT_SALT), DEFAULT_INFRA_ADMIN], - ), - ); - - const hashedDeployInfo = keccak256( - encodePacked( - ["bytes1", "address", "bytes32", "bytes32"], - ["0xff", assetFactory.address, saltHash, initCodeHash], - ), - ); - - const feeManagerProxyAddress = `0x${hashedDeployInfo.slice(26)}`; - const feeManagerProxy = getContract({ - address: feeManagerProxyAddress, - chain: options.chain, - client: options.client, - }); - - if (!(await isContractDeployed(feeManagerProxy))) { - return null; - } - - return feeManagerProxy; -} - -export async function getDeployedAssetFactory(args: ClientAndChain) { - const assetFactory = await getDeployedInfraContract({ - ...args, - contractId: "AssetInfraDeployer", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }); - if (!assetFactory) { - return null; - } - return assetFactory; -} diff --git a/packages/thirdweb/src/assets/bootstrapinfra.test.ts b/packages/thirdweb/src/assets/bootstrapinfra.test.ts deleted file mode 100644 index 936652de893..00000000000 --- a/packages/thirdweb/src/assets/bootstrapinfra.test.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { describe, expect, it } from "vitest"; -import { ANVIL_CHAIN } from "../../test/src/chains.js"; -import { TEST_CLIENT } from "../../test/src/test-clients.js"; -import { TEST_ACCOUNT_A } from "../../test/src/test-wallets.js"; -import { deployFeeManager, getDeployedFeeManager } from "./bootstrap.js"; - -describe.runIf(process.env.TW_SECRET_KEY)("bootstrap asset infra", () => { - it("should bootstrap fee manager", async () => { - const feeManager = await deployFeeManager({ - account: TEST_ACCOUNT_A, - chain: ANVIL_CHAIN, - client: TEST_CLIENT, - }); - - const expectedFeeManager = await getDeployedFeeManager({ - chain: ANVIL_CHAIN, - client: TEST_CLIENT, - }); - - expect(expectedFeeManager).toBeDefined(); - expect(feeManager.address.toLowerCase()).to.equal( - expectedFeeManager?.address?.toLowerCase(), - ); - }); -}); diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index 8c19f137f38..47d2c9e2d69 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -4,21 +4,14 @@ export const DEFAULT_REFERRER_REWARD_BPS = 5000; // 50% export const DEFAULT_INFRA_ADMIN = "0x1a472863cf21d5aa27f417df9140400324c48f22"; export const DEFAULT_FEE_RECIPIENT = "0x1Af20C6B23373350aD464700B5965CE4B0D2aD94"; -export const DEFAULT_FEE_BPS = 50n; -export const DEFAULT_SALT = "thirdweb"; +export const DEFAULT_SALT = "0x"; export const IMPLEMENTATIONS: Record> = { 8453: { - AssetEntrypointERC20: "0x556688D4d192FC59b27E239ff6e06D28786aAdbE", - ERC20AssetImpl: "", - V3PositionManager: "", - V4PositionManager: "", + AssetEntrypointERC20: "0xe7caeE8a2df994cE00b575eE56A3c9DecB95028D", }, 84532: { - AssetEntrypointERC20: "0xf0ED90ea4df819017ee1dfDADf26d65a678b31b7", - ERC20AssetImpl: "", - V3PositionManager: "", - V4PositionManager: "", + AssetEntrypointERC20: "0xa34ed67f2a327D8E87E3dFBcc7b4927df7C418ef", }, }; diff --git a/packages/thirdweb/src/assets/create-token-by-impl-config.ts b/packages/thirdweb/src/assets/create-token-by-impl-config.ts index 96460b0ff72..23921c8d4d2 100644 --- a/packages/thirdweb/src/assets/create-token-by-impl-config.ts +++ b/packages/thirdweb/src/assets/create-token-by-impl-config.ts @@ -2,8 +2,8 @@ import type { Hex } from "viem"; import { NATIVE_TOKEN_ADDRESS, ZERO_ADDRESS } from "../constants/addresses.js"; import { getContract } from "../contract/contract.js"; import { parseEventLogs } from "../event/actions/parse-logs.js"; -import { assetCreatedEvent } from "../extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.js"; -import { createAssetByImplementationConfig } from "../extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.js"; +import { assetCreatedEvent } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.js"; +import { createAssetByImplementationConfig } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.js"; import { decimals } from "../extensions/erc20/read/decimals.js"; import { eth_blockNumber } from "../rpc/actions/eth_blockNumber.js"; import { getRpcClient } from "../rpc/rpc.js"; @@ -17,16 +17,15 @@ import { ImplementationType, } from "./constants.js"; import { getOrDeployEntrypointERC20 } from "./get-entrypoint-erc20.js"; -import { getOrDeployERC20AssetImpl } from "./get-erc20-asset-impl.js"; import { encodeInitParams, encodeMarketConfig, encodePoolConfig, } from "./token-utils.js"; -import type { CreateTokenOptions } from "./types.js"; +import type { CreateTokenByImplementationConfigOptions } from "./types.js"; -export async function createTokenByImplConfig(options: CreateTokenOptions) { - const { client, chain, account, params, launchConfig } = options; +export async function createTokenByImplementationConfig(options: CreateTokenByImplementationConfigOptions) { + const { client, chain, account, params, implementationAddress, launchConfig } = options; const creator = params.owner || account.address; @@ -49,7 +48,6 @@ export async function createTokenByImplConfig(options: CreateTokenOptions) { }); const entrypoint = await getOrDeployEntrypointERC20(options); - const tokenImpl = await getOrDeployERC20AssetImpl(options); let hookData: Hex = "0x"; let amount = toUnits( @@ -99,7 +97,7 @@ export async function createTokenByImplConfig(options: CreateTokenOptions) { ? CreateHook.DISTRIBUTE : CreateHook.NONE, createHookData: hookData, - implementation: tokenImpl.address, + implementation: implementationAddress, implementationType: ImplementationType.ERC1967, }, contract: entrypoint, diff --git a/packages/thirdweb/src/assets/create-token.test.ts b/packages/thirdweb/src/assets/create-token.test.ts index 6749404c7b7..9a48d990052 100644 --- a/packages/thirdweb/src/assets/create-token.test.ts +++ b/packages/thirdweb/src/assets/create-token.test.ts @@ -5,11 +5,11 @@ import { TEST_ACCOUNT_A } from "../../test/src/test-wallets.js"; import { getContract } from "../contract/contract.js"; import { name } from "../extensions/common/read/name.js"; // import { totalSupply } from "../extensions/erc20/__generated__/IERC20/read/totalSupply.js"; -import { createTokenByImplConfig } from "./create-token-by-impl-config.js"; +import { createTokenByImplementationConfig } from "./create-token-by-impl-config.js"; describe.runIf(process.env.TW_SECRET_KEY)("create token by impl config", () => { it("should create token without pool", async () => { - const token = await createTokenByImplConfig({ + const token = await createTokenByImplementationConfig({ account: TEST_ACCOUNT_A, chain: ANVIL_CHAIN, client: TEST_CLIENT, @@ -18,6 +18,7 @@ describe.runIf(process.env.TW_SECRET_KEY)("create token by impl config", () => { name: "Test", }, salt: "salt123", + implementationAddress: "", }); expect(token).toBeDefined(); diff --git a/packages/thirdweb/src/assets/create-token.ts b/packages/thirdweb/src/assets/create-token.ts index 0185e9cb7de..7c69fb31c45 100644 --- a/packages/thirdweb/src/assets/create-token.ts +++ b/packages/thirdweb/src/assets/create-token.ts @@ -2,8 +2,8 @@ import type { Hex } from "viem"; import { NATIVE_TOKEN_ADDRESS, ZERO_ADDRESS } from "../constants/addresses.js"; import { getContract } from "../contract/contract.js"; import { parseEventLogs } from "../event/actions/parse-logs.js"; -import { assetCreatedEvent } from "../extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.js"; -import { createAsset } from "../extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.js"; +import { assetCreatedEvent } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.js"; +import { createAsset } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.js"; import { decimals } from "../extensions/erc20/read/decimals.js"; import { eth_blockNumber } from "../rpc/actions/eth_blockNumber.js"; import { getRpcClient } from "../rpc/rpc.js"; diff --git a/packages/thirdweb/src/assets/distribute-token.test.ts b/packages/thirdweb/src/assets/distribute-token.test.ts index 322f39478e0..c399b36d780 100644 --- a/packages/thirdweb/src/assets/distribute-token.test.ts +++ b/packages/thirdweb/src/assets/distribute-token.test.ts @@ -12,7 +12,7 @@ import { TEST_ACCOUNT_C, TEST_ACCOUNT_D, } from "../../test/src/test-wallets.js"; -import { createTokenByImplConfig } from "./create-token-by-impl-config.js"; +import { createTokenByImplementationConfig } from "./create-token-by-impl-config.js"; import { distributeToken } from "./distribute-token.js"; import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; @@ -25,7 +25,7 @@ describe.runIf(process.env.TW_SECRET_KEY)( let token: ThirdwebContract; beforeAll(async () => { // create token - const tokenAddress = await createTokenByImplConfig({ + const tokenAddress = await createTokenByImplementationConfig({ account: TEST_ACCOUNT_A, chain: ANVIL_CHAIN, client: TEST_CLIENT, @@ -34,6 +34,7 @@ describe.runIf(process.env.TW_SECRET_KEY)( name: "Test", }, salt: "salt123", + implementationAddress: "0x", }); token = getContract({ diff --git a/packages/thirdweb/src/assets/distribute-token.ts b/packages/thirdweb/src/assets/distribute-token.ts index 6fd25acd6da..93a37d87111 100644 --- a/packages/thirdweb/src/assets/distribute-token.ts +++ b/packages/thirdweb/src/assets/distribute-token.ts @@ -1,4 +1,4 @@ -import { distributeAsset } from "../extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.js"; +import { distributeAsset } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.js"; import type { ClientAndChain } from "../utils/types.js"; import { toUnits } from "../utils/units.js"; import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; diff --git a/packages/thirdweb/src/assets/get-entrypoint-erc20.ts b/packages/thirdweb/src/assets/get-entrypoint-erc20.ts index 4d02c7789fa..b95d28397bc 100644 --- a/packages/thirdweb/src/assets/get-entrypoint-erc20.ts +++ b/packages/thirdweb/src/assets/get-entrypoint-erc20.ts @@ -1,24 +1,11 @@ -import { encodePacked } from "viem"; -import { ZERO_ADDRESS } from "../constants/addresses.js"; import { getContract, type ThirdwebContract } from "../contract/contract.js"; -import { getOrDeployInfraContract } from "../contract/deployment/utils/bootstrap.js"; -import { getDeployedInfraContract } from "../contract/deployment/utils/infra.js"; -import { encodeInitialize } from "../extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.js"; -import { keccakId } from "../utils/any-evm/keccak-id.js"; -import { isContractDeployed } from "../utils/bytecode/is-contract-deployed.js"; -import { keccak256 } from "../utils/hashing/keccak256.js"; import type { ClientAndChain, ClientAndChainAndAccount, } from "../utils/types.js"; -import { deployAssetFactory, getDeployedAssetFactory } from "./bootstrap.js"; import { - DEFAULT_INFRA_ADMIN, - DEFAULT_SALT, IMPLEMENTATIONS, } from "./constants.js"; -import { deployInfraProxy } from "./deploy-infra-proxy.js"; -import { getInitCodeHashERC1967 } from "./get-initcode-hash-1967.js"; export async function getOrDeployEntrypointERC20( options: ClientAndChainAndAccount, @@ -33,38 +20,8 @@ export async function getOrDeployEntrypointERC20( }); } - let assetFactory = await getDeployedAssetFactory(options); - if (!assetFactory) { - assetFactory = await deployAssetFactory(options); - } - - const entrypointImpl = await getOrDeployInfraContract({ - ...options, - contractId: "AssetEntrypointERC20", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - version: "0.0.2", - }); - - // encode init data - const initData = encodeInitialize({ - owner: DEFAULT_INFRA_ADMIN, - rewardLocker: ZERO_ADDRESS, - router: ZERO_ADDRESS, - }); - - const entyrpointProxyAddress = await deployInfraProxy({ - ...options, - assetFactory, - extraData: "0x", - implementationAddress: entrypointImpl.address, - initData, - }); - - return getContract({ - address: entyrpointProxyAddress, - chain: options.chain, - client: options.client, - }); + // TODO: Dynamically deploy asset factory if not already deployed + throw new Error("Asset factory deployment is not deployed yet."); } export async function getDeployedEntrypointERC20(options: ClientAndChain) { @@ -78,46 +35,5 @@ export async function getDeployedEntrypointERC20(options: ClientAndChain) { }); } - const [assetFactory, entrypointImpl] = await Promise.all([ - getDeployedAssetFactory(options), - getDeployedInfraContract({ - ...options, - contractId: "AssetEntrypointERC20", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - version: "0.0.2", - }), - ]); - - if (!assetFactory || !entrypointImpl) { - return null; - } - - const initCodeHash = getInitCodeHashERC1967(entrypointImpl.address); - - const saltHash = keccak256( - encodePacked( - ["bytes32", "address"], - [keccakId(DEFAULT_SALT), DEFAULT_INFRA_ADMIN], - ), - ); - - const hashedDeployInfo = keccak256( - encodePacked( - ["bytes1", "address", "bytes32", "bytes32"], - ["0xff", assetFactory.address, saltHash, initCodeHash], - ), - ); - - const entrypointProxyAddress = `0x${hashedDeployInfo.slice(26)}`; - const entrypointProxy = getContract({ - address: entrypointProxyAddress, - chain: options.chain, - client: options.client, - }); - - if (!(await isContractDeployed(entrypointProxy))) { - return null; - } - - return entrypointProxy; + throw new Error("Asset factory deployment is not deployed yet."); } diff --git a/packages/thirdweb/src/assets/is-router-enabled.ts b/packages/thirdweb/src/assets/is-router-enabled.ts index 9b23d0f1d2d..5da30b4cc34 100644 --- a/packages/thirdweb/src/assets/is-router-enabled.ts +++ b/packages/thirdweb/src/assets/is-router-enabled.ts @@ -1,5 +1,5 @@ import { ZERO_ADDRESS } from "../constants/addresses.js"; -import { getRouter } from "../extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.js"; +import { getRouter } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.js"; import type { ClientAndChain } from "../utils/types.js"; import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; diff --git a/packages/thirdweb/src/assets/types.ts b/packages/thirdweb/src/assets/types.ts index 966390e852a..8953c67e7ee 100644 --- a/packages/thirdweb/src/assets/types.ts +++ b/packages/thirdweb/src/assets/types.ts @@ -51,3 +51,7 @@ export type CreateTokenOptions = ClientAndChainAndAccount & { launchConfig?: LaunchConfig; referrerAddress?: string; }; + +export type CreateTokenByImplementationConfigOptions = ClientAndChainAndAccount & CreateTokenOptions & { + implementationAddress: string; +}; diff --git a/packages/thirdweb/src/exports/assets.ts b/packages/thirdweb/src/exports/assets.ts index 17163b74355..8235d844fcf 100644 --- a/packages/thirdweb/src/exports/assets.ts +++ b/packages/thirdweb/src/exports/assets.ts @@ -1,20 +1,11 @@ -export { - deployAssetFactory, - deployFeeManager, - deployRewardLocker, - deployRouter, - getDeployedAssetFactory, - getDeployedFeeManager, - getDeployedRewardLocker, - getDeployedRouter, -} from "../assets/bootstrap.js"; export { createToken } from "../assets/create-token.js"; -export { createTokenByImplConfig } from "../assets/create-token-by-impl-config.js"; +export { createTokenByImplementationConfig } from "../assets/create-token-by-impl-config.js"; export { distributeToken } from "../assets/distribute-token.js"; export { getDeployedEntrypointERC20 } from "../assets/get-entrypoint-erc20.js"; export { isRouterEnabled } from "../assets/is-router-enabled.js"; export type { CreateTokenOptions, + CreateTokenByImplementationConfigOptions, DistributeContent, MarketConfig, PoolConfig, diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts index 0f9bbb7c89a..f256c499527 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnerUpdated" event. @@ -40,8 +40,8 @@ export type OwnerUpdatedEventFilters = Partial<{ */ export function ownerUpdatedEvent(filters: OwnerUpdatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event OwnerUpdated(address indexed prevOwner, address indexed newOwner)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts index 896cf83855c..0f3e6933df7 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts @@ -1,39 +1,40 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "fields", type: "bytes1", + name: "fields", }, { - name: "name", type: "string", + name: "name", }, { - name: "version", type: "string", + name: "version", }, { - name: "chainId", type: "uint256", + name: "chainId", }, { - name: "verifyingContract", type: "address", + name: "verifyingContract", }, { - name: "salt", type: "bytes32", + name: "salt", }, { - name: "extensions", type: "uint256[]", + name: "extensions", }, ] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts index 3bd9646dbe2..4ead09e35b3 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isClaimed" function. @@ -18,16 +18,16 @@ export type IsClaimedParams = { export const FN_SELECTOR = "0xd12acf73" as const; const FN_INPUTS = [ { - name: "_receiver", type: "address", + name: "_receiver", }, { - name: "_token", type: "address", + name: "_token", }, { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts index eb5900f0f41..eee9df78552 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts index 2bd9a328687..fa0dfaf9998 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenConditionId" function. @@ -19,8 +19,8 @@ export type TokenConditionIdParams = { export const FN_SELECTOR = "0x3dc28d49" as const; const FN_INPUTS = [ { - name: "tokenAddress", type: "address", + name: "tokenAddress", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts index 770d310d660..cf0f7ee9db1 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenMerkleRoot" function. @@ -19,8 +19,8 @@ export type TokenMerkleRootParams = { export const FN_SELECTOR = "0x95f5c120" as const; const FN_INPUTS = [ { - name: "tokenAddress", type: "address", + name: "tokenAddress", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts index bd6efbf659d..e7d492f3570 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC1155" function. @@ -30,26 +30,26 @@ export type AirdropERC1155Params = WithOverrides<{ export const FN_SELECTOR = "0x2d89e38b" as const; const FN_INPUTS = [ { - name: "_tokenAddress", type: "address", + name: "_tokenAddress", }, { + type: "tuple[]", + name: "_contents", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "amount", type: "uint256", + name: "amount", }, ], - name: "_contents", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [] as const; @@ -153,23 +153,23 @@ export function airdropERC1155( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenAddress, resolvedOptions.contents] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts index 5a726f92b7e..f3dfb2d6509 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC1155WithSignature" function. @@ -36,44 +36,44 @@ export type AirdropERC1155WithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0xd0d4afd6" as const; const FN_INPUTS = [ { + type: "tuple", + name: "req", components: [ { - name: "uid", type: "bytes32", + name: "uid", }, { - name: "tokenAddress", type: "address", + name: "tokenAddress", }, { - name: "expirationTimestamp", type: "uint256", + name: "expirationTimestamp", }, { + type: "tuple[]", + name: "contents", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "amount", type: "uint256", + name: "amount", }, ], - name: "contents", - type: "tuple[]", }, ], - name: "req", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -180,23 +180,23 @@ export function airdropERC1155WithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.req, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts index 941d0cbfc9a..fa9bd57d7f7 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC20" function. @@ -29,22 +29,22 @@ export type AirdropERC20Params = WithOverrides<{ export const FN_SELECTOR = "0x56b0b449" as const; const FN_INPUTS = [ { - name: "_tokenAddress", type: "address", + name: "_tokenAddress", }, { + type: "tuple[]", + name: "_contents", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "amount", type: "uint256", + name: "amount", }, ], - name: "_contents", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [] as const; @@ -148,23 +148,23 @@ export function airdropERC20( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenAddress, resolvedOptions.contents] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts index e2c906fb5b6..23bf45ea43f 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC20WithSignature" function. @@ -35,40 +35,40 @@ export type AirdropERC20WithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0xaaba07f6" as const; const FN_INPUTS = [ { + type: "tuple", + name: "req", components: [ { - name: "uid", type: "bytes32", + name: "uid", }, { - name: "tokenAddress", type: "address", + name: "tokenAddress", }, { - name: "expirationTimestamp", type: "uint256", + name: "expirationTimestamp", }, { + type: "tuple[]", + name: "contents", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "amount", type: "uint256", + name: "amount", }, ], - name: "contents", - type: "tuple[]", }, ], - name: "req", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -175,23 +175,23 @@ export function airdropERC20WithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.req, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts index 9645483e334..0ee231575e2 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC721" function. @@ -29,22 +29,22 @@ export type AirdropERC721Params = WithOverrides<{ export const FN_SELECTOR = "0x6d582ebe" as const; const FN_INPUTS = [ { - name: "_tokenAddress", type: "address", + name: "_tokenAddress", }, { + type: "tuple[]", + name: "_contents", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, ], - name: "_contents", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [] as const; @@ -148,23 +148,23 @@ export function airdropERC721( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenAddress, resolvedOptions.contents] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts index ac6a84f3ce4..303a8d546b6 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC721WithSignature" function. @@ -35,40 +35,40 @@ export type AirdropERC721WithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0xb654a6f3" as const; const FN_INPUTS = [ { + type: "tuple", + name: "req", components: [ { - name: "uid", type: "bytes32", + name: "uid", }, { - name: "tokenAddress", type: "address", + name: "tokenAddress", }, { - name: "expirationTimestamp", type: "uint256", + name: "expirationTimestamp", }, { + type: "tuple[]", + name: "contents", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, ], - name: "contents", - type: "tuple[]", }, ], - name: "req", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -175,23 +175,23 @@ export function airdropERC721WithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.req, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts index 65534cf1849..0f24fc95697 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropNativeToken" function. @@ -25,18 +25,18 @@ export type AirdropNativeTokenParams = WithOverrides<{ export const FN_SELECTOR = "0x0d5818f7" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "_contents", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "amount", type: "uint256", + name: "amount", }, ], - name: "_contents", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [] as const; @@ -136,23 +136,23 @@ export function airdropNativeToken( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.contents] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts index 1ae536a592f..80eb7e26bc7 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimERC1155" function. @@ -22,24 +22,24 @@ export type ClaimERC1155Params = WithOverrides<{ export const FN_SELECTOR = "0xc6fa26ab" as const; const FN_INPUTS = [ { - name: "_token", type: "address", + name: "_token", }, { - name: "_receiver", type: "address", + name: "_receiver", }, { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, { - name: "_proofs", type: "bytes32[]", + name: "_proofs", }, ] as const; const FN_OUTPUTS = [] as const; @@ -155,19 +155,8 @@ export function claimERC1155( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -179,5 +168,16 @@ export function claimERC1155( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts index a2c0c7bcb5e..ba5895a0c69 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimERC20" function. @@ -21,20 +21,20 @@ export type ClaimERC20Params = WithOverrides<{ export const FN_SELECTOR = "0xecf3d3d4" as const; const FN_INPUTS = [ { - name: "_token", type: "address", + name: "_token", }, { - name: "_receiver", type: "address", + name: "_receiver", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, { - name: "_proofs", type: "bytes32[]", + name: "_proofs", }, ] as const; const FN_OUTPUTS = [] as const; @@ -146,19 +146,8 @@ export function claimERC20( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -169,5 +158,16 @@ export function claimERC20( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts index 49d0b1720f8..c14bfa26737 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimERC721" function. @@ -21,20 +21,20 @@ export type ClaimERC721Params = WithOverrides<{ export const FN_SELECTOR = "0x1290be10" as const; const FN_INPUTS = [ { - name: "_token", type: "address", + name: "_token", }, { - name: "_receiver", type: "address", + name: "_receiver", }, { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_proofs", type: "bytes32[]", + name: "_proofs", }, ] as const; const FN_OUTPUTS = [] as const; @@ -146,19 +146,8 @@ export function claimERC721( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -169,5 +158,16 @@ export function claimERC721( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts index 32cb05823bb..f835779317c 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -21,8 +21,8 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xc4d66de8" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.defaultAdmin] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts index ade70c41f0c..a9efda55328 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setMerkleRoot" function. @@ -26,16 +26,16 @@ export type SetMerkleRootParams = WithOverrides<{ export const FN_SELECTOR = "0x8259a87b" as const; const FN_INPUTS = [ { - name: "_token", type: "address", + name: "_token", }, { - name: "_tokenMerkleRoot", type: "bytes32", + name: "_tokenMerkleRoot", }, { - name: "_resetClaimStatus", type: "bool", + name: "_resetClaimStatus", }, ] as const; const FN_OUTPUTS = [] as const; @@ -143,19 +143,8 @@ export function setMerkleRoot( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -165,5 +154,16 @@ export function setMerkleRoot( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts index 95f071a6d30..b432dc441f4 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setOwner" function. @@ -18,8 +18,8 @@ export type SetOwnerParams = WithOverrides<{ export const FN_SELECTOR = "0x13af4035" as const; const FN_INPUTS = [ { - name: "_newOwner", type: "address", + name: "_newOwner", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function setOwner( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.newOwner] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts index 2bc3f6be4c2..9eabdaeaaa7 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AssetInfraDeployed" event. @@ -42,8 +42,8 @@ export function assetInfraDeployedEvent( filters: AssetInfraDeployedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event AssetInfraDeployed(address indexed implementation, address indexed proxy, bytes32 inputSalt, bytes data, bytes extraData)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts index 204dd2a6d36..437686f8a5b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deployInfraProxyDeterministic" function. @@ -24,26 +24,26 @@ export type DeployInfraProxyDeterministicParams = WithOverrides<{ export const FN_SELECTOR = "0xb43c830c" as const; const FN_INPUTS = [ { - name: "implementation", type: "address", + name: "implementation", }, { - name: "data", type: "bytes", + name: "data", }, { - name: "salt", type: "bytes32", + name: "salt", }, { - name: "extraData", type: "bytes", + name: "extraData", }, ] as const; const FN_OUTPUTS = [ { - name: "deployedProxy", type: "address", + name: "deployedProxy", }, ] as const; @@ -160,19 +160,8 @@ export function deployInfraProxyDeterministic( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -183,5 +172,16 @@ export function deployInfraProxyDeterministic( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts new file mode 100644 index 00000000000..c163264f500 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "Approval" event. + */ +export type ApprovalEventFilters = Partial<{ + owner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "owner"; + indexed: true; + }>; + spender: AbiParameterToPrimitiveType<{ + type: "address"; + name: "spender"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the Approval event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { approvalEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * approvalEvent({ + * owner: ..., + * spender: ..., + * }) + * ], + * }); + * ``` + */ +export function approvalEvent(filters: ApprovalEventFilters = {}) { + return prepareEvent({ + signature: + "event Approval(address indexed owner, address indexed spender, uint256 amount)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/ContractURIUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/ContractURIUpdated.ts new file mode 100644 index 00000000000..16611ea0bd1 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/ContractURIUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the ContractURIUpdated event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { contractURIUpdatedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * contractURIUpdatedEvent() + * ], + * }); + * ``` + */ +export function contractURIUpdatedEvent() { + return prepareEvent({ + signature: "event ContractURIUpdated()", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Initialized.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Initialized.ts new file mode 100644 index 00000000000..88705c10a63 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Initialized.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the Initialized event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { initializedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * initializedEvent() + * ], + * }); + * ``` + */ +export function initializedEvent() { + return prepareEvent({ + signature: "event Initialized(uint64 version)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts new file mode 100644 index 00000000000..2ab8996b8d3 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverCanceled" event. + */ +export type OwnershipHandoverCanceledEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverCanceled event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverCanceledEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverCanceledEvent( + filters: OwnershipHandoverCanceledEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts new file mode 100644 index 00000000000..a498506409a --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverRequested" event. + */ +export type OwnershipHandoverRequestedEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverRequested event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverRequestedEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverRequestedEvent( + filters: OwnershipHandoverRequestedEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts new file mode 100644 index 00000000000..b1be6e750e1 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipTransferred" event. + */ +export type OwnershipTransferredEventFilters = Partial<{ + oldOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "oldOwner"; + indexed: true; + }>; + newOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipTransferred event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipTransferredEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipTransferredEvent({ + * oldOwner: ..., + * newOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipTransferredEvent( + filters: OwnershipTransferredEventFilters = {}, +) { + return prepareEvent({ + signature: + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts new file mode 100644 index 00000000000..966872e8e8e --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "Transfer" event. + */ +export type TransferEventFilters = Partial<{ + from: AbiParameterToPrimitiveType<{ + type: "address"; + name: "from"; + indexed: true; + }>; + to: AbiParameterToPrimitiveType<{ + type: "address"; + name: "to"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the Transfer event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { transferEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * transferEvent({ + * from: ..., + * to: ..., + * }) + * ], + * }); + * ``` + */ +export function transferEvent(filters: TransferEventFilters = {}) { + return prepareEvent({ + signature: + "event Transfer(address indexed from, address indexed to, uint256 amount)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts new file mode 100644 index 00000000000..9d4decaf62a --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x3644e515" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "bytes32", + name: "result", + }, +] as const; + +/** + * Checks if the `DOMAIN_SEPARATOR` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `DOMAIN_SEPARATOR` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isDOMAIN_SEPARATORSupported } from "thirdweb/extensions/assets"; + * const supported = isDOMAIN_SEPARATORSupported(["0x..."]); + * ``` + */ +export function isDOMAIN_SEPARATORSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the DOMAIN_SEPARATOR function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeDOMAIN_SEPARATORResult } from "thirdweb/extensions/assets"; + * const result = decodeDOMAIN_SEPARATORResultResult("..."); + * ``` + */ +export function decodeDOMAIN_SEPARATORResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "DOMAIN_SEPARATOR" function on the contract. + * @param options - The options for the DOMAIN_SEPARATOR function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { DOMAIN_SEPARATOR } from "thirdweb/extensions/assets"; + * + * const result = await DOMAIN_SEPARATOR({ + * contract, + * }); + * + * ``` + */ +export async function DOMAIN_SEPARATOR(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts new file mode 100644 index 00000000000..8ce23927dd8 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts @@ -0,0 +1,134 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "allowance" function. + */ +export type AllowanceParams = { + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + spender: AbiParameterToPrimitiveType<{ type: "address"; name: "spender" }>; +}; + +export const FN_SELECTOR = "0xdd62ed3e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, + { + type: "address", + name: "spender", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `allowance` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `allowance` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isAllowanceSupported } from "thirdweb/extensions/assets"; + * const supported = isAllowanceSupported(["0x..."]); + * ``` + */ +export function isAllowanceSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "allowance" function. + * @param options - The options for the allowance function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeAllowanceParams } from "thirdweb/extensions/assets"; + * const result = encodeAllowanceParams({ + * owner: ..., + * spender: ..., + * }); + * ``` + */ +export function encodeAllowanceParams(options: AllowanceParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner, options.spender]); +} + +/** + * Encodes the "allowance" function into a Hex string with its parameters. + * @param options - The options for the allowance function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeAllowance } from "thirdweb/extensions/assets"; + * const result = encodeAllowance({ + * owner: ..., + * spender: ..., + * }); + * ``` + */ +export function encodeAllowance(options: AllowanceParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeAllowanceParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the allowance function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeAllowanceResult } from "thirdweb/extensions/assets"; + * const result = decodeAllowanceResultResult("..."); + * ``` + */ +export function decodeAllowanceResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "allowance" function on the contract. + * @param options - The options for the allowance function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { allowance } from "thirdweb/extensions/assets"; + * + * const result = await allowance({ + * contract, + * owner: ..., + * spender: ..., + * }); + * + * ``` + */ +export async function allowance( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.owner, options.spender], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts new file mode 100644 index 00000000000..94ad6c49f8c --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts @@ -0,0 +1,126 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "balanceOf" function. + */ +export type BalanceOfParams = { + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; +}; + +export const FN_SELECTOR = "0x70a08231" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `balanceOf` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `balanceOf` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isBalanceOfSupported } from "thirdweb/extensions/assets"; + * const supported = isBalanceOfSupported(["0x..."]); + * ``` + */ +export function isBalanceOfSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "balanceOf" function. + * @param options - The options for the balanceOf function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeBalanceOfParams } from "thirdweb/extensions/assets"; + * const result = encodeBalanceOfParams({ + * owner: ..., + * }); + * ``` + */ +export function encodeBalanceOfParams(options: BalanceOfParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner]); +} + +/** + * Encodes the "balanceOf" function into a Hex string with its parameters. + * @param options - The options for the balanceOf function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeBalanceOf } from "thirdweb/extensions/assets"; + * const result = encodeBalanceOf({ + * owner: ..., + * }); + * ``` + */ +export function encodeBalanceOf(options: BalanceOfParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeBalanceOfParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the balanceOf function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeBalanceOfResult } from "thirdweb/extensions/assets"; + * const result = decodeBalanceOfResultResult("..."); + * ``` + */ +export function decodeBalanceOfResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "balanceOf" function on the contract. + * @param options - The options for the balanceOf function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { balanceOf } from "thirdweb/extensions/assets"; + * + * const result = await balanceOf({ + * contract, + * owner: ..., + * }); + * + * ``` + */ +export async function balanceOf( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.owner], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts new file mode 100644 index 00000000000..b6823beee40 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xe8a3d485" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "string", + }, +] as const; + +/** + * Checks if the `contractURI` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `contractURI` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isContractURISupported } from "thirdweb/extensions/assets"; + * const supported = isContractURISupported(["0x..."]); + * ``` + */ +export function isContractURISupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the contractURI function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeContractURIResult } from "thirdweb/extensions/assets"; + * const result = decodeContractURIResultResult("..."); + * ``` + */ +export function decodeContractURIResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "contractURI" function on the contract. + * @param options - The options for the contractURI function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { contractURI } from "thirdweb/extensions/assets"; + * + * const result = await contractURI({ + * contract, + * }); + * + * ``` + */ +export async function contractURI(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts new file mode 100644 index 00000000000..5df67764e49 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x313ce567" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "uint8", + }, +] as const; + +/** + * Checks if the `decimals` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `decimals` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isDecimalsSupported } from "thirdweb/extensions/assets"; + * const supported = isDecimalsSupported(["0x..."]); + * ``` + */ +export function isDecimalsSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the decimals function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeDecimalsResult } from "thirdweb/extensions/assets"; + * const result = decodeDecimalsResultResult("..."); + * ``` + */ +export function decodeDecimalsResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "decimals" function on the contract. + * @param options - The options for the decimals function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { decimals } from "thirdweb/extensions/assets"; + * + * const result = await decimals({ + * contract, + * }); + * + * ``` + */ +export async function decimals(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts new file mode 100644 index 00000000000..6fd19af5893 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x06fdde03" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "string", + }, +] as const; + +/** + * Checks if the `name` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `name` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isNameSupported } from "thirdweb/extensions/assets"; + * const supported = isNameSupported(["0x..."]); + * ``` + */ +export function isNameSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the name function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeNameResult } from "thirdweb/extensions/assets"; + * const result = decodeNameResultResult("..."); + * ``` + */ +export function decodeNameResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "name" function on the contract. + * @param options - The options for the name function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { name } from "thirdweb/extensions/assets"; + * + * const result = await name({ + * contract, + * }); + * + * ``` + */ +export async function name(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts new file mode 100644 index 00000000000..4594b063bd0 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts @@ -0,0 +1,122 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "nonces" function. + */ +export type NoncesParams = { + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; +}; + +export const FN_SELECTOR = "0x7ecebe00" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `nonces` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `nonces` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isNoncesSupported } from "thirdweb/extensions/assets"; + * const supported = isNoncesSupported(["0x..."]); + * ``` + */ +export function isNoncesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "nonces" function. + * @param options - The options for the nonces function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeNoncesParams } from "thirdweb/extensions/assets"; + * const result = encodeNoncesParams({ + * owner: ..., + * }); + * ``` + */ +export function encodeNoncesParams(options: NoncesParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner]); +} + +/** + * Encodes the "nonces" function into a Hex string with its parameters. + * @param options - The options for the nonces function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeNonces } from "thirdweb/extensions/assets"; + * const result = encodeNonces({ + * owner: ..., + * }); + * ``` + */ +export function encodeNonces(options: NoncesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeNoncesParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the nonces function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeNoncesResult } from "thirdweb/extensions/assets"; + * const result = decodeNoncesResultResult("..."); + * ``` + */ +export function decodeNoncesResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "nonces" function on the contract. + * @param options - The options for the nonces function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { nonces } from "thirdweb/extensions/assets"; + * + * const result = await nonces({ + * contract, + * owner: ..., + * }); + * + * ``` + */ +export async function nonces(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.owner], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts new file mode 100644 index 00000000000..9903177bd12 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x8da5cb5b" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "result", + }, +] as const; + +/** + * Checks if the `owner` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `owner` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isOwnerSupported } from "thirdweb/extensions/assets"; + * const supported = isOwnerSupported(["0x..."]); + * ``` + */ +export function isOwnerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the owner function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeOwnerResult } from "thirdweb/extensions/assets"; + * const result = decodeOwnerResultResult("..."); + * ``` + */ +export function decodeOwnerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "owner" function on the contract. + * @param options - The options for the owner function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { owner } from "thirdweb/extensions/assets"; + * + * const result = await owner({ + * contract, + * }); + * + * ``` + */ +export async function owner(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts new file mode 100644 index 00000000000..5625095f262 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts @@ -0,0 +1,135 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "ownershipHandoverExpiresAt" function. + */ +export type OwnershipHandoverExpiresAtParams = { + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}; + +export const FN_SELECTOR = "0xfee81cf4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/assets"; + * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); + * ``` + */ +export function isOwnershipHandoverExpiresAtSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "ownershipHandoverExpiresAt" function. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/assets"; + * const result = encodeOwnershipHandoverExpiresAtParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAtParams( + options: OwnershipHandoverExpiresAtParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/assets"; + * const result = encodeOwnershipHandoverExpiresAt({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAt( + options: OwnershipHandoverExpiresAtParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeOwnershipHandoverExpiresAtParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the ownershipHandoverExpiresAt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/assets"; + * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); + * ``` + */ +export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ownershipHandoverExpiresAt" function on the contract. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/assets"; + * + * const result = await ownershipHandoverExpiresAt({ + * contract, + * pendingOwner: ..., + * }); + * + * ``` + */ +export async function ownershipHandoverExpiresAt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.pendingOwner], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts new file mode 100644 index 00000000000..0ae59f66e8f --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts @@ -0,0 +1,130 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "supportsInterface" function. + */ +export type SupportsInterfaceParams = { + interfaceId: AbiParameterToPrimitiveType<{ + type: "bytes4"; + name: "interfaceId"; + }>; +}; + +export const FN_SELECTOR = "0x01ffc9a7" as const; +const FN_INPUTS = [ + { + type: "bytes4", + name: "interfaceId", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `supportsInterface` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `supportsInterface` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSupportsInterfaceSupported } from "thirdweb/extensions/assets"; + * const supported = isSupportsInterfaceSupported(["0x..."]); + * ``` + */ +export function isSupportsInterfaceSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "supportsInterface" function. + * @param options - The options for the supportsInterface function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeSupportsInterfaceParams } from "thirdweb/extensions/assets"; + * const result = encodeSupportsInterfaceParams({ + * interfaceId: ..., + * }); + * ``` + */ +export function encodeSupportsInterfaceParams( + options: SupportsInterfaceParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.interfaceId]); +} + +/** + * Encodes the "supportsInterface" function into a Hex string with its parameters. + * @param options - The options for the supportsInterface function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeSupportsInterface } from "thirdweb/extensions/assets"; + * const result = encodeSupportsInterface({ + * interfaceId: ..., + * }); + * ``` + */ +export function encodeSupportsInterface(options: SupportsInterfaceParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSupportsInterfaceParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the supportsInterface function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeSupportsInterfaceResult } from "thirdweb/extensions/assets"; + * const result = decodeSupportsInterfaceResultResult("..."); + * ``` + */ +export function decodeSupportsInterfaceResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "supportsInterface" function on the contract. + * @param options - The options for the supportsInterface function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { supportsInterface } from "thirdweb/extensions/assets"; + * + * const result = await supportsInterface({ + * contract, + * interfaceId: ..., + * }); + * + * ``` + */ +export async function supportsInterface( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.interfaceId], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts new file mode 100644 index 00000000000..717ca59cb9e --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x95d89b41" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "string", + }, +] as const; + +/** + * Checks if the `symbol` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `symbol` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSymbolSupported } from "thirdweb/extensions/assets"; + * const supported = isSymbolSupported(["0x..."]); + * ``` + */ +export function isSymbolSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the symbol function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeSymbolResult } from "thirdweb/extensions/assets"; + * const result = decodeSymbolResultResult("..."); + * ``` + */ +export function decodeSymbolResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "symbol" function on the contract. + * @param options - The options for the symbol function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { symbol } from "thirdweb/extensions/assets"; + * + * const result = await symbol({ + * contract, + * }); + * + * ``` + */ +export async function symbol(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts new file mode 100644 index 00000000000..1ae861539a0 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x18160ddd" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `totalSupply` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `totalSupply` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isTotalSupplySupported } from "thirdweb/extensions/assets"; + * const supported = isTotalSupplySupported(["0x..."]); + * ``` + */ +export function isTotalSupplySupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the totalSupply function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeTotalSupplyResult } from "thirdweb/extensions/assets"; + * const result = decodeTotalSupplyResultResult("..."); + * ``` + */ +export function decodeTotalSupplyResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "totalSupply" function on the contract. + * @param options - The options for the totalSupply function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { totalSupply } from "thirdweb/extensions/assets"; + * + * const result = await totalSupply({ + * contract, + * }); + * + * ``` + */ +export async function totalSupply(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts new file mode 100644 index 00000000000..9795cbcb955 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts @@ -0,0 +1,149 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "approve" function. + */ +export type ApproveParams = WithOverrides<{ + spender: AbiParameterToPrimitiveType<{ type: "address"; name: "spender" }>; + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; +}>; + +export const FN_SELECTOR = "0x095ea7b3" as const; +const FN_INPUTS = [ + { + type: "address", + name: "spender", + }, + { + type: "uint256", + name: "amount", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `approve` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `approve` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isApproveSupported } from "thirdweb/extensions/assets"; + * + * const supported = isApproveSupported(["0x..."]); + * ``` + */ +export function isApproveSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "approve" function. + * @param options - The options for the approve function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeApproveParams } from "thirdweb/extensions/assets"; + * const result = encodeApproveParams({ + * spender: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeApproveParams(options: ApproveParams) { + return encodeAbiParameters(FN_INPUTS, [options.spender, options.amount]); +} + +/** + * Encodes the "approve" function into a Hex string with its parameters. + * @param options - The options for the approve function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeApprove } from "thirdweb/extensions/assets"; + * const result = encodeApprove({ + * spender: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeApprove(options: ApproveParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeApproveParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "approve" function on the contract. + * @param options - The options for the "approve" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { approve } from "thirdweb/extensions/assets"; + * + * const transaction = approve({ + * contract, + * spender: ..., + * amount: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function approve( + options: BaseTransactionOptions< + | ApproveParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.spender, resolvedOptions.amount] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts new file mode 100644 index 00000000000..636d1cb5503 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts @@ -0,0 +1,137 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "burn" function. + */ +export type BurnParams = WithOverrides<{ + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; +}>; + +export const FN_SELECTOR = "0x42966c68" as const; +const FN_INPUTS = [ + { + type: "uint256", + name: "amount", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `burn` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `burn` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isBurnSupported } from "thirdweb/extensions/assets"; + * + * const supported = isBurnSupported(["0x..."]); + * ``` + */ +export function isBurnSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "burn" function. + * @param options - The options for the burn function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeBurnParams } from "thirdweb/extensions/assets"; + * const result = encodeBurnParams({ + * amount: ..., + * }); + * ``` + */ +export function encodeBurnParams(options: BurnParams) { + return encodeAbiParameters(FN_INPUTS, [options.amount]); +} + +/** + * Encodes the "burn" function into a Hex string with its parameters. + * @param options - The options for the burn function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeBurn } from "thirdweb/extensions/assets"; + * const result = encodeBurn({ + * amount: ..., + * }); + * ``` + */ +export function encodeBurn(options: BurnParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeBurnParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "burn" function on the contract. + * @param options - The options for the "burn" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { burn } from "thirdweb/extensions/assets"; + * + * const transaction = burn({ + * contract, + * amount: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function burn( + options: BaseTransactionOptions< + | BurnParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.amount] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts new file mode 100644 index 00000000000..fd9bdeb8ac7 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts @@ -0,0 +1,145 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "burnFrom" function. + */ +export type BurnFromParams = WithOverrides<{ + from: AbiParameterToPrimitiveType<{ type: "address"; name: "from" }>; + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; +}>; + +export const FN_SELECTOR = "0x79cc6790" as const; +const FN_INPUTS = [ + { + type: "address", + name: "from", + }, + { + type: "uint256", + name: "amount", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `burnFrom` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `burnFrom` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isBurnFromSupported } from "thirdweb/extensions/assets"; + * + * const supported = isBurnFromSupported(["0x..."]); + * ``` + */ +export function isBurnFromSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "burnFrom" function. + * @param options - The options for the burnFrom function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeBurnFromParams } from "thirdweb/extensions/assets"; + * const result = encodeBurnFromParams({ + * from: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeBurnFromParams(options: BurnFromParams) { + return encodeAbiParameters(FN_INPUTS, [options.from, options.amount]); +} + +/** + * Encodes the "burnFrom" function into a Hex string with its parameters. + * @param options - The options for the burnFrom function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeBurnFrom } from "thirdweb/extensions/assets"; + * const result = encodeBurnFrom({ + * from: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeBurnFrom(options: BurnFromParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeBurnFromParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "burnFrom" function on the contract. + * @param options - The options for the "burnFrom" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { burnFrom } from "thirdweb/extensions/assets"; + * + * const transaction = burnFrom({ + * contract, + * from: ..., + * amount: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function burnFrom( + options: BaseTransactionOptions< + | BurnFromParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.from, resolvedOptions.amount] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts new file mode 100644 index 00000000000..a1e60004b43 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x54d1f13d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `cancelOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCancelOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCancelOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. + * @param options - The options for the "cancelOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { cancelOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = cancelOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function cancelOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts new file mode 100644 index 00000000000..c4bf81966fe --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "completeOwnershipHandover" function. + */ +export type CompleteOwnershipHandoverParams = WithOverrides<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}>; + +export const FN_SELECTOR = "0xf04e283e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `completeOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCompleteOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "completeOwnershipHandover" function. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/assets"; + * const result = encodeCompleteOwnershipHandoverParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandoverParams( + options: CompleteOwnershipHandoverParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/assets"; + * const result = encodeCompleteOwnershipHandover({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandover( + options: CompleteOwnershipHandoverParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCompleteOwnershipHandoverParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. + * @param options - The options for the "completeOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { completeOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = completeOwnershipHandover({ + * contract, + * pendingOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function completeOwnershipHandover( + options: BaseTransactionOptions< + | CompleteOwnershipHandoverParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.pendingOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts index a9194516924..4787e7cf6f3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -28,24 +28,24 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0x30a8ff4e" as const; const FN_INPUTS = [ { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_maxSupply", type: "uint256", + name: "_maxSupply", }, { - name: "_owner", type: "address", + name: "_owner", }, ] as const; const FN_OUTPUTS = [] as const; @@ -161,19 +161,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -185,5 +174,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts new file mode 100644 index 00000000000..472b88b0954 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts @@ -0,0 +1,201 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "permit" function. + */ +export type PermitParams = WithOverrides<{ + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + spender: AbiParameterToPrimitiveType<{ type: "address"; name: "spender" }>; + value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; + deadline: AbiParameterToPrimitiveType<{ type: "uint256"; name: "deadline" }>; + v: AbiParameterToPrimitiveType<{ type: "uint8"; name: "v" }>; + r: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "r" }>; + s: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "s" }>; +}>; + +export const FN_SELECTOR = "0xd505accf" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, + { + type: "address", + name: "spender", + }, + { + type: "uint256", + name: "value", + }, + { + type: "uint256", + name: "deadline", + }, + { + type: "uint8", + name: "v", + }, + { + type: "bytes32", + name: "r", + }, + { + type: "bytes32", + name: "s", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `permit` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `permit` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isPermitSupported } from "thirdweb/extensions/assets"; + * + * const supported = isPermitSupported(["0x..."]); + * ``` + */ +export function isPermitSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "permit" function. + * @param options - The options for the permit function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodePermitParams } from "thirdweb/extensions/assets"; + * const result = encodePermitParams({ + * owner: ..., + * spender: ..., + * value: ..., + * deadline: ..., + * v: ..., + * r: ..., + * s: ..., + * }); + * ``` + */ +export function encodePermitParams(options: PermitParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.owner, + options.spender, + options.value, + options.deadline, + options.v, + options.r, + options.s, + ]); +} + +/** + * Encodes the "permit" function into a Hex string with its parameters. + * @param options - The options for the permit function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodePermit } from "thirdweb/extensions/assets"; + * const result = encodePermit({ + * owner: ..., + * spender: ..., + * value: ..., + * deadline: ..., + * v: ..., + * r: ..., + * s: ..., + * }); + * ``` + */ +export function encodePermit(options: PermitParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodePermitParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "permit" function on the contract. + * @param options - The options for the "permit" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { permit } from "thirdweb/extensions/assets"; + * + * const transaction = permit({ + * contract, + * owner: ..., + * spender: ..., + * value: ..., + * deadline: ..., + * v: ..., + * r: ..., + * s: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function permit( + options: BaseTransactionOptions< + | PermitParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.owner, + resolvedOptions.spender, + resolvedOptions.value, + resolvedOptions.deadline, + resolvedOptions.v, + resolvedOptions.r, + resolvedOptions.s, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts new file mode 100644 index 00000000000..7b8b575e3b4 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts @@ -0,0 +1,50 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x715018a6" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceOwnership` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRenounceOwnershipSupported } from "thirdweb/extensions/assets"; + * + * const supported = isRenounceOwnershipSupported(["0x..."]); + * ``` + */ +export function isRenounceOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "renounceOwnership" function on the contract. + * @param options - The options for the "renounceOwnership" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceOwnership } from "thirdweb/extensions/assets"; + * + * const transaction = renounceOwnership(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceOwnership(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts new file mode 100644 index 00000000000..e0744619fae --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x25692962" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `requestOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isRequestOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isRequestOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. + * @param options - The options for the "requestOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { requestOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = requestOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function requestOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts new file mode 100644 index 00000000000..432d7cc92dd --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts @@ -0,0 +1,142 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setContractURI" function. + */ +export type SetContractURIParams = WithOverrides<{ + contractURI: AbiParameterToPrimitiveType<{ + type: "string"; + name: "_contractURI"; + }>; +}>; + +export const FN_SELECTOR = "0x938e3d7b" as const; +const FN_INPUTS = [ + { + type: "string", + name: "_contractURI", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setContractURI` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setContractURI` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSetContractURISupported } from "thirdweb/extensions/assets"; + * + * const supported = isSetContractURISupported(["0x..."]); + * ``` + */ +export function isSetContractURISupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setContractURI" function. + * @param options - The options for the setContractURI function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetContractURIParams } from "thirdweb/extensions/assets"; + * const result = encodeSetContractURIParams({ + * contractURI: ..., + * }); + * ``` + */ +export function encodeSetContractURIParams(options: SetContractURIParams) { + return encodeAbiParameters(FN_INPUTS, [options.contractURI]); +} + +/** + * Encodes the "setContractURI" function into a Hex string with its parameters. + * @param options - The options for the setContractURI function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetContractURI } from "thirdweb/extensions/assets"; + * const result = encodeSetContractURI({ + * contractURI: ..., + * }); + * ``` + */ +export function encodeSetContractURI(options: SetContractURIParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetContractURIParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setContractURI" function on the contract. + * @param options - The options for the "setContractURI" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setContractURI } from "thirdweb/extensions/assets"; + * + * const transaction = setContractURI({ + * contract, + * contractURI: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setContractURI( + options: BaseTransactionOptions< + | SetContractURIParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.contractURI] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts new file mode 100644 index 00000000000..ec9cf538807 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts @@ -0,0 +1,149 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transfer" function. + */ +export type TransferParams = WithOverrides<{ + to: AbiParameterToPrimitiveType<{ type: "address"; name: "to" }>; + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; +}>; + +export const FN_SELECTOR = "0xa9059cbb" as const; +const FN_INPUTS = [ + { + type: "address", + name: "to", + }, + { + type: "uint256", + name: "amount", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `transfer` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transfer` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isTransferSupported } from "thirdweb/extensions/assets"; + * + * const supported = isTransferSupported(["0x..."]); + * ``` + */ +export function isTransferSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transfer" function. + * @param options - The options for the transfer function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferParams } from "thirdweb/extensions/assets"; + * const result = encodeTransferParams({ + * to: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeTransferParams(options: TransferParams) { + return encodeAbiParameters(FN_INPUTS, [options.to, options.amount]); +} + +/** + * Encodes the "transfer" function into a Hex string with its parameters. + * @param options - The options for the transfer function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransfer } from "thirdweb/extensions/assets"; + * const result = encodeTransfer({ + * to: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeTransfer(options: TransferParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transfer" function on the contract. + * @param options - The options for the "transfer" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transfer } from "thirdweb/extensions/assets"; + * + * const transaction = transfer({ + * contract, + * to: ..., + * amount: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transfer( + options: BaseTransactionOptions< + | TransferParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.to, resolvedOptions.amount] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts new file mode 100644 index 00000000000..ae3ed16352b --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts @@ -0,0 +1,167 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferFrom" function. + */ +export type TransferFromParams = WithOverrides<{ + from: AbiParameterToPrimitiveType<{ type: "address"; name: "from" }>; + to: AbiParameterToPrimitiveType<{ type: "address"; name: "to" }>; + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; +}>; + +export const FN_SELECTOR = "0x23b872dd" as const; +const FN_INPUTS = [ + { + type: "address", + name: "from", + }, + { + type: "address", + name: "to", + }, + { + type: "uint256", + name: "amount", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `transferFrom` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferFrom` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isTransferFromSupported } from "thirdweb/extensions/assets"; + * + * const supported = isTransferFromSupported(["0x..."]); + * ``` + */ +export function isTransferFromSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferFrom" function. + * @param options - The options for the transferFrom function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferFromParams } from "thirdweb/extensions/assets"; + * const result = encodeTransferFromParams({ + * from: ..., + * to: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeTransferFromParams(options: TransferFromParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.from, + options.to, + options.amount, + ]); +} + +/** + * Encodes the "transferFrom" function into a Hex string with its parameters. + * @param options - The options for the transferFrom function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferFrom } from "thirdweb/extensions/assets"; + * const result = encodeTransferFrom({ + * from: ..., + * to: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeTransferFrom(options: TransferFromParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferFromParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferFrom" function on the contract. + * @param options - The options for the "transferFrom" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferFrom } from "thirdweb/extensions/assets"; + * + * const transaction = transferFrom({ + * contract, + * from: ..., + * to: ..., + * amount: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferFrom( + options: BaseTransactionOptions< + | TransferFromParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.from, + resolvedOptions.to, + resolvedOptions.amount, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts new file mode 100644 index 00000000000..36f0df68e14 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts @@ -0,0 +1,141 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferOwnership" function. + */ +export type TransferOwnershipParams = WithOverrides<{ + newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; +}>; + +export const FN_SELECTOR = "0xf2fde38b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `transferOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferOwnership` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isTransferOwnershipSupported } from "thirdweb/extensions/assets"; + * + * const supported = isTransferOwnershipSupported(["0x..."]); + * ``` + */ +export function isTransferOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferOwnership" function. + * @param options - The options for the transferOwnership function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferOwnershipParams } from "thirdweb/extensions/assets"; + * const result = encodeTransferOwnershipParams({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnershipParams( + options: TransferOwnershipParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.newOwner]); +} + +/** + * Encodes the "transferOwnership" function into a Hex string with its parameters. + * @param options - The options for the transferOwnership function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferOwnership } from "thirdweb/extensions/assets"; + * const result = encodeTransferOwnership({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnership(options: TransferOwnershipParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferOwnershipParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferOwnership" function on the contract. + * @param options - The options for the "transferOwnership" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferOwnership } from "thirdweb/extensions/assets"; + * + * const transaction = transferOwnership({ + * contract, + * newOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferOwnership( + options: BaseTransactionOptions< + | TransferOwnershipParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AirdropUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AirdropUpdated.ts new file mode 100644 index 00000000000..23caf5512ad --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AirdropUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the AirdropUpdated event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { airdropUpdatedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * airdropUpdatedEvent() + * ], + * }); + * ``` + */ +export function airdropUpdatedEvent() { + return prepareEvent({ + signature: "event AirdropUpdated(address airdrop)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.ts index 95291f68765..96c1d21407b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetCreated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AssetCreated" event. @@ -40,8 +40,8 @@ export type AssetCreatedEventFilters = Partial<{ */ export function assetCreatedEvent(filters: AssetCreatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event AssetCreated(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetDistributed.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetDistributed.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/AssetDistributed.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetDistributed.ts diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/ImplementationAdded.ts similarity index 97% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/ImplementationAdded.ts index 81b10e03836..ea39ab990d0 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/ImplementationAdded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/ImplementationAdded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ImplementationAdded" event. @@ -36,8 +36,8 @@ export function implementationAddedEvent( filters: ImplementationAddedEventFilters = {}, ) { return prepareEvent({ - filters, signature: - "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes32 createHookData)", + "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes createHookData)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Initialized.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Initialized.ts new file mode 100644 index 00000000000..88705c10a63 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Initialized.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the Initialized event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { initializedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * initializedEvent() + * ], + * }); + * ``` + */ +export function initializedEvent() { + return prepareEvent({ + signature: "event Initialized(uint64 version)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts new file mode 100644 index 00000000000..2ab8996b8d3 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverCanceled" event. + */ +export type OwnershipHandoverCanceledEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverCanceled event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverCanceledEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverCanceledEvent( + filters: OwnershipHandoverCanceledEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts new file mode 100644 index 00000000000..a498506409a --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverRequested" event. + */ +export type OwnershipHandoverRequestedEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverRequested event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverRequestedEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverRequestedEvent( + filters: OwnershipHandoverRequestedEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts new file mode 100644 index 00000000000..b1be6e750e1 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipTransferred" event. + */ +export type OwnershipTransferredEventFilters = Partial<{ + oldOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "oldOwner"; + indexed: true; + }>; + newOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipTransferred event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipTransferredEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipTransferredEvent({ + * oldOwner: ..., + * newOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipTransferredEvent( + filters: OwnershipTransferredEventFilters = {}, +) { + return prepareEvent({ + signature: + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RewardLockerUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RewardLockerUpdated.ts new file mode 100644 index 00000000000..5f070ae80d8 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RewardLockerUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the RewardLockerUpdated event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { rewardLockerUpdatedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * rewardLockerUpdatedEvent() + * ], + * }); + * ``` + */ +export function rewardLockerUpdatedEvent() { + return prepareEvent({ + signature: "event RewardLockerUpdated(address locker)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RouterUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RouterUpdated.ts new file mode 100644 index 00000000000..b622f2188f4 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RouterUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the RouterUpdated event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { routerUpdatedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * routerUpdatedEvent() + * ], + * }); + * ``` + */ +export function routerUpdatedEvent() { + return prepareEvent({ + signature: "event RouterUpdated(address router)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Upgraded.ts similarity index 52% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Upgraded.ts index c2fa8133d8c..5ab5634fb24 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RouterUpdated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Upgraded.ts @@ -1,40 +1,40 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** - * Represents the filters for the "RouterUpdated" event. + * Represents the filters for the "Upgraded" event. */ -export type RouterUpdatedEventFilters = Partial<{ - router: AbiParameterToPrimitiveType<{ +export type UpgradedEventFilters = Partial<{ + implementation: AbiParameterToPrimitiveType<{ type: "address"; - name: "router"; + name: "implementation"; indexed: true; }>; }>; /** - * Creates an event object for the RouterUpdated event. + * Creates an event object for the Upgraded event. * @param filters - Optional filters to apply to the event. * @returns The prepared event object. * @extension ASSETS * @example * ```ts * import { getContractEvents } from "thirdweb"; - * import { routerUpdatedEvent } from "thirdweb/extensions/assets"; + * import { upgradedEvent } from "thirdweb/extensions/assets"; * * const events = await getContractEvents({ * contract, * events: [ - * routerUpdatedEvent({ - * router: ..., + * upgradedEvent({ + * implementation: ..., * }) * ], * }); * ``` */ -export function routerUpdatedEvent(filters: RouterUpdatedEventFilters = {}) { +export function upgradedEvent(filters: UpgradedEventFilters = {}) { return prepareEvent({ + signature: "event Upgraded(address indexed implementation)", filters, - signature: "event RouterUpdated(address indexed router)", }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts new file mode 100644 index 00000000000..d800984ead2 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts @@ -0,0 +1,132 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "decodeOwnerFromInitData" function. + */ +export type DecodeOwnerFromInitDataParams = { + data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; +}; + +export const FN_SELECTOR = "0xb4d9e9c2" as const; +const FN_INPUTS = [ + { + type: "bytes", + name: "data", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "owner", + }, +] as const; + +/** + * Checks if the `decodeOwnerFromInitData` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `decodeOwnerFromInitData` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isDecodeOwnerFromInitDataSupported } from "thirdweb/extensions/assets"; + * const supported = isDecodeOwnerFromInitDataSupported(["0x..."]); + * ``` + */ +export function isDecodeOwnerFromInitDataSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "decodeOwnerFromInitData" function. + * @param options - The options for the decodeOwnerFromInitData function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeDecodeOwnerFromInitDataParams } from "thirdweb/extensions/assets"; + * const result = encodeDecodeOwnerFromInitDataParams({ + * data: ..., + * }); + * ``` + */ +export function encodeDecodeOwnerFromInitDataParams( + options: DecodeOwnerFromInitDataParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.data]); +} + +/** + * Encodes the "decodeOwnerFromInitData" function into a Hex string with its parameters. + * @param options - The options for the decodeOwnerFromInitData function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeDecodeOwnerFromInitData } from "thirdweb/extensions/assets"; + * const result = encodeDecodeOwnerFromInitData({ + * data: ..., + * }); + * ``` + */ +export function encodeDecodeOwnerFromInitData( + options: DecodeOwnerFromInitDataParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeDecodeOwnerFromInitDataParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the decodeOwnerFromInitData function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeDecodeOwnerFromInitDataResult } from "thirdweb/extensions/assets"; + * const result = decodeDecodeOwnerFromInitDataResultResult("..."); + * ``` + */ +export function decodeDecodeOwnerFromInitDataResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "decodeOwnerFromInitData" function on the contract. + * @param options - The options for the decodeOwnerFromInitData function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { decodeOwnerFromInitData } from "thirdweb/extensions/assets"; + * + * const result = await decodeOwnerFromInitData({ + * contract, + * data: ..., + * }); + * + * ``` + */ +export async function decodeOwnerFromInitData( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.data], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts new file mode 100644 index 00000000000..658c082cc3e --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xd25f82a0" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "airdrop", + }, +] as const; + +/** + * Checks if the `getAirdrop` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getAirdrop` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isGetAirdropSupported } from "thirdweb/extensions/assets"; + * const supported = isGetAirdropSupported(["0x..."]); + * ``` + */ +export function isGetAirdropSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the getAirdrop function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeGetAirdropResult } from "thirdweb/extensions/assets"; + * const result = decodeGetAirdropResultResult("..."); + * ``` + */ +export function decodeGetAirdropResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getAirdrop" function on the contract. + * @param options - The options for the getAirdrop function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { getAirdrop } from "thirdweb/extensions/assets"; + * + * const result = await getAirdrop({ + * contract, + * }); + * + * ``` + */ +export async function getAirdrop(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getImplementation.ts similarity index 99% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getImplementation.ts index 61f2a869cb3..5e705cc3f3d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getImplementation.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getImplementation.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getImplementation" function. @@ -19,35 +19,36 @@ export type GetImplementationParams = { export const FN_SELECTOR = "0x3c2e0828" as const; const FN_INPUTS = [ { - name: "contractId", type: "bytes32", + name: "contractId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "config", components: [ { - name: "contractId", type: "bytes32", + name: "contractId", }, { - name: "implementation", type: "address", + name: "implementation", }, { - name: "implementationType", type: "uint8", + name: "implementationType", }, { - name: "createHook", type: "uint8", + name: "createHook", }, { - name: "createHookData", type: "bytes", + name: "createHookData", }, ], - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardLocker.ts similarity index 99% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardLocker.ts index 37080c9174b..dbe2181ab56 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRewardLocker.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardLocker.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb0188df2" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "rewardLocker", type: "address", + name: "rewardLocker", }, ] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardPosition.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardPosition.ts new file mode 100644 index 00000000000..d4ac51a2f52 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardPosition.ts @@ -0,0 +1,149 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "getRewardPosition" function. + */ +export type GetRewardPositionParams = { + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; +}; + +export const FN_SELECTOR = "0x61d74a29" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "tuple", + components: [ + { + type: "address", + name: "positionManager", + }, + { + type: "uint256", + name: "tokenId", + }, + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "uint16", + name: "referrerBps", + }, + ], + }, +] as const; + +/** + * Checks if the `getRewardPosition` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getRewardPosition` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isGetRewardPositionSupported } from "thirdweb/extensions/assets"; + * const supported = isGetRewardPositionSupported(["0x..."]); + * ``` + */ +export function isGetRewardPositionSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "getRewardPosition" function. + * @param options - The options for the getRewardPosition function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeGetRewardPositionParams } from "thirdweb/extensions/assets"; + * const result = encodeGetRewardPositionParams({ + * asset: ..., + * }); + * ``` + */ +export function encodeGetRewardPositionParams( + options: GetRewardPositionParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.asset]); +} + +/** + * Encodes the "getRewardPosition" function into a Hex string with its parameters. + * @param options - The options for the getRewardPosition function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeGetRewardPosition } from "thirdweb/extensions/assets"; + * const result = encodeGetRewardPosition({ + * asset: ..., + * }); + * ``` + */ +export function encodeGetRewardPosition(options: GetRewardPositionParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGetRewardPositionParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the getRewardPosition function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeGetRewardPositionResult } from "thirdweb/extensions/assets"; + * const result = decodeGetRewardPositionResultResult("..."); + * ``` + */ +export function decodeGetRewardPositionResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getRewardPosition" function on the contract. + * @param options - The options for the getRewardPosition function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { getRewardPosition } from "thirdweb/extensions/assets"; + * + * const result = await getRewardPosition({ + * contract, + * asset: ..., + * }); + * + * ``` + */ +export async function getRewardPosition( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.asset], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.ts similarity index 99% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.ts index a1498baac8a..f90e6da4cde 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/read/getRouter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb0f479a1" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "router", type: "address", + name: "router", }, ] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts new file mode 100644 index 00000000000..3d9bda9fed2 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts @@ -0,0 +1,165 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "guardSalt" function. + */ +export type GuardSaltParams = { + salt: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "salt" }>; + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + contractInitData: AbiParameterToPrimitiveType<{ + type: "bytes"; + name: "contractInitData"; + }>; + hookInitData: AbiParameterToPrimitiveType<{ + type: "bytes"; + name: "hookInitData"; + }>; +}; + +export const FN_SELECTOR = "0xd5ebb1df" as const; +const FN_INPUTS = [ + { + type: "bytes32", + name: "salt", + }, + { + type: "address", + name: "creator", + }, + { + type: "bytes", + name: "contractInitData", + }, + { + type: "bytes", + name: "hookInitData", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bytes32", + }, +] as const; + +/** + * Checks if the `guardSalt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `guardSalt` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isGuardSaltSupported } from "thirdweb/extensions/assets"; + * const supported = isGuardSaltSupported(["0x..."]); + * ``` + */ +export function isGuardSaltSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "guardSalt" function. + * @param options - The options for the guardSalt function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeGuardSaltParams } from "thirdweb/extensions/assets"; + * const result = encodeGuardSaltParams({ + * salt: ..., + * creator: ..., + * contractInitData: ..., + * hookInitData: ..., + * }); + * ``` + */ +export function encodeGuardSaltParams(options: GuardSaltParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.salt, + options.creator, + options.contractInitData, + options.hookInitData, + ]); +} + +/** + * Encodes the "guardSalt" function into a Hex string with its parameters. + * @param options - The options for the guardSalt function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeGuardSalt } from "thirdweb/extensions/assets"; + * const result = encodeGuardSalt({ + * salt: ..., + * creator: ..., + * contractInitData: ..., + * hookInitData: ..., + * }); + * ``` + */ +export function encodeGuardSalt(options: GuardSaltParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGuardSaltParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the guardSalt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeGuardSaltResult } from "thirdweb/extensions/assets"; + * const result = decodeGuardSaltResultResult("..."); + * ``` + */ +export function decodeGuardSaltResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "guardSalt" function on the contract. + * @param options - The options for the guardSalt function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { guardSalt } from "thirdweb/extensions/assets"; + * + * const result = await guardSalt({ + * contract, + * salt: ..., + * creator: ..., + * contractInitData: ..., + * hookInitData: ..., + * }); + * + * ``` + */ +export async function guardSalt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [ + options.salt, + options.creator, + options.contractInitData, + options.hookInitData, + ], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts new file mode 100644 index 00000000000..9903177bd12 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x8da5cb5b" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "result", + }, +] as const; + +/** + * Checks if the `owner` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `owner` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isOwnerSupported } from "thirdweb/extensions/assets"; + * const supported = isOwnerSupported(["0x..."]); + * ``` + */ +export function isOwnerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the owner function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeOwnerResult } from "thirdweb/extensions/assets"; + * const result = decodeOwnerResultResult("..."); + * ``` + */ +export function decodeOwnerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "owner" function on the contract. + * @param options - The options for the owner function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { owner } from "thirdweb/extensions/assets"; + * + * const result = await owner({ + * contract, + * }); + * + * ``` + */ +export async function owner(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts new file mode 100644 index 00000000000..5625095f262 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts @@ -0,0 +1,135 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "ownershipHandoverExpiresAt" function. + */ +export type OwnershipHandoverExpiresAtParams = { + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}; + +export const FN_SELECTOR = "0xfee81cf4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/assets"; + * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); + * ``` + */ +export function isOwnershipHandoverExpiresAtSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "ownershipHandoverExpiresAt" function. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/assets"; + * const result = encodeOwnershipHandoverExpiresAtParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAtParams( + options: OwnershipHandoverExpiresAtParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/assets"; + * const result = encodeOwnershipHandoverExpiresAt({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAt( + options: OwnershipHandoverExpiresAtParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeOwnershipHandoverExpiresAtParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the ownershipHandoverExpiresAt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/assets"; + * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); + * ``` + */ +export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ownershipHandoverExpiresAt" function on the contract. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/assets"; + * + * const result = await ownershipHandoverExpiresAt({ + * contract, + * pendingOwner: ..., + * }); + * + * ``` + */ +export async function ownershipHandoverExpiresAt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.pendingOwner], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts new file mode 100644 index 00000000000..79e47ec49be --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts @@ -0,0 +1,183 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "predictAssetAddress" function. + */ +export type PredictAssetAddressParams = { + contractId: AbiParameterToPrimitiveType<{ + type: "bytes32"; + name: "contractId"; + }>; + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "uint256"; name: "amount" }, + { type: "address"; name: "referrer" }, + { type: "bytes32"; name: "salt" }, + { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}; + +export const FN_SELECTOR = "0x8fc23f92" as const; +const FN_INPUTS = [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "creator", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "uint256", + name: "amount", + }, + { + type: "address", + name: "referrer", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "predicted", + }, +] as const; + +/** + * Checks if the `predictAssetAddress` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `predictAssetAddress` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isPredictAssetAddressSupported } from "thirdweb/extensions/assets"; + * const supported = isPredictAssetAddressSupported(["0x..."]); + * ``` + */ +export function isPredictAssetAddressSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "predictAssetAddress" function. + * @param options - The options for the predictAssetAddress function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodePredictAssetAddressParams } from "thirdweb/extensions/assets"; + * const result = encodePredictAssetAddressParams({ + * contractId: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodePredictAssetAddressParams( + options: PredictAssetAddressParams, +) { + return encodeAbiParameters(FN_INPUTS, [ + options.contractId, + options.creator, + options.params, + ]); +} + +/** + * Encodes the "predictAssetAddress" function into a Hex string with its parameters. + * @param options - The options for the predictAssetAddress function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodePredictAssetAddress } from "thirdweb/extensions/assets"; + * const result = encodePredictAssetAddress({ + * contractId: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodePredictAssetAddress(options: PredictAssetAddressParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodePredictAssetAddressParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the predictAssetAddress function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodePredictAssetAddressResult } from "thirdweb/extensions/assets"; + * const result = decodePredictAssetAddressResultResult("..."); + * ``` + */ +export function decodePredictAssetAddressResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "predictAssetAddress" function on the contract. + * @param options - The options for the predictAssetAddress function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { predictAssetAddress } from "thirdweb/extensions/assets"; + * + * const result = await predictAssetAddress({ + * contract, + * contractId: ..., + * creator: ..., + * params: ..., + * }); + * + * ``` + */ +export async function predictAssetAddress( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.contractId, options.creator, options.params], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts new file mode 100644 index 00000000000..779c4909a3a --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts @@ -0,0 +1,216 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "predictAssetAddressByConfig" function. + */ +export type PredictAssetAddressByConfigParams = { + config: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "config"; + components: [ + { type: "bytes32"; name: "contractId" }, + { type: "address"; name: "implementation" }, + { type: "uint8"; name: "implementationType" }, + { type: "uint8"; name: "createHook" }, + { type: "bytes"; name: "createHookData" }, + ]; + }>; + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "uint256"; name: "amount" }, + { type: "address"; name: "referrer" }, + { type: "bytes32"; name: "salt" }, + { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}; + +export const FN_SELECTOR = "0x3e49076d" as const; +const FN_INPUTS = [ + { + type: "tuple", + name: "config", + components: [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "implementation", + }, + { + type: "uint8", + name: "implementationType", + }, + { + type: "uint8", + name: "createHook", + }, + { + type: "bytes", + name: "createHookData", + }, + ], + }, + { + type: "address", + name: "creator", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "uint256", + name: "amount", + }, + { + type: "address", + name: "referrer", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "predicted", + }, +] as const; + +/** + * Checks if the `predictAssetAddressByConfig` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `predictAssetAddressByConfig` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isPredictAssetAddressByConfigSupported } from "thirdweb/extensions/assets"; + * const supported = isPredictAssetAddressByConfigSupported(["0x..."]); + * ``` + */ +export function isPredictAssetAddressByConfigSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "predictAssetAddressByConfig" function. + * @param options - The options for the predictAssetAddressByConfig function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodePredictAssetAddressByConfigParams } from "thirdweb/extensions/assets"; + * const result = encodePredictAssetAddressByConfigParams({ + * config: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodePredictAssetAddressByConfigParams( + options: PredictAssetAddressByConfigParams, +) { + return encodeAbiParameters(FN_INPUTS, [ + options.config, + options.creator, + options.params, + ]); +} + +/** + * Encodes the "predictAssetAddressByConfig" function into a Hex string with its parameters. + * @param options - The options for the predictAssetAddressByConfig function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodePredictAssetAddressByConfig } from "thirdweb/extensions/assets"; + * const result = encodePredictAssetAddressByConfig({ + * config: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodePredictAssetAddressByConfig( + options: PredictAssetAddressByConfigParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodePredictAssetAddressByConfigParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the predictAssetAddressByConfig function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodePredictAssetAddressByConfigResult } from "thirdweb/extensions/assets"; + * const result = decodePredictAssetAddressByConfigResultResult("..."); + * ``` + */ +export function decodePredictAssetAddressByConfigResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "predictAssetAddressByConfig" function on the contract. + * @param options - The options for the predictAssetAddressByConfig function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { predictAssetAddressByConfig } from "thirdweb/extensions/assets"; + * + * const result = await predictAssetAddressByConfig({ + * contract, + * config: ..., + * creator: ..., + * params: ..., + * }); + * + * ``` + */ +export async function predictAssetAddressByConfig( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.config, options.creator, options.params], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts new file mode 100644 index 00000000000..fd62cd8e007 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x52d1902d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "bytes32", + }, +] as const; + +/** + * Checks if the `proxiableUUID` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `proxiableUUID` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isProxiableUUIDSupported } from "thirdweb/extensions/assets"; + * const supported = isProxiableUUIDSupported(["0x..."]); + * ``` + */ +export function isProxiableUUIDSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the proxiableUUID function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeProxiableUUIDResult } from "thirdweb/extensions/assets"; + * const result = decodeProxiableUUIDResultResult("..."); + * ``` + */ +export function decodeProxiableUUIDResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "proxiableUUID" function on the contract. + * @param options - The options for the proxiableUUID function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { proxiableUUID } from "thirdweb/extensions/assets"; + * + * const result = await proxiableUUID({ + * contract, + * }); + * + * ``` + */ +export async function proxiableUUID(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/addImplementation.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/addImplementation.ts index 8d158c238a2..1928273a182 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/addImplementation.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/addImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addImplementation" function. @@ -29,34 +29,34 @@ export type AddImplementationParams = WithOverrides<{ export const FN_SELECTOR = "0x4bf8055d" as const; const FN_INPUTS = [ { + type: "tuple", + name: "config", components: [ { - name: "contractId", type: "bytes32", + name: "contractId", }, { - name: "implementation", type: "address", + name: "implementation", }, { - name: "implementationType", type: "uint8", + name: "implementationType", }, { - name: "createHook", type: "uint8", + name: "createHook", }, { - name: "createHookData", type: "bytes", + name: "createHookData", }, ], - name: "config", - type: "tuple", }, { - name: "isDefault", type: "bool", + name: "isDefault", }, ] as const; const FN_OUTPUTS = [] as const; @@ -159,23 +159,23 @@ export function addImplementation( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.config, resolvedOptions.isDefault] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/buyAsset.ts similarity index 98% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/buyAsset.ts index 8dec5f4df9b..390056c69ad 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/buyAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/buyAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "buyAsset" function. @@ -23,7 +23,7 @@ export type BuyAssetParams = WithOverrides<{ { type: "uint256"; name: "amountIn" }, { type: "uint256"; name: "minAmountOut" }, { type: "uint256"; name: "deadline" }, - { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, ]; }>; }>; @@ -31,52 +31,52 @@ export type BuyAssetParams = WithOverrides<{ export const FN_SELECTOR = "0x4af11f67" as const; const FN_INPUTS = [ { - name: "asset", type: "address", + name: "asset", }, { + type: "tuple", + name: "params", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "referrer", type: "address", + name: "referrer", }, { - name: "tokenIn", type: "address", + name: "tokenIn", }, { - name: "amountIn", type: "uint256", + name: "amountIn", }, { - name: "minAmountOut", type: "uint256", + name: "minAmountOut", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "data", type: "bytes", + name: "hookData", }, ], - name: "params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "amountIn", type: "uint256", + name: "amountIn", }, { - name: "amountOut", type: "uint256", + name: "amountOut", }, ] as const; @@ -174,23 +174,23 @@ export function buyAsset( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.asset, resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts new file mode 100644 index 00000000000..a1e60004b43 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x54d1f13d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `cancelOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCancelOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCancelOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. + * @param options - The options for the "cancelOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { cancelOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = cancelOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function cancelOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimRewards.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimRewards.ts new file mode 100644 index 00000000000..794f0c1f7b7 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimRewards.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "claimRewards" function. + */ +export type ClaimRewardsParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; +}>; + +export const FN_SELECTOR = "0xef5cfb8c" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `claimRewards` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `claimRewards` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isClaimRewardsSupported } from "thirdweb/extensions/assets"; + * + * const supported = isClaimRewardsSupported(["0x..."]); + * ``` + */ +export function isClaimRewardsSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "claimRewards" function. + * @param options - The options for the claimRewards function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeClaimRewardsParams } from "thirdweb/extensions/assets"; + * const result = encodeClaimRewardsParams({ + * asset: ..., + * }); + * ``` + */ +export function encodeClaimRewardsParams(options: ClaimRewardsParams) { + return encodeAbiParameters(FN_INPUTS, [options.asset]); +} + +/** + * Encodes the "claimRewards" function into a Hex string with its parameters. + * @param options - The options for the claimRewards function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeClaimRewards } from "thirdweb/extensions/assets"; + * const result = encodeClaimRewards({ + * asset: ..., + * }); + * ``` + */ +export function encodeClaimRewards(options: ClaimRewardsParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeClaimRewardsParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "claimRewards" function on the contract. + * @param options - The options for the "claimRewards" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { claimRewards } from "thirdweb/extensions/assets"; + * + * const transaction = claimRewards({ + * contract, + * asset: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function claimRewards( + options: BaseTransactionOptions< + | ClaimRewardsParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts new file mode 100644 index 00000000000..c4bf81966fe --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "completeOwnershipHandover" function. + */ +export type CompleteOwnershipHandoverParams = WithOverrides<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}>; + +export const FN_SELECTOR = "0xf04e283e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `completeOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCompleteOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "completeOwnershipHandover" function. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/assets"; + * const result = encodeCompleteOwnershipHandoverParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandoverParams( + options: CompleteOwnershipHandoverParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/assets"; + * const result = encodeCompleteOwnershipHandover({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandover( + options: CompleteOwnershipHandoverParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCompleteOwnershipHandoverParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. + * @param options - The options for the "completeOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { completeOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = completeOwnershipHandover({ + * contract, + * pendingOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function completeOwnershipHandover( + options: BaseTransactionOptions< + | CompleteOwnershipHandoverParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.pendingOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.ts index cbb24740e9c..3ab09e5350e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAsset" function. @@ -29,40 +29,40 @@ export type CreateAssetParams = WithOverrides<{ export const FN_SELECTOR = "0x58ac06bd" as const; const FN_INPUTS = [ { - name: "creator", type: "address", + name: "creator", }, { + type: "tuple", + name: "createParams", components: [ { - name: "amount", type: "uint256", + name: "amount", }, { - name: "referrer", type: "address", + name: "referrer", }, { - name: "salt", type: "bytes32", + name: "salt", }, { - name: "data", type: "bytes", + name: "data", }, { - name: "hookData", type: "bytes", + name: "hookData", }, ], - name: "createParams", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "asset", type: "address", + name: "asset", }, ] as const; @@ -165,23 +165,23 @@ export function createAsset( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.creator, resolvedOptions.createParams] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetById.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetById.ts index d3b420e1c29..5c79d94b26a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetById.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetById.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAssetById" function. @@ -33,44 +33,44 @@ export type CreateAssetByIdParams = WithOverrides<{ export const FN_SELECTOR = "0x1c8dd10a" as const; const FN_INPUTS = [ { - name: "contractId", type: "bytes32", + name: "contractId", }, { - name: "creator", type: "address", + name: "creator", }, { + type: "tuple", + name: "params", components: [ { - name: "amount", type: "uint256", + name: "amount", }, { - name: "referrer", type: "address", + name: "referrer", }, { - name: "salt", type: "bytes32", + name: "salt", }, { - name: "data", type: "bytes", + name: "data", }, { - name: "hookData", type: "bytes", + name: "hookData", }, ], - name: "params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "asset", type: "address", + name: "asset", }, ] as const; @@ -177,19 +177,8 @@ export function createAssetById( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -199,5 +188,16 @@ export function createAssetById( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts index 78ae878f899..4c3c7c73308 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/createAssetByImplementationConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAssetByImplementationConfig" function. @@ -40,66 +40,66 @@ export type CreateAssetByImplementationConfigParams = WithOverrides<{ export const FN_SELECTOR = "0x230ffc78" as const; const FN_INPUTS = [ { + type: "tuple", + name: "config", components: [ { - name: "contractId", type: "bytes32", + name: "contractId", }, { - name: "implementation", type: "address", + name: "implementation", }, { - name: "implementationType", type: "uint8", + name: "implementationType", }, { - name: "createHook", type: "uint8", + name: "createHook", }, { - name: "createHookData", type: "bytes", + name: "createHookData", }, ], - name: "config", - type: "tuple", }, { - name: "creator", type: "address", + name: "creator", }, { + type: "tuple", + name: "params", components: [ { - name: "amount", type: "uint256", + name: "amount", }, { - name: "referrer", type: "address", + name: "referrer", }, { - name: "salt", type: "bytes32", + name: "salt", }, { - name: "data", type: "bytes", + name: "data", }, { - name: "hookData", type: "bytes", + name: "hookData", }, ], - name: "params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "asset", type: "address", + name: "asset", }, ] as const; @@ -212,19 +212,8 @@ export function createAssetByImplementationConfig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -234,5 +223,16 @@ export function createAssetByImplementationConfig( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.ts index 1cc7ca4390c..49d845a11d2 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/distributeAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "distributeAsset" function. @@ -26,22 +26,22 @@ export type DistributeAssetParams = WithOverrides<{ export const FN_SELECTOR = "0x5954167a" as const; const FN_INPUTS = [ { - name: "asset", type: "address", + name: "asset", }, { + type: "tuple[]", + name: "contents", components: [ { - name: "amount", type: "uint256", + name: "amount", }, { - name: "recipient", type: "address", + name: "recipient", }, ], - name: "contents", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [] as const; @@ -142,23 +142,23 @@ export function distributeAsset( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.asset, resolvedOptions.contents] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/initialize.ts similarity index 91% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/initialize.ts index 9b2125c2130..9b4ed568539 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/initialize.ts @@ -1,38 +1,43 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. */ export type InitializeParams = WithOverrides<{ - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; - router: AbiParameterToPrimitiveType<{ type: "address"; name: "_router" }>; + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + router: AbiParameterToPrimitiveType<{ type: "address"; name: "router" }>; rewardLocker: AbiParameterToPrimitiveType<{ type: "address"; - name: "_rewardLocker"; + name: "rewardLocker"; }>; + airdrop: AbiParameterToPrimitiveType<{ type: "address"; name: "airdrop" }>; }>; -export const FN_SELECTOR = "0xc0c53b8b" as const; +export const FN_SELECTOR = "0xf8c8765e" as const; const FN_INPUTS = [ { - name: "_owner", type: "address", + name: "owner", }, { - name: "_router", type: "address", + name: "router", }, { - name: "_rewardLocker", type: "address", + name: "rewardLocker", + }, + { + type: "address", + name: "airdrop", }, ] as const; const FN_OUTPUTS = [] as const; @@ -68,6 +73,7 @@ export function isInitializeSupported(availableSelectors: string[]) { * owner: ..., * router: ..., * rewardLocker: ..., + * airdrop: ..., * }); * ``` */ @@ -76,6 +82,7 @@ export function encodeInitializeParams(options: InitializeParams) { options.owner, options.router, options.rewardLocker, + options.airdrop, ]); } @@ -91,6 +98,7 @@ export function encodeInitializeParams(options: InitializeParams) { * owner: ..., * router: ..., * rewardLocker: ..., + * airdrop: ..., * }); * ``` */ @@ -118,6 +126,7 @@ export function encodeInitialize(options: InitializeParams) { * owner: ..., * router: ..., * rewardLocker: ..., + * airdrop: ..., * overrides: { * ... * } @@ -140,27 +149,28 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ resolvedOptions.owner, resolvedOptions.router, resolvedOptions.rewardLocker, + resolvedOptions.airdrop, ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts similarity index 83% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts index c3f781b6a36..ff12a1e5de2 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/listAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "listAsset" function. @@ -17,44 +17,77 @@ export type ListAssetParams = WithOverrides<{ type: "tuple"; name: "params"; components: [ - { type: "address"; name: "tokenIn" }, - { type: "uint256"; name: "price" }, - { type: "uint256"; name: "duration" }, - { type: "bytes"; name: "data" }, + { type: "address"; name: "tokenOut" }, + { type: "uint256"; name: "pricePerUnit" }, + { type: "uint8"; name: "priceDenominator" }, + { type: "uint256"; name: "totalSupply" }, + { type: "uint48"; name: "startTime" }, + { type: "uint48"; name: "endTime" }, + { type: "address"; name: "hook" }, + { type: "bytes"; name: "createHookData" }, ]; }>; }>; -export const FN_SELECTOR = "0x80ac2260" as const; +export const FN_SELECTOR = "0xe83a685a" as const; const FN_INPUTS = [ { - name: "asset", type: "address", + name: "asset", }, { + type: "tuple", + name: "params", components: [ { - name: "tokenIn", type: "address", + name: "tokenOut", }, { - name: "price", type: "uint256", + name: "pricePerUnit", + }, + { + type: "uint8", + name: "priceDenominator", }, { - name: "duration", type: "uint256", + name: "totalSupply", + }, + { + type: "uint48", + name: "startTime", + }, + { + type: "uint48", + name: "endTime", + }, + { + type: "address", + name: "hook", }, { - name: "data", type: "bytes", + name: "createHookData", }, ], - name: "params", - type: "tuple", }, ] as const; -const FN_OUTPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "sale", + }, + { + type: "address", + name: "position", + }, + { + type: "uint256", + name: "positionId", + }, +] as const; /** * Checks if the `listAsset` method is supported by the given contract. @@ -152,23 +185,23 @@ export function listAsset( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.asset, resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts new file mode 100644 index 00000000000..7b8b575e3b4 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts @@ -0,0 +1,50 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x715018a6" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceOwnership` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRenounceOwnershipSupported } from "thirdweb/extensions/assets"; + * + * const supported = isRenounceOwnershipSupported(["0x..."]); + * ``` + */ +export function isRenounceOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "renounceOwnership" function on the contract. + * @param options - The options for the "renounceOwnership" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceOwnership } from "thirdweb/extensions/assets"; + * + * const transaction = renounceOwnership(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceOwnership(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts new file mode 100644 index 00000000000..e0744619fae --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x25692962" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `requestOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isRequestOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isRequestOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. + * @param options - The options for the "requestOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { requestOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = requestOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function requestOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/sellAsset.ts similarity index 98% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/sellAsset.ts index c8be8f33fc2..df1ea6b0785 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/sellAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/sellAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "sellAsset" function. @@ -22,7 +22,7 @@ export type SellAssetParams = WithOverrides<{ { type: "uint256"; name: "amountIn" }, { type: "uint256"; name: "minAmountOut" }, { type: "uint256"; name: "deadline" }, - { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, ]; }>; }>; @@ -30,48 +30,48 @@ export type SellAssetParams = WithOverrides<{ export const FN_SELECTOR = "0x5de3eedb" as const; const FN_INPUTS = [ { - name: "asset", type: "address", + name: "asset", }, { + type: "tuple", + name: "params", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "tokenOut", type: "address", + name: "tokenOut", }, { - name: "amountIn", type: "uint256", + name: "amountIn", }, { - name: "minAmountOut", type: "uint256", + name: "minAmountOut", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "data", type: "bytes", + name: "hookData", }, ], - name: "params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "amountIn", type: "uint256", + name: "amountIn", }, { - name: "amountOut", type: "uint256", + name: "amountOut", }, ] as const; @@ -171,23 +171,23 @@ export function sellAsset( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.asset, resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts new file mode 100644 index 00000000000..98ea672ed10 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setAirdrop" function. + */ +export type SetAirdropParams = WithOverrides<{ + airdrop: AbiParameterToPrimitiveType<{ type: "address"; name: "airdrop" }>; +}>; + +export const FN_SELECTOR = "0x72820dbc" as const; +const FN_INPUTS = [ + { + type: "address", + name: "airdrop", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setAirdrop` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setAirdrop` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSetAirdropSupported } from "thirdweb/extensions/assets"; + * + * const supported = isSetAirdropSupported(["0x..."]); + * ``` + */ +export function isSetAirdropSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setAirdrop" function. + * @param options - The options for the setAirdrop function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetAirdropParams } from "thirdweb/extensions/assets"; + * const result = encodeSetAirdropParams({ + * airdrop: ..., + * }); + * ``` + */ +export function encodeSetAirdropParams(options: SetAirdropParams) { + return encodeAbiParameters(FN_INPUTS, [options.airdrop]); +} + +/** + * Encodes the "setAirdrop" function into a Hex string with its parameters. + * @param options - The options for the setAirdrop function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetAirdrop } from "thirdweb/extensions/assets"; + * const result = encodeSetAirdrop({ + * airdrop: ..., + * }); + * ``` + */ +export function encodeSetAirdrop(options: SetAirdropParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetAirdropParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setAirdrop" function on the contract. + * @param options - The options for the "setAirdrop" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setAirdrop } from "thirdweb/extensions/assets"; + * + * const transaction = setAirdrop({ + * contract, + * airdrop: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setAirdrop( + options: BaseTransactionOptions< + | SetAirdropParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.airdrop] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRewardLocker.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRewardLocker.ts index 37d628ec69c..159899d75b1 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRewardLocker.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRewardLocker.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRewardLocker" function. @@ -21,8 +21,8 @@ export type SetRewardLockerParams = WithOverrides<{ export const FN_SELECTOR = "0xeb7fb197" as const; const FN_INPUTS = [ { - name: "rewardLocker", type: "address", + name: "rewardLocker", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setRewardLocker( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.rewardLocker] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRouter.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRouter.ts index 4fb04052854..5245d9c150d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/write/setRouter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRouter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRouter" function. @@ -18,8 +18,8 @@ export type SetRouterParams = WithOverrides<{ export const FN_SELECTOR = "0xc0d78655" as const; const FN_INPUTS = [ { - name: "router", type: "address", + name: "router", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function setRouter( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.router] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts new file mode 100644 index 00000000000..36f0df68e14 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts @@ -0,0 +1,141 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferOwnership" function. + */ +export type TransferOwnershipParams = WithOverrides<{ + newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; +}>; + +export const FN_SELECTOR = "0xf2fde38b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `transferOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferOwnership` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isTransferOwnershipSupported } from "thirdweb/extensions/assets"; + * + * const supported = isTransferOwnershipSupported(["0x..."]); + * ``` + */ +export function isTransferOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferOwnership" function. + * @param options - The options for the transferOwnership function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferOwnershipParams } from "thirdweb/extensions/assets"; + * const result = encodeTransferOwnershipParams({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnershipParams( + options: TransferOwnershipParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.newOwner]); +} + +/** + * Encodes the "transferOwnership" function into a Hex string with its parameters. + * @param options - The options for the transferOwnership function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferOwnership } from "thirdweb/extensions/assets"; + * const result = encodeTransferOwnership({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnership(options: TransferOwnershipParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferOwnershipParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferOwnership" function on the contract. + * @param options - The options for the "transferOwnership" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferOwnership } from "thirdweb/extensions/assets"; + * + * const transaction = transferOwnership({ + * contract, + * newOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferOwnership( + options: BaseTransactionOptions< + | TransferOwnershipParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts new file mode 100644 index 00000000000..63e1152f422 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts @@ -0,0 +1,153 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "upgradeToAndCall" function. + */ +export type UpgradeToAndCallParams = WithOverrides<{ + newImplementation: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newImplementation"; + }>; + data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; +}>; + +export const FN_SELECTOR = "0x4f1ef286" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newImplementation", + }, + { + type: "bytes", + name: "data", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `upgradeToAndCall` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `upgradeToAndCall` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isUpgradeToAndCallSupported } from "thirdweb/extensions/assets"; + * + * const supported = isUpgradeToAndCallSupported(["0x..."]); + * ``` + */ +export function isUpgradeToAndCallSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "upgradeToAndCall" function. + * @param options - The options for the upgradeToAndCall function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeUpgradeToAndCallParams } from "thirdweb/extensions/assets"; + * const result = encodeUpgradeToAndCallParams({ + * newImplementation: ..., + * data: ..., + * }); + * ``` + */ +export function encodeUpgradeToAndCallParams(options: UpgradeToAndCallParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.newImplementation, + options.data, + ]); +} + +/** + * Encodes the "upgradeToAndCall" function into a Hex string with its parameters. + * @param options - The options for the upgradeToAndCall function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeUpgradeToAndCall } from "thirdweb/extensions/assets"; + * const result = encodeUpgradeToAndCall({ + * newImplementation: ..., + * data: ..., + * }); + * ``` + */ +export function encodeUpgradeToAndCall(options: UpgradeToAndCallParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeUpgradeToAndCallParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "upgradeToAndCall" function on the contract. + * @param options - The options for the "upgradeToAndCall" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { upgradeToAndCall } from "thirdweb/extensions/assets"; + * + * const transaction = upgradeToAndCall({ + * contract, + * newImplementation: ..., + * data: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function upgradeToAndCall( + options: BaseTransactionOptions< + | UpgradeToAndCallParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newImplementation, resolvedOptions.data] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts new file mode 100644 index 00000000000..5128c83b16d --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "FeeConfigUpdated" event. + */ +export type FeeConfigUpdatedEventFilters = Partial<{ + target: AbiParameterToPrimitiveType<{ + type: "address"; + name: "target"; + indexed: true; + }>; + action: AbiParameterToPrimitiveType<{ + type: "bytes4"; + name: "action"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the FeeConfigUpdated event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { feeConfigUpdatedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * feeConfigUpdatedEvent({ + * target: ..., + * action: ..., + * }) + * ], + * }); + * ``` + */ +export function feeConfigUpdatedEvent( + filters: FeeConfigUpdatedEventFilters = {}, +) { + return prepareEvent({ + signature: + "event FeeConfigUpdated(address indexed target, bytes4 indexed action, address recipient, uint8 feeType, uint256 value)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts new file mode 100644 index 00000000000..d32666975bc --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts @@ -0,0 +1,55 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "FeeConfigUpdatedBySignature" event. + */ +export type FeeConfigUpdatedBySignatureEventFilters = Partial<{ + signer: AbiParameterToPrimitiveType<{ + type: "address"; + name: "signer"; + indexed: true; + }>; + target: AbiParameterToPrimitiveType<{ + type: "address"; + name: "target"; + indexed: true; + }>; + action: AbiParameterToPrimitiveType<{ + type: "bytes4"; + name: "action"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the FeeConfigUpdatedBySignature event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { feeConfigUpdatedBySignatureEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * feeConfigUpdatedBySignatureEvent({ + * signer: ..., + * target: ..., + * action: ..., + * }) + * ], + * }); + * ``` + */ +export function feeConfigUpdatedBySignatureEvent( + filters: FeeConfigUpdatedBySignatureEventFilters = {}, +) { + return prepareEvent({ + signature: + "event FeeConfigUpdatedBySignature(address indexed signer, address indexed target, bytes4 indexed action, address recipient, uint8 feeType, uint256 value)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeRecipientUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeRecipientUpdated.ts new file mode 100644 index 00000000000..bf300bbf21a --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeRecipientUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the FeeRecipientUpdated event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { feeRecipientUpdatedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * feeRecipientUpdatedEvent() + * ], + * }); + * ``` + */ +export function feeRecipientUpdatedEvent() { + return prepareEvent({ + signature: "event FeeRecipientUpdated(address feeRecipient)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts new file mode 100644 index 00000000000..2ab8996b8d3 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverCanceled" event. + */ +export type OwnershipHandoverCanceledEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverCanceled event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverCanceledEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverCanceledEvent( + filters: OwnershipHandoverCanceledEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts new file mode 100644 index 00000000000..a498506409a --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverRequested" event. + */ +export type OwnershipHandoverRequestedEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverRequested event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverRequestedEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverRequestedEvent( + filters: OwnershipHandoverRequestedEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts new file mode 100644 index 00000000000..b1be6e750e1 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipTransferred" event. + */ +export type OwnershipTransferredEventFilters = Partial<{ + oldOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "oldOwner"; + indexed: true; + }>; + newOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipTransferred event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipTransferredEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipTransferredEvent({ + * oldOwner: ..., + * newOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipTransferredEvent( + filters: OwnershipTransferredEventFilters = {}, +) { + return prepareEvent({ + signature: + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts new file mode 100644 index 00000000000..67aa23f71ff --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "RolesUpdated" event. + */ +export type RolesUpdatedEventFilters = Partial<{ + user: AbiParameterToPrimitiveType<{ + type: "address"; + name: "user"; + indexed: true; + }>; + roles: AbiParameterToPrimitiveType<{ + type: "uint256"; + name: "roles"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the RolesUpdated event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { rolesUpdatedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * rolesUpdatedEvent({ + * user: ..., + * roles: ..., + * }) + * ], + * }); + * ``` + */ +export function rolesUpdatedEvent(filters: RolesUpdatedEventFilters = {}) { + return prepareEvent({ + signature: + "event RolesUpdated(address indexed user, uint256 indexed roles)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts new file mode 100644 index 00000000000..449bf58bc2a --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x99ba5936" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + }, +] as const; + +/** + * Checks if the `ROLE_FEE_MANAGER` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ROLE_FEE_MANAGER` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isROLE_FEE_MANAGERSupported } from "thirdweb/extensions/assets"; + * const supported = isROLE_FEE_MANAGERSupported(["0x..."]); + * ``` + */ +export function isROLE_FEE_MANAGERSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the ROLE_FEE_MANAGER function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeROLE_FEE_MANAGERResult } from "thirdweb/extensions/assets"; + * const result = decodeROLE_FEE_MANAGERResultResult("..."); + * ``` + */ +export function decodeROLE_FEE_MANAGERResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ROLE_FEE_MANAGER" function on the contract. + * @param options - The options for the ROLE_FEE_MANAGER function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { ROLE_FEE_MANAGER } from "thirdweb/extensions/assets"; + * + * const result = await ROLE_FEE_MANAGER({ + * contract, + * }); + * + * ``` + */ +export async function ROLE_FEE_MANAGER(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts new file mode 100644 index 00000000000..325ff4c94df --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts @@ -0,0 +1,167 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "calculateFee" function. + */ +export type CalculateFeeParams = { + payer: AbiParameterToPrimitiveType<{ type: "address"; name: "payer" }>; + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; + maxFeeAmount: AbiParameterToPrimitiveType<{ + type: "uint256"; + name: "maxFeeAmount"; + }>; +}; + +export const FN_SELECTOR = "0x69588801" as const; +const FN_INPUTS = [ + { + type: "address", + name: "payer", + }, + { + type: "bytes4", + name: "action", + }, + { + type: "uint256", + name: "amount", + }, + { + type: "uint256", + name: "maxFeeAmount", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "recipient", + }, + { + type: "uint256", + name: "feeAmount", + }, +] as const; + +/** + * Checks if the `calculateFee` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `calculateFee` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCalculateFeeSupported } from "thirdweb/extensions/assets"; + * const supported = isCalculateFeeSupported(["0x..."]); + * ``` + */ +export function isCalculateFeeSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "calculateFee" function. + * @param options - The options for the calculateFee function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCalculateFeeParams } from "thirdweb/extensions/assets"; + * const result = encodeCalculateFeeParams({ + * payer: ..., + * action: ..., + * amount: ..., + * maxFeeAmount: ..., + * }); + * ``` + */ +export function encodeCalculateFeeParams(options: CalculateFeeParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.payer, + options.action, + options.amount, + options.maxFeeAmount, + ]); +} + +/** + * Encodes the "calculateFee" function into a Hex string with its parameters. + * @param options - The options for the calculateFee function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCalculateFee } from "thirdweb/extensions/assets"; + * const result = encodeCalculateFee({ + * payer: ..., + * action: ..., + * amount: ..., + * maxFeeAmount: ..., + * }); + * ``` + */ +export function encodeCalculateFee(options: CalculateFeeParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCalculateFeeParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the calculateFee function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeCalculateFeeResult } from "thirdweb/extensions/assets"; + * const result = decodeCalculateFeeResultResult("..."); + * ``` + */ +export function decodeCalculateFeeResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result); +} + +/** + * Calls the "calculateFee" function on the contract. + * @param options - The options for the calculateFee function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { calculateFee } from "thirdweb/extensions/assets"; + * + * const result = await calculateFee({ + * contract, + * payer: ..., + * action: ..., + * amount: ..., + * maxFeeAmount: ..., + * }); + * + * ``` + */ +export async function calculateFee( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [ + options.payer, + options.action, + options.amount, + options.maxFeeAmount, + ], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts new file mode 100644 index 00000000000..2d3a7ff9ee3 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xf698da25" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "bytes32", + }, +] as const; + +/** + * Checks if the `domainSeparator` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `domainSeparator` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isDomainSeparatorSupported } from "thirdweb/extensions/assets"; + * const supported = isDomainSeparatorSupported(["0x..."]); + * ``` + */ +export function isDomainSeparatorSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the domainSeparator function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeDomainSeparatorResult } from "thirdweb/extensions/assets"; + * const result = decodeDomainSeparatorResultResult("..."); + * ``` + */ +export function decodeDomainSeparatorResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "domainSeparator" function on the contract. + * @param options - The options for the domainSeparator function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { domainSeparator } from "thirdweb/extensions/assets"; + * + * const result = await domainSeparator({ + * contract, + * }); + * + * ``` + */ +export async function domainSeparator(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts new file mode 100644 index 00000000000..652bbb76ec8 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts @@ -0,0 +1,95 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x84b0196e" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "bytes1", + name: "fields", + }, + { + type: "string", + name: "name", + }, + { + type: "string", + name: "version", + }, + { + type: "uint256", + name: "chainId", + }, + { + type: "address", + name: "verifyingContract", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "uint256[]", + name: "extensions", + }, +] as const; + +/** + * Checks if the `eip712Domain` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `eip712Domain` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isEip712DomainSupported } from "thirdweb/extensions/assets"; + * const supported = isEip712DomainSupported(["0x..."]); + * ``` + */ +export function isEip712DomainSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the eip712Domain function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeEip712DomainResult } from "thirdweb/extensions/assets"; + * const result = decodeEip712DomainResultResult("..."); + * ``` + */ +export function decodeEip712DomainResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result); +} + +/** + * Calls the "eip712Domain" function on the contract. + * @param options - The options for the eip712Domain function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { eip712Domain } from "thirdweb/extensions/assets"; + * + * const result = await eip712Domain({ + * contract, + * }); + * + * ``` + */ +export async function eip712Domain(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts new file mode 100644 index 00000000000..616184e5f1f --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts @@ -0,0 +1,142 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "feeConfigs" function. + */ +export type FeeConfigsParams = { + target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; +}; + +export const FN_SELECTOR = "0x758515e1" as const; +const FN_INPUTS = [ + { + type: "address", + name: "target", + }, + { + type: "bytes4", + name: "action", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "recipient", + }, + { + type: "uint8", + name: "feeType", + }, + { + type: "uint256", + name: "value", + }, +] as const; + +/** + * Checks if the `feeConfigs` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `feeConfigs` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isFeeConfigsSupported } from "thirdweb/extensions/assets"; + * const supported = isFeeConfigsSupported(["0x..."]); + * ``` + */ +export function isFeeConfigsSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "feeConfigs" function. + * @param options - The options for the feeConfigs function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeFeeConfigsParams } from "thirdweb/extensions/assets"; + * const result = encodeFeeConfigsParams({ + * target: ..., + * action: ..., + * }); + * ``` + */ +export function encodeFeeConfigsParams(options: FeeConfigsParams) { + return encodeAbiParameters(FN_INPUTS, [options.target, options.action]); +} + +/** + * Encodes the "feeConfigs" function into a Hex string with its parameters. + * @param options - The options for the feeConfigs function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeFeeConfigs } from "thirdweb/extensions/assets"; + * const result = encodeFeeConfigs({ + * target: ..., + * action: ..., + * }); + * ``` + */ +export function encodeFeeConfigs(options: FeeConfigsParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeFeeConfigsParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the feeConfigs function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeFeeConfigsResult } from "thirdweb/extensions/assets"; + * const result = decodeFeeConfigsResultResult("..."); + * ``` + */ +export function decodeFeeConfigsResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result); +} + +/** + * Calls the "feeConfigs" function on the contract. + * @param options - The options for the feeConfigs function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { feeConfigs } from "thirdweb/extensions/assets"; + * + * const result = await feeConfigs({ + * contract, + * target: ..., + * action: ..., + * }); + * + * ``` + */ +export async function feeConfigs( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.target, options.action], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts new file mode 100644 index 00000000000..fe9c0c425b3 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x46904840" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + }, +] as const; + +/** + * Checks if the `feeRecipient` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `feeRecipient` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isFeeRecipientSupported } from "thirdweb/extensions/assets"; + * const supported = isFeeRecipientSupported(["0x..."]); + * ``` + */ +export function isFeeRecipientSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the feeRecipient function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeFeeRecipientResult } from "thirdweb/extensions/assets"; + * const result = decodeFeeRecipientResultResult("..."); + * ``` + */ +export function decodeFeeRecipientResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "feeRecipient" function on the contract. + * @param options - The options for the feeRecipient function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { feeRecipient } from "thirdweb/extensions/assets"; + * + * const result = await feeRecipient({ + * contract, + * }); + * + * ``` + */ +export async function feeRecipient(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts new file mode 100644 index 00000000000..b8de65828ce --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "getFeeConfig" function. + */ +export type GetFeeConfigParams = { + target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; +}; + +export const FN_SELECTOR = "0x17305ee1" as const; +const FN_INPUTS = [ + { + type: "address", + name: "target", + }, + { + type: "bytes4", + name: "action", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "tuple", + name: "config", + components: [ + { + type: "address", + name: "recipient", + }, + { + type: "uint8", + name: "feeType", + }, + { + type: "uint256", + name: "value", + }, + ], + }, +] as const; + +/** + * Checks if the `getFeeConfig` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getFeeConfig` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isGetFeeConfigSupported } from "thirdweb/extensions/assets"; + * const supported = isGetFeeConfigSupported(["0x..."]); + * ``` + */ +export function isGetFeeConfigSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "getFeeConfig" function. + * @param options - The options for the getFeeConfig function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeGetFeeConfigParams } from "thirdweb/extensions/assets"; + * const result = encodeGetFeeConfigParams({ + * target: ..., + * action: ..., + * }); + * ``` + */ +export function encodeGetFeeConfigParams(options: GetFeeConfigParams) { + return encodeAbiParameters(FN_INPUTS, [options.target, options.action]); +} + +/** + * Encodes the "getFeeConfig" function into a Hex string with its parameters. + * @param options - The options for the getFeeConfig function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeGetFeeConfig } from "thirdweb/extensions/assets"; + * const result = encodeGetFeeConfig({ + * target: ..., + * action: ..., + * }); + * ``` + */ +export function encodeGetFeeConfig(options: GetFeeConfigParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGetFeeConfigParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the getFeeConfig function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeGetFeeConfigResult } from "thirdweb/extensions/assets"; + * const result = decodeGetFeeConfigResultResult("..."); + * ``` + */ +export function decodeGetFeeConfigResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getFeeConfig" function on the contract. + * @param options - The options for the getFeeConfig function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { getFeeConfig } from "thirdweb/extensions/assets"; + * + * const result = await getFeeConfig({ + * contract, + * target: ..., + * action: ..., + * }); + * + * ``` + */ +export async function getFeeConfig( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.target, options.action], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts new file mode 100644 index 00000000000..05ec4d41cb2 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts @@ -0,0 +1,133 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "hasAllRoles" function. + */ +export type HasAllRolesParams = { + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}; + +export const FN_SELECTOR = "0x1cd64df4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `hasAllRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `hasAllRoles` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isHasAllRolesSupported } from "thirdweb/extensions/assets"; + * const supported = isHasAllRolesSupported(["0x..."]); + * ``` + */ +export function isHasAllRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "hasAllRoles" function. + * @param options - The options for the hasAllRoles function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeHasAllRolesParams } from "thirdweb/extensions/assets"; + * const result = encodeHasAllRolesParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAllRolesParams(options: HasAllRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "hasAllRoles" function into a Hex string with its parameters. + * @param options - The options for the hasAllRoles function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeHasAllRoles } from "thirdweb/extensions/assets"; + * const result = encodeHasAllRoles({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAllRoles(options: HasAllRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeHasAllRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the hasAllRoles function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeHasAllRolesResult } from "thirdweb/extensions/assets"; + * const result = decodeHasAllRolesResultResult("..."); + * ``` + */ +export function decodeHasAllRolesResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "hasAllRoles" function on the contract. + * @param options - The options for the hasAllRoles function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { hasAllRoles } from "thirdweb/extensions/assets"; + * + * const result = await hasAllRoles({ + * contract, + * user: ..., + * roles: ..., + * }); + * + * ``` + */ +export async function hasAllRoles( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.user, options.roles], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts new file mode 100644 index 00000000000..11e595201f3 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts @@ -0,0 +1,133 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "hasAnyRole" function. + */ +export type HasAnyRoleParams = { + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}; + +export const FN_SELECTOR = "0x514e62fc" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `hasAnyRole` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `hasAnyRole` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isHasAnyRoleSupported } from "thirdweb/extensions/assets"; + * const supported = isHasAnyRoleSupported(["0x..."]); + * ``` + */ +export function isHasAnyRoleSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "hasAnyRole" function. + * @param options - The options for the hasAnyRole function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeHasAnyRoleParams } from "thirdweb/extensions/assets"; + * const result = encodeHasAnyRoleParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAnyRoleParams(options: HasAnyRoleParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "hasAnyRole" function into a Hex string with its parameters. + * @param options - The options for the hasAnyRole function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeHasAnyRole } from "thirdweb/extensions/assets"; + * const result = encodeHasAnyRole({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAnyRole(options: HasAnyRoleParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeHasAnyRoleParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the hasAnyRole function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeHasAnyRoleResult } from "thirdweb/extensions/assets"; + * const result = decodeHasAnyRoleResultResult("..."); + * ``` + */ +export function decodeHasAnyRoleResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "hasAnyRole" function on the contract. + * @param options - The options for the hasAnyRole function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { hasAnyRole } from "thirdweb/extensions/assets"; + * + * const result = await hasAnyRole({ + * contract, + * user: ..., + * roles: ..., + * }); + * + * ``` + */ +export async function hasAnyRole( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.user, options.roles], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts new file mode 100644 index 00000000000..9903177bd12 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x8da5cb5b" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "result", + }, +] as const; + +/** + * Checks if the `owner` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `owner` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isOwnerSupported } from "thirdweb/extensions/assets"; + * const supported = isOwnerSupported(["0x..."]); + * ``` + */ +export function isOwnerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the owner function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeOwnerResult } from "thirdweb/extensions/assets"; + * const result = decodeOwnerResultResult("..."); + * ``` + */ +export function decodeOwnerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "owner" function on the contract. + * @param options - The options for the owner function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { owner } from "thirdweb/extensions/assets"; + * + * const result = await owner({ + * contract, + * }); + * + * ``` + */ +export async function owner(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts new file mode 100644 index 00000000000..5625095f262 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts @@ -0,0 +1,135 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "ownershipHandoverExpiresAt" function. + */ +export type OwnershipHandoverExpiresAtParams = { + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}; + +export const FN_SELECTOR = "0xfee81cf4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/assets"; + * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); + * ``` + */ +export function isOwnershipHandoverExpiresAtSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "ownershipHandoverExpiresAt" function. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/assets"; + * const result = encodeOwnershipHandoverExpiresAtParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAtParams( + options: OwnershipHandoverExpiresAtParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/assets"; + * const result = encodeOwnershipHandoverExpiresAt({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAt( + options: OwnershipHandoverExpiresAtParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeOwnershipHandoverExpiresAtParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the ownershipHandoverExpiresAt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/assets"; + * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); + * ``` + */ +export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ownershipHandoverExpiresAt" function on the contract. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/assets"; + * + * const result = await ownershipHandoverExpiresAt({ + * contract, + * pendingOwner: ..., + * }); + * + * ``` + */ +export async function ownershipHandoverExpiresAt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.pendingOwner], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts new file mode 100644 index 00000000000..e64c25fe267 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts @@ -0,0 +1,122 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "rolesOf" function. + */ +export type RolesOfParams = { + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; +}; + +export const FN_SELECTOR = "0x2de94807" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "roles", + }, +] as const; + +/** + * Checks if the `rolesOf` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `rolesOf` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRolesOfSupported } from "thirdweb/extensions/assets"; + * const supported = isRolesOfSupported(["0x..."]); + * ``` + */ +export function isRolesOfSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "rolesOf" function. + * @param options - The options for the rolesOf function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeRolesOfParams } from "thirdweb/extensions/assets"; + * const result = encodeRolesOfParams({ + * user: ..., + * }); + * ``` + */ +export function encodeRolesOfParams(options: RolesOfParams) { + return encodeAbiParameters(FN_INPUTS, [options.user]); +} + +/** + * Encodes the "rolesOf" function into a Hex string with its parameters. + * @param options - The options for the rolesOf function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeRolesOf } from "thirdweb/extensions/assets"; + * const result = encodeRolesOf({ + * user: ..., + * }); + * ``` + */ +export function encodeRolesOf(options: RolesOfParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeRolesOfParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the rolesOf function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeRolesOfResult } from "thirdweb/extensions/assets"; + * const result = decodeRolesOfResultResult("..."); + * ``` + */ +export function decodeRolesOfResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "rolesOf" function on the contract. + * @param options - The options for the rolesOf function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { rolesOf } from "thirdweb/extensions/assets"; + * + * const result = await rolesOf({ + * contract, + * user: ..., + * }); + * + * ``` + */ +export async function rolesOf(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.user], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts new file mode 100644 index 00000000000..b84a31b53b7 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts @@ -0,0 +1,129 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "usedNonces" function. + */ +export type UsedNoncesParams = { + signerNonce: AbiParameterToPrimitiveType<{ + type: "bytes32"; + name: "signerNonce"; + }>; +}; + +export const FN_SELECTOR = "0xfeb61724" as const; +const FN_INPUTS = [ + { + type: "bytes32", + name: "signerNonce", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + name: "used", + }, +] as const; + +/** + * Checks if the `usedNonces` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `usedNonces` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isUsedNoncesSupported } from "thirdweb/extensions/assets"; + * const supported = isUsedNoncesSupported(["0x..."]); + * ``` + */ +export function isUsedNoncesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "usedNonces" function. + * @param options - The options for the usedNonces function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeUsedNoncesParams } from "thirdweb/extensions/assets"; + * const result = encodeUsedNoncesParams({ + * signerNonce: ..., + * }); + * ``` + */ +export function encodeUsedNoncesParams(options: UsedNoncesParams) { + return encodeAbiParameters(FN_INPUTS, [options.signerNonce]); +} + +/** + * Encodes the "usedNonces" function into a Hex string with its parameters. + * @param options - The options for the usedNonces function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeUsedNonces } from "thirdweb/extensions/assets"; + * const result = encodeUsedNonces({ + * signerNonce: ..., + * }); + * ``` + */ +export function encodeUsedNonces(options: UsedNoncesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeUsedNoncesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the usedNonces function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeUsedNoncesResult } from "thirdweb/extensions/assets"; + * const result = decodeUsedNoncesResultResult("..."); + * ``` + */ +export function decodeUsedNoncesResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "usedNonces" function on the contract. + * @param options - The options for the usedNonces function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { usedNonces } from "thirdweb/extensions/assets"; + * + * const result = await usedNonces({ + * contract, + * signerNonce: ..., + * }); + * + * ``` + */ +export async function usedNonces( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.signerNonce], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts new file mode 100644 index 00000000000..a1e60004b43 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x54d1f13d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `cancelOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCancelOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCancelOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. + * @param options - The options for the "cancelOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { cancelOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = cancelOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function cancelOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts new file mode 100644 index 00000000000..c4bf81966fe --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "completeOwnershipHandover" function. + */ +export type CompleteOwnershipHandoverParams = WithOverrides<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}>; + +export const FN_SELECTOR = "0xf04e283e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `completeOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCompleteOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "completeOwnershipHandover" function. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/assets"; + * const result = encodeCompleteOwnershipHandoverParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandoverParams( + options: CompleteOwnershipHandoverParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/assets"; + * const result = encodeCompleteOwnershipHandover({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandover( + options: CompleteOwnershipHandoverParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCompleteOwnershipHandoverParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. + * @param options - The options for the "completeOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { completeOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = completeOwnershipHandover({ + * contract, + * pendingOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function completeOwnershipHandover( + options: BaseTransactionOptions< + | CompleteOwnershipHandoverParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.pendingOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts new file mode 100644 index 00000000000..b2469579e29 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts @@ -0,0 +1,147 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "grantRoles" function. + */ +export type GrantRolesParams = WithOverrides<{ + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}>; + +export const FN_SELECTOR = "0x1c10893f" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `grantRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `grantRoles` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isGrantRolesSupported } from "thirdweb/extensions/assets"; + * + * const supported = isGrantRolesSupported(["0x..."]); + * ``` + */ +export function isGrantRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "grantRoles" function. + * @param options - The options for the grantRoles function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeGrantRolesParams } from "thirdweb/extensions/assets"; + * const result = encodeGrantRolesParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeGrantRolesParams(options: GrantRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "grantRoles" function into a Hex string with its parameters. + * @param options - The options for the grantRoles function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeGrantRoles } from "thirdweb/extensions/assets"; + * const result = encodeGrantRoles({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeGrantRoles(options: GrantRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGrantRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "grantRoles" function on the contract. + * @param options - The options for the "grantRoles" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { grantRoles } from "thirdweb/extensions/assets"; + * + * const transaction = grantRoles({ + * contract, + * user: ..., + * roles: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function grantRoles( + options: BaseTransactionOptions< + | GrantRolesParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.user, resolvedOptions.roles] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts new file mode 100644 index 00000000000..7b8b575e3b4 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts @@ -0,0 +1,50 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x715018a6" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceOwnership` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRenounceOwnershipSupported } from "thirdweb/extensions/assets"; + * + * const supported = isRenounceOwnershipSupported(["0x..."]); + * ``` + */ +export function isRenounceOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "renounceOwnership" function on the contract. + * @param options - The options for the "renounceOwnership" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceOwnership } from "thirdweb/extensions/assets"; + * + * const transaction = renounceOwnership(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceOwnership(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts new file mode 100644 index 00000000000..fa83b586359 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "renounceRoles" function. + */ +export type RenounceRolesParams = WithOverrides<{ + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}>; + +export const FN_SELECTOR = "0x183a4f6e" as const; +const FN_INPUTS = [ + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceRoles` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRenounceRolesSupported } from "thirdweb/extensions/assets"; + * + * const supported = isRenounceRolesSupported(["0x..."]); + * ``` + */ +export function isRenounceRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "renounceRoles" function. + * @param options - The options for the renounceRoles function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeRenounceRolesParams } from "thirdweb/extensions/assets"; + * const result = encodeRenounceRolesParams({ + * roles: ..., + * }); + * ``` + */ +export function encodeRenounceRolesParams(options: RenounceRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.roles]); +} + +/** + * Encodes the "renounceRoles" function into a Hex string with its parameters. + * @param options - The options for the renounceRoles function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeRenounceRoles } from "thirdweb/extensions/assets"; + * const result = encodeRenounceRoles({ + * roles: ..., + * }); + * ``` + */ +export function encodeRenounceRoles(options: RenounceRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeRenounceRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "renounceRoles" function on the contract. + * @param options - The options for the "renounceRoles" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceRoles } from "thirdweb/extensions/assets"; + * + * const transaction = renounceRoles({ + * contract, + * roles: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceRoles( + options: BaseTransactionOptions< + | RenounceRolesParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.roles] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts new file mode 100644 index 00000000000..e0744619fae --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x25692962" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `requestOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isRequestOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isRequestOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. + * @param options - The options for the "requestOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { requestOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = requestOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function requestOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts new file mode 100644 index 00000000000..c6450bfcd50 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts @@ -0,0 +1,147 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "revokeRoles" function. + */ +export type RevokeRolesParams = WithOverrides<{ + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}>; + +export const FN_SELECTOR = "0x4a4ee7b1" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `revokeRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `revokeRoles` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRevokeRolesSupported } from "thirdweb/extensions/assets"; + * + * const supported = isRevokeRolesSupported(["0x..."]); + * ``` + */ +export function isRevokeRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "revokeRoles" function. + * @param options - The options for the revokeRoles function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeRevokeRolesParams } from "thirdweb/extensions/assets"; + * const result = encodeRevokeRolesParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeRevokeRolesParams(options: RevokeRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "revokeRoles" function into a Hex string with its parameters. + * @param options - The options for the revokeRoles function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeRevokeRoles } from "thirdweb/extensions/assets"; + * const result = encodeRevokeRoles({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeRevokeRoles(options: RevokeRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeRevokeRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "revokeRoles" function on the contract. + * @param options - The options for the "revokeRoles" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { revokeRoles } from "thirdweb/extensions/assets"; + * + * const transaction = revokeRoles({ + * contract, + * user: ..., + * roles: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function revokeRoles( + options: BaseTransactionOptions< + | RevokeRolesParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.user, resolvedOptions.roles] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts new file mode 100644 index 00000000000..fdf708570f0 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts @@ -0,0 +1,163 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setFeeConfig" function. + */ +export type SetFeeConfigParams = WithOverrides<{ + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; + feeType: AbiParameterToPrimitiveType<{ type: "uint8"; name: "feeType" }>; + value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; +}>; + +export const FN_SELECTOR = "0x636d2be9" as const; +const FN_INPUTS = [ + { + type: "bytes4", + name: "action", + }, + { + type: "uint8", + name: "feeType", + }, + { + type: "uint256", + name: "value", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setFeeConfig` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setFeeConfig` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSetFeeConfigSupported } from "thirdweb/extensions/assets"; + * + * const supported = isSetFeeConfigSupported(["0x..."]); + * ``` + */ +export function isSetFeeConfigSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setFeeConfig" function. + * @param options - The options for the setFeeConfig function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetFeeConfigParams } from "thirdweb/extensions/assets"; + * const result = encodeSetFeeConfigParams({ + * action: ..., + * feeType: ..., + * value: ..., + * }); + * ``` + */ +export function encodeSetFeeConfigParams(options: SetFeeConfigParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.action, + options.feeType, + options.value, + ]); +} + +/** + * Encodes the "setFeeConfig" function into a Hex string with its parameters. + * @param options - The options for the setFeeConfig function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetFeeConfig } from "thirdweb/extensions/assets"; + * const result = encodeSetFeeConfig({ + * action: ..., + * feeType: ..., + * value: ..., + * }); + * ``` + */ +export function encodeSetFeeConfig(options: SetFeeConfigParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetFeeConfigParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setFeeConfig" function on the contract. + * @param options - The options for the "setFeeConfig" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setFeeConfig } from "thirdweb/extensions/assets"; + * + * const transaction = setFeeConfig({ + * contract, + * action: ..., + * feeType: ..., + * value: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setFeeConfig( + options: BaseTransactionOptions< + | SetFeeConfigParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.action, + resolvedOptions.feeType, + resolvedOptions.value, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts new file mode 100644 index 00000000000..dac81287896 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts @@ -0,0 +1,222 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setFeeConfigBySignature" function. + */ +export type SetFeeConfigBySignatureParams = WithOverrides<{ + target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; + recipient: AbiParameterToPrimitiveType<{ + type: "address"; + name: "recipient"; + }>; + feeType: AbiParameterToPrimitiveType<{ type: "uint8"; name: "feeType" }>; + value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; + nonce: AbiParameterToPrimitiveType<{ type: "uint256"; name: "nonce" }>; + deadline: AbiParameterToPrimitiveType<{ type: "uint256"; name: "deadline" }>; + signature: AbiParameterToPrimitiveType<{ type: "bytes"; name: "signature" }>; +}>; + +export const FN_SELECTOR = "0x9ba861e3" as const; +const FN_INPUTS = [ + { + type: "address", + name: "target", + }, + { + type: "bytes4", + name: "action", + }, + { + type: "address", + name: "recipient", + }, + { + type: "uint8", + name: "feeType", + }, + { + type: "uint256", + name: "value", + }, + { + type: "uint256", + name: "nonce", + }, + { + type: "uint256", + name: "deadline", + }, + { + type: "bytes", + name: "signature", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setFeeConfigBySignature` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setFeeConfigBySignature` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSetFeeConfigBySignatureSupported } from "thirdweb/extensions/assets"; + * + * const supported = isSetFeeConfigBySignatureSupported(["0x..."]); + * ``` + */ +export function isSetFeeConfigBySignatureSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setFeeConfigBySignature" function. + * @param options - The options for the setFeeConfigBySignature function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetFeeConfigBySignatureParams } from "thirdweb/extensions/assets"; + * const result = encodeSetFeeConfigBySignatureParams({ + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * nonce: ..., + * deadline: ..., + * signature: ..., + * }); + * ``` + */ +export function encodeSetFeeConfigBySignatureParams( + options: SetFeeConfigBySignatureParams, +) { + return encodeAbiParameters(FN_INPUTS, [ + options.target, + options.action, + options.recipient, + options.feeType, + options.value, + options.nonce, + options.deadline, + options.signature, + ]); +} + +/** + * Encodes the "setFeeConfigBySignature" function into a Hex string with its parameters. + * @param options - The options for the setFeeConfigBySignature function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetFeeConfigBySignature } from "thirdweb/extensions/assets"; + * const result = encodeSetFeeConfigBySignature({ + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * nonce: ..., + * deadline: ..., + * signature: ..., + * }); + * ``` + */ +export function encodeSetFeeConfigBySignature( + options: SetFeeConfigBySignatureParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetFeeConfigBySignatureParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setFeeConfigBySignature" function on the contract. + * @param options - The options for the "setFeeConfigBySignature" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setFeeConfigBySignature } from "thirdweb/extensions/assets"; + * + * const transaction = setFeeConfigBySignature({ + * contract, + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * nonce: ..., + * deadline: ..., + * signature: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setFeeConfigBySignature( + options: BaseTransactionOptions< + | SetFeeConfigBySignatureParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.target, + resolvedOptions.action, + resolvedOptions.recipient, + resolvedOptions.feeType, + resolvedOptions.value, + resolvedOptions.nonce, + resolvedOptions.deadline, + resolvedOptions.signature, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts similarity index 59% rename from packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts rename to packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts index a21e466058c..df6cb2b220c 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts @@ -1,58 +1,45 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "initialize" function. + * Represents the parameters for the "setFeeRecipient" function. */ -export type InitializeParams = WithOverrides<{ - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; +export type SetFeeRecipientParams = WithOverrides<{ feeRecipient: AbiParameterToPrimitiveType<{ type: "address"; name: "_feeRecipient"; }>; - defaultFee: AbiParameterToPrimitiveType<{ - type: "uint96"; - name: "_defaultFee"; - }>; }>; -export const FN_SELECTOR = "0xc861c250" as const; +export const FN_SELECTOR = "0xe74b981b" as const; const FN_INPUTS = [ { - name: "_owner", type: "address", - }, - { name: "_feeRecipient", - type: "address", - }, - { - name: "_defaultFee", - type: "uint96", }, ] as const; const FN_OUTPUTS = [] as const; /** - * Checks if the `initialize` method is supported by the given contract. + * Checks if the `setFeeRecipient` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `initialize` method is supported. + * @returns A boolean indicating if the `setFeeRecipient` method is supported. * @extension ASSETS * @example * ```ts - * import { isInitializeSupported } from "thirdweb/extensions/assets"; + * import { isSetFeeRecipientSupported } from "thirdweb/extensions/assets"; * - * const supported = isInitializeSupported(["0x..."]); + * const supported = isSetFeeRecipientSupported(["0x..."]); * ``` */ -export function isInitializeSupported(availableSelectors: string[]) { +export function isSetFeeRecipientSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -60,67 +47,57 @@ export function isInitializeSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "initialize" function. - * @param options - The options for the initialize function. + * Encodes the parameters for the "setFeeRecipient" function. + * @param options - The options for the setFeeRecipient function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodeInitializeParams } from "thirdweb/extensions/assets"; - * const result = encodeInitializeParams({ - * owner: ..., + * import { encodeSetFeeRecipientParams } from "thirdweb/extensions/assets"; + * const result = encodeSetFeeRecipientParams({ * feeRecipient: ..., - * defaultFee: ..., * }); * ``` */ -export function encodeInitializeParams(options: InitializeParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.owner, - options.feeRecipient, - options.defaultFee, - ]); +export function encodeSetFeeRecipientParams(options: SetFeeRecipientParams) { + return encodeAbiParameters(FN_INPUTS, [options.feeRecipient]); } /** - * Encodes the "initialize" function into a Hex string with its parameters. - * @param options - The options for the initialize function. + * Encodes the "setFeeRecipient" function into a Hex string with its parameters. + * @param options - The options for the setFeeRecipient function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodeInitialize } from "thirdweb/extensions/assets"; - * const result = encodeInitialize({ - * owner: ..., + * import { encodeSetFeeRecipient } from "thirdweb/extensions/assets"; + * const result = encodeSetFeeRecipient({ * feeRecipient: ..., - * defaultFee: ..., * }); * ``` */ -export function encodeInitialize(options: InitializeParams) { +export function encodeSetFeeRecipient(options: SetFeeRecipientParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeInitializeParams(options).slice( + encodeSetFeeRecipientParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "initialize" function on the contract. - * @param options - The options for the "initialize" function. + * Prepares a transaction to call the "setFeeRecipient" function on the contract. + * @param options - The options for the "setFeeRecipient" function. * @returns A prepared transaction object. * @extension ASSETS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { initialize } from "thirdweb/extensions/assets"; + * import { setFeeRecipient } from "thirdweb/extensions/assets"; * - * const transaction = initialize({ + * const transaction = setFeeRecipient({ * contract, - * owner: ..., * feeRecipient: ..., - * defaultFee: ..., * overrides: { * ... * } @@ -130,11 +107,11 @@ export function encodeInitialize(options: InitializeParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function initialize( +export function setFeeRecipient( options: BaseTransactionOptions< - | InitializeParams + | SetFeeRecipientParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { @@ -143,27 +120,23 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.feeRecipient] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, gas: async () => (await asyncOptions()).overrides?.gas, gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, maxPriorityFeePerGas: async () => (await asyncOptions()).overrides?.maxPriorityFeePerGas, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, nonce: async () => (await asyncOptions()).overrides?.nonce, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.owner, - resolvedOptions.feeRecipient, - resolvedOptions.defaultFee, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts new file mode 100644 index 00000000000..abd3a0e6f54 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts @@ -0,0 +1,188 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setTargetFeeConfig" function. + */ +export type SetTargetFeeConfigParams = WithOverrides<{ + target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; + recipient: AbiParameterToPrimitiveType<{ + type: "address"; + name: "recipient"; + }>; + feeType: AbiParameterToPrimitiveType<{ type: "uint8"; name: "feeType" }>; + value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; +}>; + +export const FN_SELECTOR = "0xd20caa1a" as const; +const FN_INPUTS = [ + { + type: "address", + name: "target", + }, + { + type: "bytes4", + name: "action", + }, + { + type: "address", + name: "recipient", + }, + { + type: "uint8", + name: "feeType", + }, + { + type: "uint256", + name: "value", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setTargetFeeConfig` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setTargetFeeConfig` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSetTargetFeeConfigSupported } from "thirdweb/extensions/assets"; + * + * const supported = isSetTargetFeeConfigSupported(["0x..."]); + * ``` + */ +export function isSetTargetFeeConfigSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setTargetFeeConfig" function. + * @param options - The options for the setTargetFeeConfig function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetTargetFeeConfigParams } from "thirdweb/extensions/assets"; + * const result = encodeSetTargetFeeConfigParams({ + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * }); + * ``` + */ +export function encodeSetTargetFeeConfigParams( + options: SetTargetFeeConfigParams, +) { + return encodeAbiParameters(FN_INPUTS, [ + options.target, + options.action, + options.recipient, + options.feeType, + options.value, + ]); +} + +/** + * Encodes the "setTargetFeeConfig" function into a Hex string with its parameters. + * @param options - The options for the setTargetFeeConfig function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeSetTargetFeeConfig } from "thirdweb/extensions/assets"; + * const result = encodeSetTargetFeeConfig({ + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * }); + * ``` + */ +export function encodeSetTargetFeeConfig(options: SetTargetFeeConfigParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetTargetFeeConfigParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setTargetFeeConfig" function on the contract. + * @param options - The options for the "setTargetFeeConfig" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setTargetFeeConfig } from "thirdweb/extensions/assets"; + * + * const transaction = setTargetFeeConfig({ + * contract, + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setTargetFeeConfig( + options: BaseTransactionOptions< + | SetTargetFeeConfigParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.target, + resolvedOptions.action, + resolvedOptions.recipient, + resolvedOptions.feeType, + resolvedOptions.value, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts new file mode 100644 index 00000000000..36f0df68e14 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts @@ -0,0 +1,141 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferOwnership" function. + */ +export type TransferOwnershipParams = WithOverrides<{ + newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; +}>; + +export const FN_SELECTOR = "0xf2fde38b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `transferOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferOwnership` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isTransferOwnershipSupported } from "thirdweb/extensions/assets"; + * + * const supported = isTransferOwnershipSupported(["0x..."]); + * ``` + */ +export function isTransferOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferOwnership" function. + * @param options - The options for the transferOwnership function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferOwnershipParams } from "thirdweb/extensions/assets"; + * const result = encodeTransferOwnershipParams({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnershipParams( + options: TransferOwnershipParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.newOwner]); +} + +/** + * Encodes the "transferOwnership" function into a Hex string with its parameters. + * @param options - The options for the transferOwnership function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferOwnership } from "thirdweb/extensions/assets"; + * const result = encodeTransferOwnership({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnership(options: TransferOwnershipParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferOwnershipParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferOwnership" function on the contract. + * @param options - The options for the "transferOwnership" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferOwnership } from "thirdweb/extensions/assets"; + * + * const transaction = transferOwnership({ + * contract, + * newOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferOwnership( + options: BaseTransactionOptions< + | TransferOwnershipParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts new file mode 100644 index 00000000000..1081dc5be42 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "PositionLocked" event. + */ +export type PositionLockedEventFilters = Partial<{ + owner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "owner"; + indexed: true; + }>; + asset: AbiParameterToPrimitiveType<{ + type: "address"; + name: "asset"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the PositionLocked event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { positionLockedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * positionLockedEvent({ + * owner: ..., + * asset: ..., + * }) + * ], + * }); + * ``` + */ +export function positionLockedEvent(filters: PositionLockedEventFilters = {}) { + return prepareEvent({ + signature: + "event PositionLocked(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, address recipient, address referrer)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardsCollected.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardsCollected.ts new file mode 100644 index 00000000000..4022252e4bb --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardsCollected.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "RewardsCollected" event. + */ +export type RewardsCollectedEventFilters = Partial<{ + owner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "owner"; + indexed: true; + }>; + asset: AbiParameterToPrimitiveType<{ + type: "address"; + name: "asset"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the RewardsCollected event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { rewardsCollectedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * rewardsCollectedEvent({ + * owner: ..., + * asset: ..., + * }) + * ], + * }); + * ``` + */ +export function rewardsCollectedEvent( + filters: RewardsCollectedEventFilters = {}, +) { + return prepareEvent({ + signature: + "event RewardsCollected(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, uint256 amount0, uint256 amount1)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts new file mode 100644 index 00000000000..8a54aadd7b9 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xd0fb0203" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + }, +] as const; + +/** + * Checks if the `feeManager` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `feeManager` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isFeeManagerSupported } from "thirdweb/extensions/assets"; + * const supported = isFeeManagerSupported(["0x..."]); + * ``` + */ +export function isFeeManagerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the feeManager function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeFeeManagerResult } from "thirdweb/extensions/assets"; + * const result = decodeFeeManagerResultResult("..."); + * ``` + */ +export function decodeFeeManagerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "feeManager" function on the contract. + * @param options - The options for the feeManager function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { feeManager } from "thirdweb/extensions/assets"; + * + * const result = await feeManager({ + * contract, + * }); + * + * ``` + */ +export async function feeManager(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts new file mode 100644 index 00000000000..4aebc340c58 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts @@ -0,0 +1,150 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "positions" function. + */ +export type PositionsParams = { + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; +}; + +export const FN_SELECTOR = "0x4bd21445" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, + { + type: "address", + name: "asset", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "positionManager", + }, + { + type: "uint256", + name: "tokenId", + }, + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "uint16", + name: "referrerBps", + }, +] as const; + +/** + * Checks if the `positions` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `positions` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isPositionsSupported } from "thirdweb/extensions/assets"; + * const supported = isPositionsSupported(["0x..."]); + * ``` + */ +export function isPositionsSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "positions" function. + * @param options - The options for the positions function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodePositionsParams } from "thirdweb/extensions/assets"; + * const result = encodePositionsParams({ + * owner: ..., + * asset: ..., + * }); + * ``` + */ +export function encodePositionsParams(options: PositionsParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner, options.asset]); +} + +/** + * Encodes the "positions" function into a Hex string with its parameters. + * @param options - The options for the positions function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodePositions } from "thirdweb/extensions/assets"; + * const result = encodePositions({ + * owner: ..., + * asset: ..., + * }); + * ``` + */ +export function encodePositions(options: PositionsParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodePositionsParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the positions function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodePositionsResult } from "thirdweb/extensions/assets"; + * const result = decodePositionsResultResult("..."); + * ``` + */ +export function decodePositionsResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result); +} + +/** + * Calls the "positions" function on the contract. + * @param options - The options for the positions function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { positions } from "thirdweb/extensions/assets"; + * + * const result = await positions({ + * contract, + * owner: ..., + * asset: ..., + * }); + * + * ``` + */ +export async function positions( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.owner, options.asset], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts new file mode 100644 index 00000000000..6ffae04260c --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x39406c50" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + }, +] as const; + +/** + * Checks if the `v3PositionManager` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `v3PositionManager` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isV3PositionManagerSupported } from "thirdweb/extensions/assets"; + * const supported = isV3PositionManagerSupported(["0x..."]); + * ``` + */ +export function isV3PositionManagerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the v3PositionManager function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeV3PositionManagerResult } from "thirdweb/extensions/assets"; + * const result = decodeV3PositionManagerResultResult("..."); + * ``` + */ +export function decodeV3PositionManagerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "v3PositionManager" function on the contract. + * @param options - The options for the v3PositionManager function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { v3PositionManager } from "thirdweb/extensions/assets"; + * + * const result = await v3PositionManager({ + * contract, + * }); + * + * ``` + */ +export async function v3PositionManager(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts new file mode 100644 index 00000000000..9af4367be8e --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xe2f4dd43" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + }, +] as const; + +/** + * Checks if the `v4PositionManager` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `v4PositionManager` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isV4PositionManagerSupported } from "thirdweb/extensions/assets"; + * const supported = isV4PositionManagerSupported(["0x..."]); + * ``` + */ +export function isV4PositionManagerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the v4PositionManager function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeV4PositionManagerResult } from "thirdweb/extensions/assets"; + * const result = decodeV4PositionManagerResultResult("..."); + * ``` + */ +export function decodeV4PositionManagerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "v4PositionManager" function on the contract. + * @param options - The options for the v4PositionManager function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { v4PositionManager } from "thirdweb/extensions/assets"; + * + * const result = await v4PositionManager({ + * contract, + * }); + * + * ``` + */ +export async function v4PositionManager(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectRewards.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectRewards.ts new file mode 100644 index 00000000000..ae7a0993275 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectRewards.ts @@ -0,0 +1,164 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "collectRewards" function. + */ +export type CollectRewardsParams = WithOverrides<{ + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "_asset" }>; +}>; + +export const FN_SELECTOR = "0x195da960" as const; +const FN_INPUTS = [ + { + type: "address", + name: "_owner", + }, + { + type: "address", + name: "_asset", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "token0", + }, + { + type: "address", + name: "token1", + }, + { + type: "uint256", + name: "amount0", + }, + { + type: "uint256", + name: "amount1", + }, +] as const; + +/** + * Checks if the `collectRewards` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `collectRewards` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCollectRewardsSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCollectRewardsSupported(["0x..."]); + * ``` + */ +export function isCollectRewardsSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "collectRewards" function. + * @param options - The options for the collectRewards function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCollectRewardsParams } from "thirdweb/extensions/assets"; + * const result = encodeCollectRewardsParams({ + * owner: ..., + * asset: ..., + * }); + * ``` + */ +export function encodeCollectRewardsParams(options: CollectRewardsParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner, options.asset]); +} + +/** + * Encodes the "collectRewards" function into a Hex string with its parameters. + * @param options - The options for the collectRewards function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCollectRewards } from "thirdweb/extensions/assets"; + * const result = encodeCollectRewards({ + * owner: ..., + * asset: ..., + * }); + * ``` + */ +export function encodeCollectRewards(options: CollectRewardsParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCollectRewardsParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "collectRewards" function on the contract. + * @param options - The options for the "collectRewards" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { collectRewards } from "thirdweb/extensions/assets"; + * + * const transaction = collectRewards({ + * contract, + * owner: ..., + * asset: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function collectRewards( + options: BaseTransactionOptions< + | CollectRewardsParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.owner, resolvedOptions.asset] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts new file mode 100644 index 00000000000..4b4fa53c5d6 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts @@ -0,0 +1,202 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "lockPosition" function. + */ +export type LockPositionParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "_asset" }>; + positionManager: AbiParameterToPrimitiveType<{ + type: "address"; + name: "_positionManager"; + }>; + tokenId: AbiParameterToPrimitiveType<{ type: "uint256"; name: "_tokenId" }>; + recipient: AbiParameterToPrimitiveType<{ + type: "address"; + name: "_recipient"; + }>; + referrer: AbiParameterToPrimitiveType<{ type: "address"; name: "_referrer" }>; + referrerBps: AbiParameterToPrimitiveType<{ + type: "uint16"; + name: "_referrerBps"; + }>; +}>; + +export const FN_SELECTOR = "0x2cde40c2" as const; +const FN_INPUTS = [ + { + type: "address", + name: "_asset", + }, + { + type: "address", + name: "_positionManager", + }, + { + type: "uint256", + name: "_tokenId", + }, + { + type: "address", + name: "_recipient", + }, + { + type: "address", + name: "_referrer", + }, + { + type: "uint16", + name: "_referrerBps", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `lockPosition` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `lockPosition` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isLockPositionSupported } from "thirdweb/extensions/assets"; + * + * const supported = isLockPositionSupported(["0x..."]); + * ``` + */ +export function isLockPositionSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "lockPosition" function. + * @param options - The options for the lockPosition function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeLockPositionParams } from "thirdweb/extensions/assets"; + * const result = encodeLockPositionParams({ + * asset: ..., + * positionManager: ..., + * tokenId: ..., + * recipient: ..., + * referrer: ..., + * referrerBps: ..., + * }); + * ``` + */ +export function encodeLockPositionParams(options: LockPositionParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.asset, + options.positionManager, + options.tokenId, + options.recipient, + options.referrer, + options.referrerBps, + ]); +} + +/** + * Encodes the "lockPosition" function into a Hex string with its parameters. + * @param options - The options for the lockPosition function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeLockPosition } from "thirdweb/extensions/assets"; + * const result = encodeLockPosition({ + * asset: ..., + * positionManager: ..., + * tokenId: ..., + * recipient: ..., + * referrer: ..., + * referrerBps: ..., + * }); + * ``` + */ +export function encodeLockPosition(options: LockPositionParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeLockPositionParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "lockPosition" function on the contract. + * @param options - The options for the "lockPosition" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { lockPosition } from "thirdweb/extensions/assets"; + * + * const transaction = lockPosition({ + * contract, + * asset: ..., + * positionManager: ..., + * tokenId: ..., + * recipient: ..., + * referrer: ..., + * referrerBps: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function lockPosition( + options: BaseTransactionOptions< + | LockPositionParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.asset, + resolvedOptions.positionManager, + resolvedOptions.tokenId, + resolvedOptions.recipient, + resolvedOptions.referrer, + resolvedOptions.referrerBps, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterDisabled.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterDisabled.ts new file mode 100644 index 00000000000..bb6d50984ce --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterDisabled.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the AdapterDisabled event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { adapterDisabledEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * adapterDisabledEvent() + * ], + * }); + * ``` + */ +export function adapterDisabledEvent() { + return prepareEvent({ + signature: "event AdapterDisabled(uint8 adapterType)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterEnabled.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterEnabled.ts new file mode 100644 index 00000000000..b15e372eafc --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterEnabled.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the AdapterEnabled event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { adapterEnabledEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * adapterEnabledEvent() + * ], + * }); + * ``` + */ +export function adapterEnabledEvent() { + return prepareEvent({ + signature: "event AdapterEnabled(uint8 adapterType)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Initialized.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Initialized.ts new file mode 100644 index 00000000000..88705c10a63 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Initialized.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the Initialized event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { initializedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * initializedEvent() + * ], + * }); + * ``` + */ +export function initializedEvent() { + return prepareEvent({ + signature: "event Initialized(uint64 version)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts new file mode 100644 index 00000000000..2ab8996b8d3 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverCanceled" event. + */ +export type OwnershipHandoverCanceledEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverCanceled event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverCanceledEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverCanceledEvent( + filters: OwnershipHandoverCanceledEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts new file mode 100644 index 00000000000..a498506409a --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverRequested" event. + */ +export type OwnershipHandoverRequestedEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverRequested event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverRequestedEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverRequestedEvent( + filters: OwnershipHandoverRequestedEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts new file mode 100644 index 00000000000..b1be6e750e1 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipTransferred" event. + */ +export type OwnershipTransferredEventFilters = Partial<{ + oldOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "oldOwner"; + indexed: true; + }>; + newOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipTransferred event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipTransferredEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipTransferredEvent({ + * oldOwner: ..., + * newOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipTransferredEvent( + filters: OwnershipTransferredEventFilters = {}, +) { + return prepareEvent({ + signature: + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts new file mode 100644 index 00000000000..a5e453c7717 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts @@ -0,0 +1,53 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "SwapExecuted" event. + */ +export type SwapExecutedEventFilters = Partial<{ + sender: AbiParameterToPrimitiveType<{ + type: "address"; + name: "sender"; + indexed: true; + }>; + tokenIn: AbiParameterToPrimitiveType<{ + type: "address"; + name: "tokenIn"; + indexed: true; + }>; + tokenOut: AbiParameterToPrimitiveType<{ + type: "address"; + name: "tokenOut"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the SwapExecuted event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { swapExecutedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * swapExecutedEvent({ + * sender: ..., + * tokenIn: ..., + * tokenOut: ..., + * }) + * ], + * }); + * ``` + */ +export function swapExecutedEvent(filters: SwapExecutedEventFilters = {}) { + return prepareEvent({ + signature: + "event SwapExecuted(address indexed sender, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut, uint8 adapterUsed)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts similarity index 50% rename from packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts rename to packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts index 23e56bb89a9..5ab5634fb24 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetEntrypointERC20/events/RewardLockerUpdated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts @@ -1,42 +1,40 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** - * Represents the filters for the "RewardLockerUpdated" event. + * Represents the filters for the "Upgraded" event. */ -export type RewardLockerUpdatedEventFilters = Partial<{ - locker: AbiParameterToPrimitiveType<{ +export type UpgradedEventFilters = Partial<{ + implementation: AbiParameterToPrimitiveType<{ type: "address"; - name: "locker"; + name: "implementation"; indexed: true; }>; }>; /** - * Creates an event object for the RewardLockerUpdated event. + * Creates an event object for the Upgraded event. * @param filters - Optional filters to apply to the event. * @returns The prepared event object. * @extension ASSETS * @example * ```ts * import { getContractEvents } from "thirdweb"; - * import { rewardLockerUpdatedEvent } from "thirdweb/extensions/assets"; + * import { upgradedEvent } from "thirdweb/extensions/assets"; * * const events = await getContractEvents({ * contract, * events: [ - * rewardLockerUpdatedEvent({ - * locker: ..., + * upgradedEvent({ + * implementation: ..., * }) * ], * }); * ``` */ -export function rewardLockerUpdatedEvent( - filters: RewardLockerUpdatedEventFilters = {}, -) { +export function upgradedEvent(filters: UpgradedEventFilters = {}) { return prepareEvent({ + signature: "event Upgraded(address indexed implementation)", filters, - signature: "event RewardLockerUpdated(address indexed locker)", }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts new file mode 100644 index 00000000000..b7a3a2b4481 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x31f7d964" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + }, +] as const; + +/** + * Checks if the `NATIVE_TOKEN` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `NATIVE_TOKEN` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isNATIVE_TOKENSupported } from "thirdweb/extensions/assets"; + * const supported = isNATIVE_TOKENSupported(["0x..."]); + * ``` + */ +export function isNATIVE_TOKENSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the NATIVE_TOKEN function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeNATIVE_TOKENResult } from "thirdweb/extensions/assets"; + * const result = decodeNATIVE_TOKENResultResult("..."); + * ``` + */ +export function decodeNATIVE_TOKENResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "NATIVE_TOKEN" function on the contract. + * @param options - The options for the NATIVE_TOKEN function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { NATIVE_TOKEN } from "thirdweb/extensions/assets"; + * + * const result = await NATIVE_TOKEN({ + * contract, + * }); + * + * ``` + */ +export async function NATIVE_TOKEN(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts new file mode 100644 index 00000000000..9903177bd12 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x8da5cb5b" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "result", + }, +] as const; + +/** + * Checks if the `owner` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `owner` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isOwnerSupported } from "thirdweb/extensions/assets"; + * const supported = isOwnerSupported(["0x..."]); + * ``` + */ +export function isOwnerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the owner function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeOwnerResult } from "thirdweb/extensions/assets"; + * const result = decodeOwnerResultResult("..."); + * ``` + */ +export function decodeOwnerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "owner" function on the contract. + * @param options - The options for the owner function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { owner } from "thirdweb/extensions/assets"; + * + * const result = await owner({ + * contract, + * }); + * + * ``` + */ +export async function owner(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts new file mode 100644 index 00000000000..5625095f262 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts @@ -0,0 +1,135 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "ownershipHandoverExpiresAt" function. + */ +export type OwnershipHandoverExpiresAtParams = { + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}; + +export const FN_SELECTOR = "0xfee81cf4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/assets"; + * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); + * ``` + */ +export function isOwnershipHandoverExpiresAtSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "ownershipHandoverExpiresAt" function. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/assets"; + * const result = encodeOwnershipHandoverExpiresAtParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAtParams( + options: OwnershipHandoverExpiresAtParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/assets"; + * const result = encodeOwnershipHandoverExpiresAt({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAt( + options: OwnershipHandoverExpiresAtParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeOwnershipHandoverExpiresAtParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the ownershipHandoverExpiresAt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/assets"; + * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); + * ``` + */ +export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ownershipHandoverExpiresAt" function on the contract. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/assets"; + * + * const result = await ownershipHandoverExpiresAt({ + * contract, + * pendingOwner: ..., + * }); + * + * ``` + */ +export async function ownershipHandoverExpiresAt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.pendingOwner], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts new file mode 100644 index 00000000000..fd62cd8e007 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x52d1902d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "bytes32", + }, +] as const; + +/** + * Checks if the `proxiableUUID` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `proxiableUUID` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isProxiableUUIDSupported } from "thirdweb/extensions/assets"; + * const supported = isProxiableUUIDSupported(["0x..."]); + * ``` + */ +export function isProxiableUUIDSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the proxiableUUID function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension ASSETS + * @example + * ```ts + * import { decodeProxiableUUIDResult } from "thirdweb/extensions/assets"; + * const result = decodeProxiableUUIDResultResult("..."); + * ``` + */ +export function decodeProxiableUUIDResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "proxiableUUID" function on the contract. + * @param options - The options for the proxiableUUID function. + * @returns The parsed result of the function call. + * @extension ASSETS + * @example + * ```ts + * import { proxiableUUID } from "thirdweb/extensions/assets"; + * + * const result = await proxiableUUID({ + * contract, + * }); + * + * ``` + */ +export async function proxiableUUID(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts new file mode 100644 index 00000000000..a1e60004b43 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x54d1f13d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `cancelOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCancelOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCancelOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. + * @param options - The options for the "cancelOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { cancelOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = cancelOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function cancelOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts new file mode 100644 index 00000000000..c4bf81966fe --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "completeOwnershipHandover" function. + */ +export type CompleteOwnershipHandoverParams = WithOverrides<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}>; + +export const FN_SELECTOR = "0xf04e283e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `completeOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCompleteOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "completeOwnershipHandover" function. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/assets"; + * const result = encodeCompleteOwnershipHandoverParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandoverParams( + options: CompleteOwnershipHandoverParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/assets"; + * const result = encodeCompleteOwnershipHandover({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandover( + options: CompleteOwnershipHandoverParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCompleteOwnershipHandoverParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. + * @param options - The options for the "completeOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { completeOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = completeOwnershipHandover({ + * contract, + * pendingOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function completeOwnershipHandover( + options: BaseTransactionOptions< + | CompleteOwnershipHandoverParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.pendingOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts new file mode 100644 index 00000000000..bece8074748 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts @@ -0,0 +1,214 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "createMarket" function. + */ +export type CreateMarketParams = WithOverrides<{ + createMarketConfig: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "createMarketConfig"; + components: [ + { type: "address"; name: "creator" }, + { type: "address"; name: "tokenIn" }, + { type: "address"; name: "tokenOut" }, + { type: "uint256"; name: "pricePerUnit" }, + { type: "uint8"; name: "priceDenominator" }, + { type: "uint256"; name: "totalSupply" }, + { type: "uint48"; name: "startTime" }, + { type: "uint48"; name: "endTime" }, + { type: "uint256"; name: "tokenId" }, + { type: "address"; name: "hook" }, + { type: "bytes"; name: "createHookData" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0xc6d6be45" as const; +const FN_INPUTS = [ + { + type: "tuple", + name: "createMarketConfig", + components: [ + { + type: "address", + name: "creator", + }, + { + type: "address", + name: "tokenIn", + }, + { + type: "address", + name: "tokenOut", + }, + { + type: "uint256", + name: "pricePerUnit", + }, + { + type: "uint8", + name: "priceDenominator", + }, + { + type: "uint256", + name: "totalSupply", + }, + { + type: "uint48", + name: "startTime", + }, + { + type: "uint48", + name: "endTime", + }, + { + type: "uint256", + name: "tokenId", + }, + { + type: "address", + name: "hook", + }, + { + type: "bytes", + name: "createHookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "sale", + }, + { + type: "address", + name: "position", + }, + { + type: "uint256", + name: "positionId", + }, +] as const; + +/** + * Checks if the `createMarket` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `createMarket` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCreateMarketSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCreateMarketSupported(["0x..."]); + * ``` + */ +export function isCreateMarketSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "createMarket" function. + * @param options - The options for the createMarket function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCreateMarketParams } from "thirdweb/extensions/assets"; + * const result = encodeCreateMarketParams({ + * createMarketConfig: ..., + * }); + * ``` + */ +export function encodeCreateMarketParams(options: CreateMarketParams) { + return encodeAbiParameters(FN_INPUTS, [options.createMarketConfig]); +} + +/** + * Encodes the "createMarket" function into a Hex string with its parameters. + * @param options - The options for the createMarket function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCreateMarket } from "thirdweb/extensions/assets"; + * const result = encodeCreateMarket({ + * createMarketConfig: ..., + * }); + * ``` + */ +export function encodeCreateMarket(options: CreateMarketParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCreateMarketParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "createMarket" function on the contract. + * @param options - The options for the "createMarket" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { createMarket } from "thirdweb/extensions/assets"; + * + * const transaction = createMarket({ + * contract, + * createMarketConfig: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function createMarket( + options: BaseTransactionOptions< + | CreateMarketParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.createMarketConfig] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts new file mode 100644 index 00000000000..099fc89f3d8 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts @@ -0,0 +1,202 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "createPool" function. + */ +export type CreatePoolParams = WithOverrides<{ + createPoolConfig: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "createPoolConfig"; + components: [ + { type: "address"; name: "recipient" }, + { type: "address"; name: "referrer" }, + { type: "address"; name: "tokenA" }, + { type: "address"; name: "tokenB" }, + { type: "uint256"; name: "amountA" }, + { type: "uint256"; name: "amountB" }, + { type: "bytes"; name: "data" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0xa1970c55" as const; +const FN_INPUTS = [ + { + type: "tuple", + name: "createPoolConfig", + components: [ + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "address", + name: "tokenA", + }, + { + type: "address", + name: "tokenB", + }, + { + type: "uint256", + name: "amountA", + }, + { + type: "uint256", + name: "amountB", + }, + { + type: "bytes", + name: "data", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "pool", + }, + { + type: "address", + name: "position", + }, + { + type: "uint256", + name: "positionId", + }, + { + type: "uint256", + name: "refundAmount0", + }, + { + type: "uint256", + name: "refundAmount1", + }, +] as const; + +/** + * Checks if the `createPool` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `createPool` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isCreatePoolSupported } from "thirdweb/extensions/assets"; + * + * const supported = isCreatePoolSupported(["0x..."]); + * ``` + */ +export function isCreatePoolSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "createPool" function. + * @param options - The options for the createPool function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeCreatePoolParams } from "thirdweb/extensions/assets"; + * const result = encodeCreatePoolParams({ + * createPoolConfig: ..., + * }); + * ``` + */ +export function encodeCreatePoolParams(options: CreatePoolParams) { + return encodeAbiParameters(FN_INPUTS, [options.createPoolConfig]); +} + +/** + * Encodes the "createPool" function into a Hex string with its parameters. + * @param options - The options for the createPool function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeCreatePool } from "thirdweb/extensions/assets"; + * const result = encodeCreatePool({ + * createPoolConfig: ..., + * }); + * ``` + */ +export function encodeCreatePool(options: CreatePoolParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCreatePoolParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "createPool" function on the contract. + * @param options - The options for the "createPool" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { createPool } from "thirdweb/extensions/assets"; + * + * const transaction = createPool({ + * contract, + * createPoolConfig: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function createPool( + options: BaseTransactionOptions< + | CreatePoolParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.createPoolConfig] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts new file mode 100644 index 00000000000..e337f719658 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts @@ -0,0 +1,142 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "disableAdapter" function. + */ +export type DisableAdapterParams = WithOverrides<{ + adapterType: AbiParameterToPrimitiveType<{ + type: "uint8"; + name: "adapterType"; + }>; +}>; + +export const FN_SELECTOR = "0xa3f3a7bd" as const; +const FN_INPUTS = [ + { + type: "uint8", + name: "adapterType", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `disableAdapter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `disableAdapter` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isDisableAdapterSupported } from "thirdweb/extensions/assets"; + * + * const supported = isDisableAdapterSupported(["0x..."]); + * ``` + */ +export function isDisableAdapterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "disableAdapter" function. + * @param options - The options for the disableAdapter function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeDisableAdapterParams } from "thirdweb/extensions/assets"; + * const result = encodeDisableAdapterParams({ + * adapterType: ..., + * }); + * ``` + */ +export function encodeDisableAdapterParams(options: DisableAdapterParams) { + return encodeAbiParameters(FN_INPUTS, [options.adapterType]); +} + +/** + * Encodes the "disableAdapter" function into a Hex string with its parameters. + * @param options - The options for the disableAdapter function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeDisableAdapter } from "thirdweb/extensions/assets"; + * const result = encodeDisableAdapter({ + * adapterType: ..., + * }); + * ``` + */ +export function encodeDisableAdapter(options: DisableAdapterParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeDisableAdapterParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "disableAdapter" function on the contract. + * @param options - The options for the "disableAdapter" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { disableAdapter } from "thirdweb/extensions/assets"; + * + * const transaction = disableAdapter({ + * contract, + * adapterType: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function disableAdapter( + options: BaseTransactionOptions< + | DisableAdapterParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.adapterType] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts new file mode 100644 index 00000000000..a8eac8c28d5 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts @@ -0,0 +1,150 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "enableAdapter" function. + */ +export type EnableAdapterParams = WithOverrides<{ + adapterType: AbiParameterToPrimitiveType<{ + type: "uint8"; + name: "adapterType"; + }>; + config: AbiParameterToPrimitiveType<{ type: "bytes"; name: "config" }>; +}>; + +export const FN_SELECTOR = "0xab348bdb" as const; +const FN_INPUTS = [ + { + type: "uint8", + name: "adapterType", + }, + { + type: "bytes", + name: "config", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `enableAdapter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `enableAdapter` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isEnableAdapterSupported } from "thirdweb/extensions/assets"; + * + * const supported = isEnableAdapterSupported(["0x..."]); + * ``` + */ +export function isEnableAdapterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "enableAdapter" function. + * @param options - The options for the enableAdapter function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeEnableAdapterParams } from "thirdweb/extensions/assets"; + * const result = encodeEnableAdapterParams({ + * adapterType: ..., + * config: ..., + * }); + * ``` + */ +export function encodeEnableAdapterParams(options: EnableAdapterParams) { + return encodeAbiParameters(FN_INPUTS, [options.adapterType, options.config]); +} + +/** + * Encodes the "enableAdapter" function into a Hex string with its parameters. + * @param options - The options for the enableAdapter function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeEnableAdapter } from "thirdweb/extensions/assets"; + * const result = encodeEnableAdapter({ + * adapterType: ..., + * config: ..., + * }); + * ``` + */ +export function encodeEnableAdapter(options: EnableAdapterParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeEnableAdapterParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "enableAdapter" function on the contract. + * @param options - The options for the "enableAdapter" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { enableAdapter } from "thirdweb/extensions/assets"; + * + * const transaction = enableAdapter({ + * contract, + * adapterType: ..., + * config: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function enableAdapter( + options: BaseTransactionOptions< + | EnableAdapterParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.adapterType, resolvedOptions.config] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts index eeaae25ec04..3c12ac4ee92 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts @@ -1,25 +1,25 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. */ export type InitializeParams = WithOverrides<{ - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; }>; export const FN_SELECTOR = "0xc4d66de8" as const; const FN_INPUTS = [ { - name: "_owner", type: "address", + name: "owner", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.owner] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts new file mode 100644 index 00000000000..7b8b575e3b4 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts @@ -0,0 +1,50 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x715018a6" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceOwnership` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRenounceOwnershipSupported } from "thirdweb/extensions/assets"; + * + * const supported = isRenounceOwnershipSupported(["0x..."]); + * ``` + */ +export function isRenounceOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "renounceOwnership" function on the contract. + * @param options - The options for the "renounceOwnership" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceOwnership } from "thirdweb/extensions/assets"; + * + * const transaction = renounceOwnership(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceOwnership(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts new file mode 100644 index 00000000000..e0744619fae --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x25692962" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `requestOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/assets"; + * + * const supported = isRequestOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isRequestOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. + * @param options - The options for the "requestOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { requestOwnershipHandover } from "thirdweb/extensions/assets"; + * + * const transaction = requestOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function requestOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts new file mode 100644 index 00000000000..4d51ce7fe8e --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts @@ -0,0 +1,203 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "swap" function. + */ +export type SwapParams = WithOverrides<{ + config: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "config"; + components: [ + { type: "address"; name: "tokenIn" }, + { type: "address"; name: "tokenOut" }, + { type: "uint256"; name: "amountIn" }, + { type: "uint256"; name: "minAmountOut" }, + { type: "address"; name: "recipient" }, + { type: "address"; name: "refundRecipient" }, + { type: "uint256"; name: "deadline" }, + { type: "bytes"; name: "data" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x8892376c" as const; +const FN_INPUTS = [ + { + type: "tuple", + name: "config", + components: [ + { + type: "address", + name: "tokenIn", + }, + { + type: "address", + name: "tokenOut", + }, + { + type: "uint256", + name: "amountIn", + }, + { + type: "uint256", + name: "minAmountOut", + }, + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "refundRecipient", + }, + { + type: "uint256", + name: "deadline", + }, + { + type: "bytes", + name: "data", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "tuple", + name: "result", + components: [ + { + type: "uint256", + name: "amountIn", + }, + { + type: "uint256", + name: "amountOut", + }, + { + type: "address", + name: "source", + }, + ], + }, +] as const; + +/** + * Checks if the `swap` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `swap` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isSwapSupported } from "thirdweb/extensions/assets"; + * + * const supported = isSwapSupported(["0x..."]); + * ``` + */ +export function isSwapSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "swap" function. + * @param options - The options for the swap function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeSwapParams } from "thirdweb/extensions/assets"; + * const result = encodeSwapParams({ + * config: ..., + * }); + * ``` + */ +export function encodeSwapParams(options: SwapParams) { + return encodeAbiParameters(FN_INPUTS, [options.config]); +} + +/** + * Encodes the "swap" function into a Hex string with its parameters. + * @param options - The options for the swap function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeSwap } from "thirdweb/extensions/assets"; + * const result = encodeSwap({ + * config: ..., + * }); + * ``` + */ +export function encodeSwap(options: SwapParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSwapParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "swap" function on the contract. + * @param options - The options for the "swap" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { swap } from "thirdweb/extensions/assets"; + * + * const transaction = swap({ + * contract, + * config: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function swap( + options: BaseTransactionOptions< + | SwapParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.config] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts new file mode 100644 index 00000000000..36f0df68e14 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts @@ -0,0 +1,141 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferOwnership" function. + */ +export type TransferOwnershipParams = WithOverrides<{ + newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; +}>; + +export const FN_SELECTOR = "0xf2fde38b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `transferOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferOwnership` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isTransferOwnershipSupported } from "thirdweb/extensions/assets"; + * + * const supported = isTransferOwnershipSupported(["0x..."]); + * ``` + */ +export function isTransferOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferOwnership" function. + * @param options - The options for the transferOwnership function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferOwnershipParams } from "thirdweb/extensions/assets"; + * const result = encodeTransferOwnershipParams({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnershipParams( + options: TransferOwnershipParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.newOwner]); +} + +/** + * Encodes the "transferOwnership" function into a Hex string with its parameters. + * @param options - The options for the transferOwnership function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeTransferOwnership } from "thirdweb/extensions/assets"; + * const result = encodeTransferOwnership({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnership(options: TransferOwnershipParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferOwnershipParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferOwnership" function on the contract. + * @param options - The options for the "transferOwnership" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferOwnership } from "thirdweb/extensions/assets"; + * + * const transaction = transferOwnership({ + * contract, + * newOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferOwnership( + options: BaseTransactionOptions< + | TransferOwnershipParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts new file mode 100644 index 00000000000..63e1152f422 --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts @@ -0,0 +1,153 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "upgradeToAndCall" function. + */ +export type UpgradeToAndCallParams = WithOverrides<{ + newImplementation: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newImplementation"; + }>; + data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; +}>; + +export const FN_SELECTOR = "0x4f1ef286" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newImplementation", + }, + { + type: "bytes", + name: "data", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `upgradeToAndCall` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `upgradeToAndCall` method is supported. + * @extension ASSETS + * @example + * ```ts + * import { isUpgradeToAndCallSupported } from "thirdweb/extensions/assets"; + * + * const supported = isUpgradeToAndCallSupported(["0x..."]); + * ``` + */ +export function isUpgradeToAndCallSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "upgradeToAndCall" function. + * @param options - The options for the upgradeToAndCall function. + * @returns The encoded ABI parameters. + * @extension ASSETS + * @example + * ```ts + * import { encodeUpgradeToAndCallParams } from "thirdweb/extensions/assets"; + * const result = encodeUpgradeToAndCallParams({ + * newImplementation: ..., + * data: ..., + * }); + * ``` + */ +export function encodeUpgradeToAndCallParams(options: UpgradeToAndCallParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.newImplementation, + options.data, + ]); +} + +/** + * Encodes the "upgradeToAndCall" function into a Hex string with its parameters. + * @param options - The options for the upgradeToAndCall function. + * @returns The encoded hexadecimal string. + * @extension ASSETS + * @example + * ```ts + * import { encodeUpgradeToAndCall } from "thirdweb/extensions/assets"; + * const result = encodeUpgradeToAndCall({ + * newImplementation: ..., + * data: ..., + * }); + * ``` + */ +export function encodeUpgradeToAndCall(options: UpgradeToAndCallParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeUpgradeToAndCallParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "upgradeToAndCall" function on the contract. + * @param options - The options for the "upgradeToAndCall" function. + * @returns A prepared transaction object. + * @extension ASSETS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { upgradeToAndCall } from "thirdweb/extensions/assets"; + * + * const transaction = upgradeToAndCall({ + * contract, + * newImplementation: ..., + * data: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function upgradeToAndCall( + options: BaseTransactionOptions< + | UpgradeToAndCallParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newImplementation, resolvedOptions.data] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts index de478f3c8be..56c279e35ce 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. @@ -35,46 +35,46 @@ export type SetClaimConditionsParams = WithOverrides<{ export const FN_SELECTOR = "0x426cfaf3" as const; const FN_INPUTS = [ { + type: "tuple", + name: "phase", components: [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ], - name: "phase", - type: "tuple", }, { - name: "resetClaimEligibility", type: "bool", + name: "resetClaimEligibility", }, ] as const; const FN_OUTPUTS = [] as const; @@ -180,19 +180,8 @@ export function setClaimConditions( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -201,5 +190,16 @@ export function setClaimConditions( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts index d50373e8312..2ea7753de27 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts index 1b93894ecfe..3ffea0690fc 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts index 3ded3f5529b..bb275da2f18 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts index b2bda000fe3..da4fc19dbd4 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. @@ -18,8 +18,8 @@ export type SetContractURIParams = WithOverrides<{ export const FN_SELECTOR = "0x938e3d7b" as const; const FN_INPUTS = [ { - name: "_uri", type: "string", + name: "_uri", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function setContractURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts index 74199738d5d..191addedb4a 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "multicall" function. @@ -18,14 +18,14 @@ export type MulticallParams = WithOverrides<{ export const FN_SELECTOR = "0xac9650d8" as const; const FN_INPUTS = [ { - name: "data", type: "bytes[]", + name: "data", }, ] as const; const FN_OUTPUTS = [ { - name: "results", type: "bytes[]", + name: "results", }, ] as const; @@ -122,23 +122,23 @@ export function multicall( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.data] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts index dcbeaf28259..b4114846977 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnerUpdated" event. @@ -40,8 +40,8 @@ export type OwnerUpdatedEventFilters = Partial<{ */ export function ownerUpdatedEvent(filters: OwnerUpdatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event OwnerUpdated(address indexed prevOwner, address indexed newOwner)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts index e7d18e25f94..91c7d953571 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts index c6f3df7afa6..ccd898be5ea 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setOwner" function. @@ -18,8 +18,8 @@ export type SetOwnerParams = WithOverrides<{ export const FN_SELECTOR = "0x13af4035" as const; const FN_INPUTS = [ { - name: "_newOwner", type: "address", + name: "_newOwner", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function setOwner( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.newOwner] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts index f0d95180ea3..2db6b4f4412 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. @@ -36,8 +36,8 @@ export function platformFeeInfoUpdatedEvent( filters: PlatformFeeInfoUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event PlatformFeeInfoUpdated(address indexed platformFeeRecipient, uint256 platformFeeBps)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts index 8ea7d761d26..8a762797f05 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts index 8de7bf51263..4dd68636156 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. @@ -25,12 +25,12 @@ export type SetPlatformFeeInfoParams = WithOverrides<{ export const FN_SELECTOR = "0x1e7ac488" as const; const FN_INPUTS = [ { - name: "_platformFeeRecipient", type: "address", + name: "_platformFeeRecipient", }, { - name: "_platformFeeBps", type: "uint256", + name: "_platformFeeBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -136,19 +136,8 @@ export function setPlatformFeeInfo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -157,5 +146,16 @@ export function setPlatformFeeInfo( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts index e247a3f1119..435c2f003e0 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PrimarySaleRecipientUpdated" event. @@ -36,7 +36,7 @@ export function primarySaleRecipientUpdatedEvent( filters: PrimarySaleRecipientUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event PrimarySaleRecipientUpdated(address indexed recipient)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts index 56a38752334..d5bc32a66fd 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x079fe40e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts index b80fe119c12..1700a8c5103 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPrimarySaleRecipient" function. @@ -21,8 +21,8 @@ export type SetPrimarySaleRecipientParams = WithOverrides<{ export const FN_SELECTOR = "0x6f4f2837" as const; const FN_INPUTS = [ { - name: "_saleRecipient", type: "address", + name: "_saleRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -126,23 +126,23 @@ export function setPrimarySaleRecipient( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.saleRecipient] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts index e99421c5576..bda5d833de1 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DefaultRoyalty" event. @@ -34,8 +34,8 @@ export type DefaultRoyaltyEventFilters = Partial<{ */ export function defaultRoyaltyEvent(filters: DefaultRoyaltyEventFilters = {}) { return prepareEvent({ - filters, signature: "event DefaultRoyalty(address indexed newRoyaltyRecipient, uint256 newRoyaltyBps)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts index 435be15ef77..4dea19eac28 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoyaltyForToken" event. @@ -42,8 +42,8 @@ export function royaltyForTokenEvent( filters: RoyaltyForTokenEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event RoyaltyForToken(uint256 indexed tokenId, address indexed royaltyRecipient, uint256 royaltyBps)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts index 586f785dd19..35b885df948 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts index fd5e7a63dd9..df38082ccab 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. @@ -16,8 +16,8 @@ export type GetRoyaltyInfoForTokenParams = { export const FN_SELECTOR = "0x4cc157df" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts index d697e3822da..9b63a90861b 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. @@ -20,22 +20,22 @@ export type RoyaltyInfoParams = { export const FN_SELECTOR = "0x2a55205a" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "salePrice", type: "uint256", + name: "salePrice", }, ] as const; const FN_OUTPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "royaltyAmount", type: "uint256", + name: "royaltyAmount", }, ] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts index f24fc2d98c7..2ac55df9cbf 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. @@ -19,8 +19,8 @@ export type SupportsInterfaceParams = { export const FN_SELECTOR = "0x01ffc9a7" as const; const FN_INPUTS = [ { - name: "interfaceId", type: "bytes4", + name: "interfaceId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts index 560af965e80..d50f9564b26 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. @@ -25,12 +25,12 @@ export type SetDefaultRoyaltyInfoParams = WithOverrides<{ export const FN_SELECTOR = "0x600dd5ea" as const; const FN_INPUTS = [ { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint256", + name: "_royaltyBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -138,19 +138,8 @@ export function setDefaultRoyaltyInfo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -159,5 +148,16 @@ export function setDefaultRoyaltyInfo( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts index a429c655018..7ea6f0a96e3 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. @@ -23,16 +23,16 @@ export type SetRoyaltyInfoForTokenParams = WithOverrides<{ export const FN_SELECTOR = "0x9bcf7a15" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "recipient", type: "address", + name: "recipient", }, { - name: "bps", type: "uint256", + name: "bps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -146,19 +146,8 @@ export function setRoyaltyInfoForToken( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -168,5 +157,16 @@ export function setRoyaltyInfoForToken( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts index 9c938a8bc7c..4de63a5df08 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoyaltyEngineUpdated" event. @@ -42,8 +42,8 @@ export function royaltyEngineUpdatedEvent( filters: RoyaltyEngineUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event RoyaltyEngineUpdated(address indexed previousAddress, address indexed newAddress)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts index f24fc2d98c7..2ac55df9cbf 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. @@ -19,8 +19,8 @@ export type SupportsInterfaceParams = { export const FN_SELECTOR = "0x01ffc9a7" as const; const FN_INPUTS = [ { - name: "interfaceId", type: "bytes4", + name: "interfaceId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts index 10b2fa5dba7..a2f63658455 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyalty" function. @@ -23,26 +23,26 @@ export type GetRoyaltyParams = WithOverrides<{ export const FN_SELECTOR = "0xf533b802" as const; const FN_INPUTS = [ { - name: "tokenAddress", type: "address", + name: "tokenAddress", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "value", type: "uint256", + name: "value", }, ] as const; const FN_OUTPUTS = [ { - name: "recipients", type: "address[]", + name: "recipients", }, { - name: "amounts", type: "uint256[]", + name: "amounts", }, ] as const; @@ -149,19 +149,8 @@ export function getRoyalty( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -171,5 +160,16 @@ export function getRoyalty( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts index fd34974caa0..6b3ae0a2749 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyEngine" function. @@ -21,8 +21,8 @@ export type SetRoyaltyEngineParams = WithOverrides<{ export const FN_SELECTOR = "0x21ede032" as const; const FN_INPUTS = [ { - name: "_royaltyEngineAddress", type: "address", + name: "_royaltyEngineAddress", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setRoyaltyEngine( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.royaltyEngineAddress] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts index ad7179fa3bb..e3a8808253c 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts @@ -1,48 +1,49 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", components: [ { + type: "tuple", + name: "metadata", components: [ { - name: "name", type: "string", + name: "name", }, { - name: "metadataURI", type: "string", + name: "metadataURI", }, { - name: "implementation", type: "address", + name: "implementation", }, ], - name: "metadata", - type: "tuple", }, { + type: "tuple[]", + name: "functions", components: [ { - name: "functionSelector", type: "bytes4", + name: "functionSelector", }, { - name: "functionSignature", type: "string", + name: "functionSignature", }, ], - name: "functions", - type: "tuple[]", }, ], - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts index f5e348496b7..6ad5e011e49 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addExtension" function. @@ -40,42 +40,42 @@ export type AddExtensionParams = WithOverrides<{ export const FN_SELECTOR = "0xe05688fe" as const; const FN_INPUTS = [ { + type: "tuple", + name: "extension", components: [ { + type: "tuple", + name: "metadata", components: [ { - name: "name", type: "string", + name: "name", }, { - name: "metadataURI", type: "string", + name: "metadataURI", }, { - name: "implementation", type: "address", + name: "implementation", }, ], - name: "metadata", - type: "tuple", }, { + type: "tuple[]", + name: "functions", components: [ { - name: "functionSelector", type: "bytes4", + name: "functionSelector", }, { - name: "functionSignature", type: "string", + name: "functionSignature", }, ], - name: "functions", - type: "tuple[]", }, ], - name: "extension", - type: "tuple", }, ] as const; const FN_OUTPUTS = [] as const; @@ -173,23 +173,23 @@ export function addExtension( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.extension] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts index e44ffee9980..34a7822686b 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "removeExtension" function. @@ -21,8 +21,8 @@ export type RemoveExtensionParams = WithOverrides<{ export const FN_SELECTOR = "0xee7d2adf" as const; const FN_INPUTS = [ { - name: "extensionName", type: "string", + name: "extensionName", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function removeExtension( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.extensionName] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts index 5343718a58f..73082960b11 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ABI" function. @@ -20,12 +20,12 @@ export type ABIParams = { export const FN_SELECTOR = "0x2203ab56" as const; const FN_INPUTS = [ { - name: "name", type: "bytes32", + name: "name", }, { - name: "contentTypes", type: "uint256", + name: "contentTypes", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts index 27820676373..bad6f8ddea0 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addr" function. @@ -16,8 +16,8 @@ export type AddrParams = { export const FN_SELECTOR = "0x3b3b57de" as const; const FN_INPUTS = [ { - name: "name", type: "bytes32", + name: "name", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts index 9a1bd4f9e85..dc86243a44a 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "contenthash" function. @@ -16,8 +16,8 @@ export type ContenthashParams = { export const FN_SELECTOR = "0xbc1c58d1" as const; const FN_INPUTS = [ { - name: "name", type: "bytes32", + name: "name", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts index 7e785fe9ad3..660beaf8001 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "name" function. @@ -16,8 +16,8 @@ export type NameParams = { export const FN_SELECTOR = "0x691f3431" as const; const FN_INPUTS = [ { - name: "name", type: "bytes32", + name: "name", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts index 0173ffa5d1c..26356b9a164 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "pubkey" function. @@ -16,18 +16,18 @@ export type PubkeyParams = { export const FN_SELECTOR = "0xc8690233" as const; const FN_INPUTS = [ { - name: "name", type: "bytes32", + name: "name", }, ] as const; const FN_OUTPUTS = [ { - name: "x", type: "bytes32", + name: "x", }, { - name: "y", type: "bytes32", + name: "y", }, ] as const; diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts index 8e7eae1f029..48245cd713c 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "text" function. @@ -17,12 +17,12 @@ export type TextParams = { export const FN_SELECTOR = "0x59d1d43c" as const; const FN_INPUTS = [ { - name: "name", type: "bytes32", + name: "name", }, { - name: "key", type: "string", + name: "key", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts index 20af79874cb..578f2a95426 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "name" function. @@ -16,8 +16,8 @@ export type NameParams = { export const FN_SELECTOR = "0x691f3431" as const; const FN_INPUTS = [ { - name: "node", type: "bytes32", + name: "node", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts index 2c9bcbb9fcb..3fe798c55dd 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "resolve" function. @@ -17,12 +17,12 @@ export type ResolveParams = { export const FN_SELECTOR = "0x9061b923" as const; const FN_INPUTS = [ { - name: "name", type: "bytes", + name: "name", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts index f9e4de7d1a1..6fe4e4d1c1f 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "reverse" function. @@ -19,8 +19,8 @@ export type ReverseParams = { export const FN_SELECTOR = "0xec11c823" as const; const FN_INPUTS = [ { - name: "reverseName", type: "bytes", + name: "reverseName", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts index 73f45348e7c..c676d387afb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts index 91ed4f0c74d..0c3088f8948 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. @@ -16,8 +16,8 @@ export type GetBatchIdAtIndexParams = { export const FN_SELECTOR = "0x2419f51b" as const; const FN_INPUTS = [ { - name: "_index", type: "uint256", + name: "_index", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts index 32684a2ec82..b4467275ef2 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyClaim" function. @@ -37,56 +37,56 @@ export type VerifyClaimParams = { export const FN_SELECTOR = "0xea1def9c" as const; const FN_INPUTS = [ { - name: "_conditionId", type: "uint256", + name: "_conditionId", }, { - name: "_claimer", type: "address", + name: "_claimer", }, { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, { - name: "_currency", type: "address", + name: "_currency", }, { - name: "_pricePerToken", type: "uint256", + name: "_pricePerToken", }, { + type: "tuple", + name: "_allowlistProof", components: [ { - name: "proof", type: "bytes32[]", + name: "proof", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, ], - name: "_allowlistProof", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "isOverride", type: "bool", + name: "isOverride", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts index 534892538b5..6684c87c397 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. @@ -18,8 +18,8 @@ export type FreezeBatchBaseURIParams = WithOverrides<{ export const FN_SELECTOR = "0xa07ced9e" as const; const FN_INPUTS = [ { - name: "_index", type: "uint256", + name: "_index", }, ] as const; const FN_OUTPUTS = [] as const; @@ -119,23 +119,23 @@ export function freezeBatchBaseURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.index] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts index c7f10409d0f..55a70ef2392 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. @@ -22,12 +22,12 @@ export type SetMaxTotalSupplyParams = WithOverrides<{ export const FN_SELECTOR = "0x87198cf2" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_maxTotalSupply", type: "uint256", + name: "_maxTotalSupply", }, ] as const; const FN_OUTPUTS = [] as const; @@ -133,23 +133,23 @@ export function setMaxTotalSupply( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId, resolvedOptions.maxTotalSupply] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts index fca39ad0b4b..5076f66c719 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleRecipientForToken" function. @@ -22,12 +22,12 @@ export type SetSaleRecipientForTokenParams = WithOverrides<{ export const FN_SELECTOR = "0x29c49b9b" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_saleRecipient", type: "address", + name: "_saleRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -137,23 +137,23 @@ export function setSaleRecipientForToken( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId, resolvedOptions.saleRecipient] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts index cf52797da62..0c718deff5a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. @@ -19,12 +19,12 @@ export type UpdateBatchBaseURIParams = WithOverrides<{ export const FN_SELECTOR = "0xde903ddd" as const; const FN_INPUTS = [ { - name: "_index", type: "uint256", + name: "_index", }, { - name: "_uri", type: "string", + name: "_uri", }, ] as const; const FN_OUTPUTS = [] as const; @@ -127,23 +127,23 @@ export function updateBatchBaseURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.index, resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts index fdae53acdc8..2762fcdd17d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AirdropFailed" event. @@ -46,8 +46,8 @@ export type AirdropFailedEventFilters = Partial<{ */ export function airdropFailedEvent(filters: AirdropFailedEventFilters = {}) { return prepareEvent({ - filters, signature: "event AirdropFailed(address indexed tokenAddress, address indexed tokenOwner, address indexed recipient, uint256 tokenId, uint256 amount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts index 03a10e0d4e6..df9e69cfcfb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC1155" function. @@ -34,30 +34,30 @@ export type AirdropERC1155Params = WithOverrides<{ export const FN_SELECTOR = "0x41444690" as const; const FN_INPUTS = [ { - name: "tokenAddress", type: "address", + name: "tokenAddress", }, { - name: "tokenOwner", type: "address", + name: "tokenOwner", }, { + type: "tuple[]", + name: "contents", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "amount", type: "uint256", + name: "amount", }, ], - name: "contents", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [] as const; @@ -165,19 +165,8 @@ export function airdropERC1155( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -187,5 +176,16 @@ export function airdropERC1155( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts index a51a976cc27..fa7b986927c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. @@ -46,8 +46,8 @@ export type TokensClaimedEventFilters = Partial<{ */ export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensClaimed(address indexed claimer, address indexed receiver, uint256 indexed tokenId, uint256 quantityClaimed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts index 6678253a7c9..7ec6e819a8d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. @@ -25,24 +25,24 @@ export type ClaimParams = WithOverrides<{ export const FN_SELECTOR = "0x38524a10" as const; const FN_INPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "proofs", type: "bytes32[]", + name: "proofs", }, { - name: "proofMaxQuantityForWallet", type: "uint256", + name: "proofMaxQuantityForWallet", }, ] as const; const FN_OUTPUTS = [] as const; @@ -156,19 +156,8 @@ export function claim( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -180,5 +169,16 @@ export function claim( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts index 90310881fed..f36a7e6d858 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. @@ -20,16 +20,16 @@ export type BurnParams = WithOverrides<{ export const FN_SELECTOR = "0xf5298aca" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, { - name: "id", type: "uint256", + name: "id", }, { - name: "value", type: "uint256", + name: "value", }, ] as const; const FN_OUTPUTS = [] as const; @@ -135,19 +135,8 @@ export function burn( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -157,5 +146,16 @@ export function burn( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts index adf8783c218..630fd7070d8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burnBatch" function. @@ -20,16 +20,16 @@ export type BurnBatchParams = WithOverrides<{ export const FN_SELECTOR = "0x6b20c454" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, { - name: "ids", type: "uint256[]", + name: "ids", }, { - name: "values", type: "uint256[]", + name: "values", }, ] as const; const FN_OUTPUTS = [] as const; @@ -137,19 +137,8 @@ export function burnBatch( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -159,5 +148,16 @@ export function burnBatch( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts index a51a976cc27..fa7b986927c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. @@ -46,8 +46,8 @@ export type TokensClaimedEventFilters = Partial<{ */ export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensClaimed(address indexed claimer, address indexed receiver, uint256 indexed tokenId, uint256 quantityClaimed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/read/verifyClaim.ts index 3a46dec6f77..8344ea32448 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/read/verifyClaim.ts @@ -17,16 +17,16 @@ export type VerifyClaimParams = { export const FN_SELECTOR = "0x4bbb1abf" as const; const FN_INPUTS = [ { - name: "_claimer", type: "address", + name: "_claimer", }, { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, ] as const; const FN_OUTPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts index c1bdd3f62e5..daeeb9564ec 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. @@ -20,16 +20,16 @@ export type ClaimParams = WithOverrides<{ export const FN_SELECTOR = "0x2bc43fd9" as const; const FN_INPUTS = [ { - name: "_receiver", type: "address", + name: "_receiver", }, { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, ] as const; const FN_OUTPUTS = [] as const; @@ -135,19 +135,8 @@ export function claim( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -157,5 +146,16 @@ export function claim( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts index 7a27f5af36d..777715966d4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ClaimConditionsUpdated" event. @@ -36,8 +36,8 @@ export function claimConditionsUpdatedEvent( filters: ClaimConditionsUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event ClaimConditionsUpdated(uint256 indexed tokenId, (uint256 startTimestamp, uint256 maxClaimableSupply, uint256 supplyClaimed, uint256 quantityLimitPerWallet, bytes32 merkleRoot, uint256 pricePerToken, address currency, string metadata)[] claimConditions, bool resetEligibility)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts index 84638a2129a..e1accf0d244 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. @@ -46,8 +46,8 @@ export type TokensClaimedEventFilters = Partial<{ */ export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensClaimed(uint256 indexed claimConditionIndex, address indexed claimer, address indexed receiver, uint256 tokenId, uint256 quantityClaimed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts index 9c8220f9e29..64dd8ca345d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimCondition" function. @@ -16,18 +16,18 @@ export type ClaimConditionParams = { export const FN_SELECTOR = "0xe9703d25" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ { - name: "currentStartId", type: "uint256", + name: "currentStartId", }, { - name: "count", type: "uint256", + name: "count", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts index 3a1a57e210c..1684879b155 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getActiveClaimConditionId" function. @@ -16,8 +16,8 @@ export type GetActiveClaimConditionIdParams = { export const FN_SELECTOR = "0x5ab063e8" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts index 829a3eae7c0..7da28e54495 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionById" function. @@ -20,52 +20,52 @@ export type GetClaimConditionByIdParams = { export const FN_SELECTOR = "0xd45b28d7" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_conditionId", type: "uint256", + name: "_conditionId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "condition", components: [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ], - name: "condition", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts index 68b510c857e..8c3db1e8d27 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. @@ -36,50 +36,50 @@ export type ClaimParams = WithOverrides<{ export const FN_SELECTOR = "0x57bc3d78" as const; const FN_INPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { + type: "tuple", + name: "allowlistProof", components: [ { - name: "proof", type: "bytes32[]", + name: "proof", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, ], - name: "allowlistProof", - type: "tuple", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -201,19 +201,8 @@ export function claim( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -227,5 +216,16 @@ export function claim( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts index ef17b4dacc7..36b0884c34c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. @@ -36,50 +36,50 @@ export type SetClaimConditionsParams = WithOverrides<{ export const FN_SELECTOR = "0x183718d1" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, { + type: "tuple[]", + name: "phases", components: [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ], - name: "phases", - type: "tuple[]", }, { - name: "resetClaimEligibility", type: "bool", + name: "resetClaimEligibility", }, ] as const; const FN_OUTPUTS = [] as const; @@ -189,19 +189,8 @@ export function setClaimConditions( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -211,5 +200,16 @@ export function setClaimConditions( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts index a5e6a7e3072..21040cdf986 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ClaimConditionUpdated" event. @@ -36,8 +36,8 @@ export function claimConditionUpdatedEvent( filters: ClaimConditionUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event ClaimConditionUpdated(uint256 indexed tokenId, (uint256 startTimestamp, uint256 maxClaimableSupply, uint256 supplyClaimed, uint256 quantityLimitPerWallet, bytes32 merkleRoot, uint256 pricePerToken, address currency, string metadata) condition, bool resetEligibility)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts index a51a976cc27..fa7b986927c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. @@ -46,8 +46,8 @@ export type TokensClaimedEventFilters = Partial<{ */ export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensClaimed(address indexed claimer, address indexed receiver, uint256 indexed tokenId, uint256 quantityClaimed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts index abbb7c6b067..04b44c4486c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimCondition" function. @@ -16,42 +16,42 @@ export type ClaimConditionParams = { export const FN_SELECTOR = "0xe9703d25" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts index 68b510c857e..8c3db1e8d27 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. @@ -36,50 +36,50 @@ export type ClaimParams = WithOverrides<{ export const FN_SELECTOR = "0x57bc3d78" as const; const FN_INPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { + type: "tuple", + name: "allowlistProof", components: [ { - name: "proof", type: "bytes32[]", + name: "proof", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, ], - name: "allowlistProof", - type: "tuple", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -201,19 +201,8 @@ export function claim( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -227,5 +216,16 @@ export function claim( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts index 3a872f85105..043ca48332c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. @@ -36,50 +36,50 @@ export type SetClaimConditionsParams = WithOverrides<{ export const FN_SELECTOR = "0x8affb89f" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, { + type: "tuple", + name: "phase", components: [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ], - name: "phase", - type: "tuple", }, { - name: "resetClaimEligibility", type: "bool", + name: "resetClaimEligibility", }, ] as const; const FN_OUTPUTS = [] as const; @@ -189,19 +189,8 @@ export function setClaimConditions( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -211,5 +200,16 @@ export function setClaimConditions( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts index 0812f02a604..96daa76e1c0 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ApprovalForAll" event. @@ -40,8 +40,8 @@ export type ApprovalForAllEventFilters = Partial<{ */ export function approvalForAllEvent(filters: ApprovalForAllEventFilters = {}) { return prepareEvent({ - filters, signature: "event ApprovalForAll(address indexed _owner, address indexed _operator, bool _approved)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts index 6bf4aef7795..e293e23488c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TransferBatch" event. @@ -46,8 +46,8 @@ export type TransferBatchEventFilters = Partial<{ */ export function transferBatchEvent(filters: TransferBatchEventFilters = {}) { return prepareEvent({ - filters, signature: "event TransferBatch(address indexed _operator, address indexed _from, address indexed _to, uint256[] tokenIds, uint256[] _values)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts index fda95005b26..43726f4eeea 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TransferSingle" event. @@ -46,8 +46,8 @@ export type TransferSingleEventFilters = Partial<{ */ export function transferSingleEvent(filters: TransferSingleEventFilters = {}) { return prepareEvent({ - filters, signature: "event TransferSingle(address indexed _operator, address indexed _from, address indexed _to, uint256 tokenId, uint256 _value)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts index cc015d354d3..4993d85f7ee 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "URI" event. @@ -34,7 +34,7 @@ export type URIEventFilters = Partial<{ */ export function uRIEvent(filters: URIEventFilters = {}) { return prepareEvent({ - filters, signature: "event URI(string _value, uint256 indexed tokenId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts index b38f6b85e23..06edf5575c1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. @@ -17,12 +17,12 @@ export type BalanceOfParams = { export const FN_SELECTOR = "0x00fdd58e" as const; const FN_INPUTS = [ { - name: "_owner", type: "address", + name: "_owner", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts index 6f321bad1cd..ecfeac7aa8a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOfBatch" function. @@ -20,12 +20,12 @@ export type BalanceOfBatchParams = { export const FN_SELECTOR = "0x4e1273f4" as const; const FN_INPUTS = [ { - name: "_owners", type: "address[]", + name: "_owners", }, { - name: "tokenIds", type: "uint256[]", + name: "tokenIds", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts index 91fd045ab17..ae49f338a36 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isApprovedForAll" function. @@ -17,12 +17,12 @@ export type IsApprovedForAllParams = { export const FN_SELECTOR = "0xe985e9c5" as const; const FN_INPUTS = [ { - name: "_owner", type: "address", + name: "_owner", }, { - name: "_operator", type: "address", + name: "_operator", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts index 349c73b8a2e..293d69ec291 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "totalSupply" function. @@ -16,8 +16,8 @@ export type TotalSupplyParams = { export const FN_SELECTOR = "0xbd85b039" as const; const FN_INPUTS = [ { - name: "id", type: "uint256", + name: "id", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts index f98a426d732..16c6c93fc3b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uri" function. @@ -16,8 +16,8 @@ export type UriParams = { export const FN_SELECTOR = "0x0e89341c" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts index 94ddf0ac95b..69941c9ab48 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "safeBatchTransferFrom" function. @@ -25,24 +25,24 @@ export type SafeBatchTransferFromParams = WithOverrides<{ export const FN_SELECTOR = "0x2eb2c2d6" as const; const FN_INPUTS = [ { - name: "_from", type: "address", + name: "_from", }, { - name: "_to", type: "address", + name: "_to", }, { - name: "tokenIds", type: "uint256[]", + name: "tokenIds", }, { - name: "_values", type: "uint256[]", + name: "_values", }, { - name: "_data", type: "bytes", + name: "_data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -162,19 +162,8 @@ export function safeBatchTransferFrom( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -186,5 +175,16 @@ export function safeBatchTransferFrom( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts index 9ee70134846..31dc293f5dc 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "safeTransferFrom" function. @@ -22,24 +22,24 @@ export type SafeTransferFromParams = WithOverrides<{ export const FN_SELECTOR = "0xf242432a" as const; const FN_INPUTS = [ { - name: "_from", type: "address", + name: "_from", }, { - name: "_to", type: "address", + name: "_to", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "_value", type: "uint256", + name: "_value", }, { - name: "_data", type: "bytes", + name: "_data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -155,19 +155,8 @@ export function safeTransferFrom( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -179,5 +168,16 @@ export function safeTransferFrom( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts index 0d720b5aedb..4d62b4b8e95 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setApprovalForAll" function. @@ -19,12 +19,12 @@ export type SetApprovalForAllParams = WithOverrides<{ export const FN_SELECTOR = "0xa22cb465" as const; const FN_INPUTS = [ { - name: "_operator", type: "address", + name: "_operator", }, { - name: "_approved", type: "bool", + name: "_approved", }, ] as const; const FN_OUTPUTS = [] as const; @@ -127,23 +127,23 @@ export function setApprovalForAll( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.operator, resolvedOptions.approved] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts index edf264b16d5..19dddf43c7c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts index 26d3510c06c..0a0627687ed 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. @@ -19,8 +19,8 @@ export type SupportsInterfaceParams = { export const FN_SELECTOR = "0x01ffc9a7" as const; const FN_INPUTS = [ { - name: "interfaceId", type: "bytes4", + name: "interfaceId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts index eaedd907454..b21c1c5e90d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onERC1155BatchReceived" function. @@ -22,24 +22,24 @@ export type OnERC1155BatchReceivedParams = WithOverrides<{ export const FN_SELECTOR = "0xbc197c81" as const; const FN_INPUTS = [ { - name: "operator", type: "address", + name: "operator", }, { - name: "from", type: "address", + name: "from", }, { - name: "ids", type: "uint256[]", + name: "ids", }, { - name: "values", type: "uint256[]", + name: "values", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [ @@ -165,19 +165,8 @@ export function onERC1155BatchReceived( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -189,5 +178,16 @@ export function onERC1155BatchReceived( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts index d84c3bb6dbc..cb3d27032ac 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onERC1155Received" function. @@ -22,24 +22,24 @@ export type OnERC1155ReceivedParams = WithOverrides<{ export const FN_SELECTOR = "0xf23a6e61" as const; const FN_INPUTS = [ { - name: "operator", type: "address", + name: "operator", }, { - name: "from", type: "address", + name: "from", }, { - name: "id", type: "uint256", + name: "id", }, { - name: "value", type: "uint256", + name: "value", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [ @@ -161,19 +161,8 @@ export function onERC1155Received( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -185,5 +174,16 @@ export function onERC1155Received( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts index 79359b01906..4f7225de3d2 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositRewardTokens" function. @@ -18,8 +18,8 @@ export type DepositRewardTokensParams = WithOverrides<{ export const FN_SELECTOR = "0x16c621e0" as const; const FN_INPUTS = [ { - name: "_amount", type: "uint256", + name: "_amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -119,23 +119,23 @@ export function depositRewardTokens( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts index 24930ac8e9e..aab127edc73 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. @@ -18,8 +18,8 @@ export type WithdrawRewardTokensParams = WithOverrides<{ export const FN_SELECTOR = "0xcb43b2dd" as const; const FN_INPUTS = [ { - name: "_amount", type: "uint256", + name: "_amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -121,23 +121,23 @@ export function withdrawRewardTokens( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts index b998658e49e..dd2a413af02 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensLazyMinted" event. @@ -36,8 +36,8 @@ export function tokensLazyMintedEvent( filters: TokensLazyMintedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensLazyMinted(uint256 indexed startTokenId, uint256 endTokenId, string baseURI, bytes encryptedBaseURI)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts index 90f6de754f4..5a175f1a89f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "lazyMint" function. @@ -23,22 +23,22 @@ export type LazyMintParams = WithOverrides<{ export const FN_SELECTOR = "0xd37c353b" as const; const FN_INPUTS = [ { - name: "amount", type: "uint256", + name: "amount", }, { - name: "baseURIForTokens", type: "string", + name: "baseURIForTokens", }, { - name: "extraData", type: "bytes", + name: "extraData", }, ] as const; const FN_OUTPUTS = [ { - name: "batchId", type: "uint256", + name: "batchId", }, ] as const; @@ -143,19 +143,8 @@ export function lazyMint( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -165,5 +154,16 @@ export function lazyMint( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts index e86cc980365..45a4d431a21 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. @@ -40,8 +40,8 @@ export type TokensMintedEventFilters = Partial<{ */ export function tokensMintedEvent(filters: TokensMintedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensMinted(address indexed mintedTo, uint256 indexed tokenIdMinted, string uri, uint256 quantityMinted)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts index 84a299fbe0b..b28be8d3f50 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. @@ -21,20 +21,20 @@ export type MintToParams = WithOverrides<{ export const FN_SELECTOR = "0xb03f4528" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "uri", type: "string", + name: "uri", }, { - name: "amount", type: "uint256", + name: "amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -144,19 +144,8 @@ export function mintTo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -167,5 +156,16 @@ export function mintTo( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts index 26d3510c06c..0a0627687ed 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. @@ -19,8 +19,8 @@ export type SupportsInterfaceParams = { export const FN_SELECTOR = "0x01ffc9a7" as const; const FN_INPUTS = [ { - name: "interfaceId", type: "bytes4", + name: "interfaceId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts index 003e54a53cc..0ce21caab41 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts index 7bdae1392a5..3d42dad88ac 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTokenURI" function. @@ -19,12 +19,12 @@ export type SetTokenURIParams = WithOverrides<{ export const FN_SELECTOR = "0x162094c4" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_uri", type: "string", + name: "_uri", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function setTokenURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId, resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts index 285247a806b..a2f1c1da7bb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackCreated" event. @@ -34,8 +34,8 @@ export type PackCreatedEventFilters = Partial<{ */ export function packCreatedEvent(filters: PackCreatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event PackCreated(uint256 indexed packId, address recipient, uint256 totalPacksCreated)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts index f06d0783ba6..aa6b44b5de6 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpened" event. @@ -40,8 +40,8 @@ export type PackOpenedEventFilters = Partial<{ */ export function packOpenedEvent(filters: PackOpenedEventFilters = {}) { return prepareEvent({ - filters, signature: "event PackOpened(uint256 indexed packId, address indexed opener, uint256 numOfPacksOpened, (address assetContract, uint8 tokenType, uint256 tokenId, uint256 totalAmount)[] rewardUnitsDistributed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts index 2bac3df8ffe..7b9a4ae3ada 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackUpdated" event. @@ -34,8 +34,8 @@ export type PackUpdatedEventFilters = Partial<{ */ export function packUpdatedEvent(filters: PackUpdatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event PackUpdated(uint256 indexed packId, address recipient, uint256 totalPacksCreated)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts index b76f966b0ff..651159cc31f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPack" function. @@ -44,56 +44,56 @@ export type CreatePackParams = WithOverrides<{ export const FN_SELECTOR = "0x092e6075" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "contents", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "totalAmount", type: "uint256", + name: "totalAmount", }, ], - name: "contents", - type: "tuple[]", }, { - name: "numOfRewardUnits", type: "uint256[]", + name: "numOfRewardUnits", }, { - name: "packUri", type: "string", + name: "packUri", }, { - name: "openStartTimestamp", type: "uint128", + name: "openStartTimestamp", }, { - name: "amountDistributedPerOpen", type: "uint128", + name: "amountDistributedPerOpen", }, { - name: "recipient", type: "address", + name: "recipient", }, ] as const; const FN_OUTPUTS = [ { - name: "packId", type: "uint256", + name: "packId", }, { - name: "packTotalSupply", type: "uint256", + name: "packTotalSupply", }, ] as const; @@ -212,19 +212,8 @@ export function createPack( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -237,5 +226,16 @@ export function createPack( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts index e5ff179ee6c..b76754ccb3e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPack" function. @@ -22,35 +22,35 @@ export type OpenPackParams = WithOverrides<{ export const FN_SELECTOR = "0x914e126a" as const; const FN_INPUTS = [ { - name: "packId", type: "uint256", + name: "packId", }, { - name: "amountToOpen", type: "uint256", + name: "amountToOpen", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "totalAmount", type: "uint256", + name: "totalAmount", }, ], - type: "tuple[]", }, ] as const; @@ -148,23 +148,23 @@ export function openPack( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.packId, resolvedOptions.amountToOpen] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index d5bd6f7d865..1700b14ae6d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpenRequested" event. @@ -42,8 +42,8 @@ export function packOpenRequestedEvent( filters: PackOpenRequestedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event PackOpenRequested(address indexed opener, uint256 indexed packId, uint256 amountToOpen, uint256 requestId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index dee10b5c0bb..973a8afa50d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackRandomnessFulfilled" event. @@ -42,8 +42,8 @@ export function packRandomnessFulfilledEvent( filters: PackRandomnessFulfilledEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event PackRandomnessFulfilled(uint256 indexed packId, uint256 indexed requestId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts index 7db5e93a362..dad4ba854e1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "canClaimRewards" function. @@ -16,8 +16,8 @@ export type CanClaimRewardsParams = { export const FN_SELECTOR = "0xa9b47a66" as const; const FN_INPUTS = [ { - name: "_opener", type: "address", + name: "_opener", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts index 2c5c67dcc1d..f27ff5f2568 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; @@ -7,26 +7,26 @@ export const FN_SELECTOR = "0x372500ab" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "rewardUnits", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "totalAmount", type: "uint256", + name: "totalAmount", }, ], - name: "rewardUnits", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index 53eef2b87f1..a062fe62999 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. @@ -26,16 +26,16 @@ export type OpenPackAndClaimRewardsParams = WithOverrides<{ export const FN_SELECTOR = "0xac296b3f" as const; const FN_INPUTS = [ { - name: "_packId", type: "uint256", + name: "_packId", }, { - name: "_amountToOpen", type: "uint256", + name: "_amountToOpen", }, { - name: "_callBackGasLimit", type: "uint32", + name: "_callBackGasLimit", }, ] as const; const FN_OUTPUTS = [ @@ -153,19 +153,8 @@ export function openPackAndClaimRewards( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -175,5 +164,16 @@ export function openPackAndClaimRewards( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts index fbe3d4fcabd..ca1f6d20821 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. @@ -48,8 +48,8 @@ export function tokensMintedWithSignatureEvent( filters: TokensMintedWithSignatureEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 indexed tokenIdMinted, (address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, uint256 tokenId, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) mintRequest)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts index 7d9b75e617f..09bb704a2ca 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. @@ -34,72 +34,72 @@ export type VerifyParams = { export const FN_SELECTOR = "0xb17cd86f" as const; const FN_INPUTS = [ { + type: "tuple", + name: "req", components: [ { - name: "to", type: "address", + name: "to", }, { - name: "royaltyRecipient", type: "address", + name: "royaltyRecipient", }, { - name: "royaltyBps", type: "uint256", + name: "royaltyBps", }, { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "uri", type: "string", + name: "uri", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "validityStartTimestamp", type: "uint128", + name: "validityStartTimestamp", }, { - name: "validityEndTimestamp", type: "uint128", + name: "validityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "req", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [ { - name: "success", type: "bool", + name: "success", }, { - name: "signer", type: "address", + name: "signer", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts index 988aa78d23d..6a85a154053 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. @@ -36,62 +36,62 @@ export type MintWithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0x98a6e993" as const; const FN_INPUTS = [ { + type: "tuple", + name: "payload", components: [ { - name: "to", type: "address", + name: "to", }, { - name: "royaltyRecipient", type: "address", + name: "royaltyRecipient", }, { - name: "royaltyBps", type: "uint256", + name: "royaltyBps", }, { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "uri", type: "string", + name: "uri", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "validityStartTimestamp", type: "uint128", + name: "validityStartTimestamp", }, { - name: "validityEndTimestamp", type: "uint128", + name: "validityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "payload", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -194,23 +194,23 @@ export function mintWithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.payload, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts index 1a218d64ec6..3caf37ca828 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardsClaimed" event. @@ -34,8 +34,8 @@ export type RewardsClaimedEventFilters = Partial<{ */ export function rewardsClaimedEvent(filters: RewardsClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event RewardsClaimed(address indexed staker, uint256 rewardAmount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts index 10b199d165b..57cc777cc94 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensStaked" event. @@ -40,8 +40,8 @@ export type TokensStakedEventFilters = Partial<{ */ export function tokensStakedEvent(filters: TokensStakedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensStaked(address indexed staker, uint256 indexed tokenId, uint256 amount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts index dfe8e2c7093..93b50de0267 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWithdrawn" event. @@ -42,8 +42,8 @@ export function tokensWithdrawnEvent( filters: TokensWithdrawnEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensWithdrawn(address indexed staker, uint256 indexed tokenId, uint256 amount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts index ef17c6bf886..cc60bb803ec 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UpdatedRewardsPerUnitTime" event. @@ -36,8 +36,8 @@ export function updatedRewardsPerUnitTimeEvent( filters: UpdatedRewardsPerUnitTimeEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event UpdatedRewardsPerUnitTime(uint256 indexed _tokenId, uint256 oldRewardsPerUnitTime, uint256 newRewardsPerUnitTime)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts index df51fd0eff5..1bdc0e9edab 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UpdatedTimeUnit" event. @@ -36,8 +36,8 @@ export function updatedTimeUnitEvent( filters: UpdatedTimeUnitEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event UpdatedTimeUnit(uint256 indexed _tokenId, uint256 oldTimeUnit, uint256 newTimeUnit)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts index f8e34b3afa6..381a97e4ac0 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfo" function. @@ -16,22 +16,22 @@ export type GetStakeInfoParams = { export const FN_SELECTOR = "0xc3453153" as const; const FN_INPUTS = [ { - name: "staker", type: "address", + name: "staker", }, ] as const; const FN_OUTPUTS = [ { - name: "_tokensStaked", type: "uint256[]", + name: "_tokensStaked", }, { - name: "_tokenAmounts", type: "uint256[]", + name: "_tokenAmounts", }, { - name: "_totalRewards", type: "uint256", + name: "_totalRewards", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts index 9f1ebcdddc3..95246a9bf77 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfoForToken" function. @@ -17,22 +17,22 @@ export type GetStakeInfoForTokenParams = { export const FN_SELECTOR = "0x168fb5c5" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "staker", type: "address", + name: "staker", }, ] as const; const FN_OUTPUTS = [ { - name: "_tokensStaked", type: "uint256", + name: "_tokensStaked", }, { - name: "_rewards", type: "uint256", + name: "_rewards", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts index 7a85cb7c3cb..72773f0c947 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimRewards" function. @@ -18,8 +18,8 @@ export type ClaimRewardsParams = WithOverrides<{ export const FN_SELECTOR = "0x0962ef79" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function claimRewards( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts index e33708310d0..4640d2664d8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "stake" function. @@ -19,12 +19,12 @@ export type StakeParams = WithOverrides<{ export const FN_SELECTOR = "0x952e68cf" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "amount", type: "uint64", + name: "amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -123,23 +123,23 @@ export function stake( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId, resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts index 564158e54ed..261bf72277e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. @@ -19,12 +19,12 @@ export type WithdrawParams = WithOverrides<{ export const FN_SELECTOR = "0xc434dcfe" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "amount", type: "uint64", + name: "amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -123,23 +123,23 @@ export function withdraw( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId, resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts index 9761a5cdbfa..a1c7ae20ebc 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x75794a3c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts index cfc9abc6131..b276e41eaab 100644 --- a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isValidSignature" function. @@ -17,12 +17,12 @@ export type IsValidSignatureParams = { export const FN_SELECTOR = "0x1626ba7e" as const; const FN_INPUTS = [ { - name: "hash", type: "bytes32", + name: "hash", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts index 15c9f31dc9b..da351e0658d 100644 --- a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. @@ -19,8 +19,8 @@ export type SupportsInterfaceParams = { export const FN_SELECTOR = "0x01ffc9a7" as const; const FN_INPUTS = [ { - name: "interfaceId", type: "bytes4", + name: "interfaceId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts index e2032fab9d0..e3d2a786c0f 100644 --- a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts index 22b945be9c4..5033086ff1f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyClaim" function. @@ -36,52 +36,52 @@ export type VerifyClaimParams = { export const FN_SELECTOR = "0x23a2902b" as const; const FN_INPUTS = [ { - name: "_conditionId", type: "uint256", + name: "_conditionId", }, { - name: "_claimer", type: "address", + name: "_claimer", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, { - name: "_currency", type: "address", + name: "_currency", }, { - name: "_pricePerToken", type: "uint256", + name: "_pricePerToken", }, { + type: "tuple", + name: "_allowlistProof", components: [ { - name: "proof", type: "bytes32[]", + name: "proof", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, ], - name: "_allowlistProof", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "isOverride", type: "bool", + name: "isOverride", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts index b84ff753d85..cd60467baae 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AirdropFailed" event. @@ -46,8 +46,8 @@ export type AirdropFailedEventFilters = Partial<{ */ export function airdropFailedEvent(filters: AirdropFailedEventFilters = {}) { return prepareEvent({ - filters, signature: "event AirdropFailed(address indexed tokenAddress, address indexed tokenOwner, address indexed recipient, uint256 amount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts index 78ffaebbb8c..9499d363326 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC20" function. @@ -33,26 +33,26 @@ export type AirdropERC20Params = WithOverrides<{ export const FN_SELECTOR = "0x0670b2b3" as const; const FN_INPUTS = [ { - name: "tokenAddress", type: "address", + name: "tokenAddress", }, { - name: "tokenOwner", type: "address", + name: "tokenOwner", }, { + type: "tuple[]", + name: "contents", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "amount", type: "uint256", + name: "amount", }, ], - name: "contents", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [] as const; @@ -160,19 +160,8 @@ export function airdropERC20( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -182,5 +171,16 @@ export function airdropERC20( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts index 051402a467d..980f90c08d6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. @@ -40,8 +40,8 @@ export type TokensClaimedEventFilters = Partial<{ */ export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensClaimed(address indexed claimer, address indexed receiver, uint256 quantityClaimed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts index ede95cd288e..315fd89acb6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. @@ -24,20 +24,20 @@ export type ClaimParams = WithOverrides<{ export const FN_SELECTOR = "0x3b4b57b0" as const; const FN_INPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "proofs", type: "bytes32[]", + name: "proofs", }, { - name: "proofMaxQuantityForWallet", type: "uint256", + name: "proofMaxQuantityForWallet", }, ] as const; const FN_OUTPUTS = [] as const; @@ -147,19 +147,8 @@ export function claim( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -170,5 +159,16 @@ export function claim( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts index 023c029e5a1..14e6c3521f6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. @@ -18,8 +18,8 @@ export type BurnParams = WithOverrides<{ export const FN_SELECTOR = "0x42966c68" as const; const FN_INPUTS = [ { - name: "amount", type: "uint256", + name: "amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function burn( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts index bdf88fcc32f..0a39df5ef61 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burnFrom" function. @@ -19,12 +19,12 @@ export type BurnFromParams = WithOverrides<{ export const FN_SELECTOR = "0x79cc6790" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, { - name: "amount", type: "uint256", + name: "amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -123,23 +123,23 @@ export function burnFrom( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.account, resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts index 82f026e2b60..32ae497829f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. @@ -46,8 +46,8 @@ export type TokensClaimedEventFilters = Partial<{ */ export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensClaimed(uint256 indexed claimConditionIndex, address indexed claimer, address indexed receiver, uint256 quantityClaimed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts index 76f6e75d5cc..543ca00aeb3 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts @@ -1,19 +1,20 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "currentStartId", type: "uint256", + name: "currentStartId", }, { - name: "count", type: "uint256", + name: "count", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts index d05c49e0642..8874f1f8b77 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts index 2230db5b8b9..a0bff681c08 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionById" function. @@ -19,48 +19,48 @@ export type GetClaimConditionByIdParams = { export const FN_SELECTOR = "0x6f8934f4" as const; const FN_INPUTS = [ { - name: "_conditionId", type: "uint256", + name: "_conditionId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "condition", components: [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ], - name: "condition", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts index 0a71bc9edcb..2c1aabd1066 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. @@ -35,46 +35,46 @@ export type ClaimParams = WithOverrides<{ export const FN_SELECTOR = "0x84bb1e42" as const; const FN_INPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { + type: "tuple", + name: "allowlistProof", components: [ { - name: "proof", type: "bytes32[]", + name: "proof", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, ], - name: "allowlistProof", - type: "tuple", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -192,19 +192,8 @@ export function claim( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -217,5 +206,16 @@ export function claim( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts index 1409455f1aa..dbfd5398c08 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. @@ -35,46 +35,46 @@ export type SetClaimConditionsParams = WithOverrides<{ export const FN_SELECTOR = "0x74bc7db7" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "phases", components: [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ], - name: "phases", - type: "tuple[]", }, { - name: "resetClaimEligibility", type: "bool", + name: "resetClaimEligibility", }, ] as const; const FN_OUTPUTS = [] as const; @@ -180,19 +180,8 @@ export function setClaimConditions( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -201,5 +190,16 @@ export function setClaimConditions( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts index 5f51e60e237..83c90ba1373 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Approval" event. @@ -40,8 +40,8 @@ export type ApprovalEventFilters = Partial<{ */ export function approvalEvent(filters: ApprovalEventFilters = {}) { return prepareEvent({ - filters, signature: "event Approval(address indexed owner, address indexed spender, uint256 value)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts index ca3bdadb5e5..392798f0938 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. @@ -40,8 +40,8 @@ export type TransferEventFilters = Partial<{ */ export function transferEvent(filters: TransferEventFilters = {}) { return prepareEvent({ - filters, signature: "event Transfer(address indexed from, address indexed to, uint256 value)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts index 64452c82fa1..90f936573ff 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "allowance" function. @@ -17,12 +17,12 @@ export type AllowanceParams = { export const FN_SELECTOR = "0xdd62ed3e" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, { - name: "spender", type: "address", + name: "spender", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts index 4a5e362ea45..05bfa99e8b9 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. @@ -16,8 +16,8 @@ export type BalanceOfParams = { export const FN_SELECTOR = "0x70a08231" as const; const FN_INPUTS = [ { - name: "_address", type: "address", + name: "_address", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts index 7c6f025f370..e713101a8f2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts index 315fc80ca09..a40ddadb5ea 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts index 1e297ba3bdf..c3071082e4e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approve" function. @@ -19,12 +19,12 @@ export type ApproveParams = WithOverrides<{ export const FN_SELECTOR = "0x095ea7b3" as const; const FN_INPUTS = [ { - name: "spender", type: "address", + name: "spender", }, { - name: "value", type: "uint256", + name: "value", }, ] as const; const FN_OUTPUTS = [ @@ -127,23 +127,23 @@ export function approve( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.spender, resolvedOptions.value] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts index 409dcfe395b..bb688023945 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. @@ -19,12 +19,12 @@ export type TransferParams = WithOverrides<{ export const FN_SELECTOR = "0xa9059cbb" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "value", type: "uint256", + name: "value", }, ] as const; const FN_OUTPUTS = [ @@ -127,23 +127,23 @@ export function transfer( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.to, resolvedOptions.value] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts index a1283faf7e1..84e581ee5d0 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFrom" function. @@ -20,16 +20,16 @@ export type TransferFromParams = WithOverrides<{ export const FN_SELECTOR = "0x23b872dd" as const; const FN_INPUTS = [ { - name: "from", type: "address", + name: "from", }, { - name: "to", type: "address", + name: "to", }, { - name: "value", type: "uint256", + name: "value", }, ] as const; const FN_OUTPUTS = [ @@ -141,19 +141,8 @@ export function transferFrom( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -163,5 +152,16 @@ export function transferFrom( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts index 77488bf42f4..f3088be371b 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts index 62a9e4df4ca..0785785f1cf 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. @@ -16,8 +16,8 @@ export type NoncesParams = { export const FN_SELECTOR = "0x7ecebe00" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts index 67ffe7a6329..196dae6e56c 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "permit" function. @@ -24,32 +24,32 @@ export type PermitParams = WithOverrides<{ export const FN_SELECTOR = "0xd505accf" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, { - name: "spender", type: "address", + name: "spender", }, { - name: "value", type: "uint256", + name: "value", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "v", type: "uint8", + name: "v", }, { - name: "r", type: "bytes32", + name: "r", }, { - name: "s", type: "bytes32", + name: "s", }, ] as const; const FN_OUTPUTS = [] as const; @@ -171,19 +171,8 @@ export function permit( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -197,5 +186,16 @@ export function permit( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts index b1453037bfc..6b64f961507 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. @@ -34,8 +34,8 @@ export type TokensMintedEventFilters = Partial<{ */ export function tokensMintedEvent(filters: TokensMintedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensMinted(address indexed mintedTo, uint256 quantityMinted)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts index b975e1f1ded..e0db2221abd 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. @@ -19,12 +19,12 @@ export type MintToParams = WithOverrides<{ export const FN_SELECTOR = "0x449a52f8" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "amount", type: "uint256", + name: "amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -123,23 +123,23 @@ export function mintTo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.to, resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts index 77164157de7..edb03b78b32 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. @@ -42,8 +42,8 @@ export function tokensMintedWithSignatureEvent( filters: TokensMintedWithSignatureEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, (address to, address primarySaleRecipient, uint256 quantity, uint256 price, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) mintRequest)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts index bf47fbaaf53..3d910a7024d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. @@ -30,56 +30,56 @@ export type VerifyParams = { export const FN_SELECTOR = "0xc1b606e2" as const; const FN_INPUTS = [ { + type: "tuple", + name: "req", components: [ { - name: "to", type: "address", + name: "to", }, { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "price", type: "uint256", + name: "price", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "validityStartTimestamp", type: "uint128", + name: "validityStartTimestamp", }, { - name: "validityEndTimestamp", type: "uint128", + name: "validityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "req", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [ { - name: "success", type: "bool", + name: "success", }, { - name: "signer", type: "address", + name: "signer", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts index 1fd20177ab2..42821808bda 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. @@ -32,46 +32,46 @@ export type MintWithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0x8f0fefbb" as const; const FN_INPUTS = [ { + type: "tuple", + name: "payload", components: [ { - name: "to", type: "address", + name: "to", }, { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "price", type: "uint256", + name: "price", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "validityStartTimestamp", type: "uint128", + name: "validityStartTimestamp", }, { - name: "validityEndTimestamp", type: "uint128", + name: "validityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "payload", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -174,23 +174,23 @@ export function mintWithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.payload, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts index 969fd654e5c..b727ca0d9b2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardsClaimed" event. @@ -34,8 +34,8 @@ export type RewardsClaimedEventFilters = Partial<{ */ export function rewardsClaimedEvent(filters: RewardsClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event RewardsClaimed(address indexed staker, uint256 rewardAmount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts index 583547e8918..481bb8eb721 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensStaked" event. @@ -34,7 +34,7 @@ export type TokensStakedEventFilters = Partial<{ */ export function tokensStakedEvent(filters: TokensStakedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensStaked(address indexed staker, uint256 amount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts index 53b02e8bc67..bdcc3f2ca69 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWithdrawn" event. @@ -36,7 +36,7 @@ export function tokensWithdrawnEvent( filters: TokensWithdrawnEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensWithdrawn(address indexed staker, uint256 amount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts index 4ec3e9363f7..6e8274dfa05 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfo" function. @@ -16,18 +16,18 @@ export type GetStakeInfoParams = { export const FN_SELECTOR = "0xc3453153" as const; const FN_INPUTS = [ { - name: "staker", type: "address", + name: "staker", }, ] as const; const FN_OUTPUTS = [ { - name: "_tokensStaked", type: "uint256", + name: "_tokensStaked", }, { - name: "_rewards", type: "uint256", + name: "_rewards", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts index 1704b169c28..57d0a77dff7 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts index e3480d1c5df..408f9cd07a8 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "stake" function. @@ -18,8 +18,8 @@ export type StakeParams = WithOverrides<{ export const FN_SELECTOR = "0xa694fc3a" as const; const FN_INPUTS = [ { - name: "amount", type: "uint256", + name: "amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function stake( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts index 4b2e17a7852..c1c69ea396d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. @@ -18,8 +18,8 @@ export type WithdrawParams = WithOverrides<{ export const FN_SELECTOR = "0x2e1a7d4d" as const; const FN_INPUTS = [ { - name: "amount", type: "uint256", + name: "amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function withdraw( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts index 4f9d27bd8b6..0c3048d17f9 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositRewardTokens" function. @@ -18,8 +18,8 @@ export type DepositRewardTokensParams = WithOverrides<{ export const FN_SELECTOR = "0x16c621e0" as const; const FN_INPUTS = [ { - name: "_amount", type: "uint256", + name: "_amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -119,23 +119,23 @@ export function depositRewardTokens( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts index 20eac341e3f..6fdc7ac02c8 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. @@ -18,8 +18,8 @@ export type WithdrawRewardTokensParams = WithOverrides<{ export const FN_SELECTOR = "0xcb43b2dd" as const; const FN_INPUTS = [ { - name: "_amount", type: "uint256", + name: "_amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -121,23 +121,23 @@ export function withdrawRewardTokens( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts index c3acecb27ce..6ac50c18b65 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DelegateChanged" event. @@ -48,8 +48,8 @@ export function delegateChangedEvent( filters: DelegateChangedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts index 2edeed797af..3dee0b93a04 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DelegateVotesChanged" event. @@ -36,8 +36,8 @@ export function delegateVotesChangedEvent( filters: DelegateVotesChangedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts index ea655ae1b0c..c571722679d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "delegates" function. @@ -16,8 +16,8 @@ export type DelegatesParams = { export const FN_SELECTOR = "0x587cde1e" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts index 7d1d44e1552..e3441230e1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPastTotalSupply" function. @@ -19,8 +19,8 @@ export type GetPastTotalSupplyParams = { export const FN_SELECTOR = "0x8e539e8c" as const; const FN_INPUTS = [ { - name: "blockNumber", type: "uint256", + name: "blockNumber", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts index 2c200dbfc9f..ae46edb8b0c 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPastVotes" function. @@ -20,12 +20,12 @@ export type GetPastVotesParams = { export const FN_SELECTOR = "0x3a46b1a8" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, { - name: "blockNumber", type: "uint256", + name: "blockNumber", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts index 4e8e527637e..cff1749bd6b 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getVotes" function. @@ -16,8 +16,8 @@ export type GetVotesParams = { export const FN_SELECTOR = "0x9ab24eb0" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts index 21bbcf173b3..7cef71ff61a 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "delegate" function. @@ -21,8 +21,8 @@ export type DelegateParams = WithOverrides<{ export const FN_SELECTOR = "0x5c19a95c" as const; const FN_INPUTS = [ { - name: "delegatee", type: "address", + name: "delegatee", }, ] as const; const FN_OUTPUTS = [] as const; @@ -118,23 +118,23 @@ export function delegate( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.delegatee] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts index 63ae89d2acf..d4ccd48cc5a 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "delegateBySig" function. @@ -26,28 +26,28 @@ export type DelegateBySigParams = WithOverrides<{ export const FN_SELECTOR = "0xc3cda520" as const; const FN_INPUTS = [ { - name: "delegatee", type: "address", + name: "delegatee", }, { - name: "nonce", type: "uint256", + name: "nonce", }, { - name: "expiry", type: "uint256", + name: "expiry", }, { - name: "v", type: "uint8", + name: "v", }, { - name: "r", type: "bytes32", + name: "r", }, { - name: "s", type: "bytes32", + name: "s", }, ] as const; const FN_OUTPUTS = [] as const; @@ -167,19 +167,8 @@ export function delegateBySig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -192,5 +181,16 @@ export function delegateBySig( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts index 08a9dede108..71983157230 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts index 409dcfe395b..bb688023945 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. @@ -19,12 +19,12 @@ export type TransferParams = WithOverrides<{ export const FN_SELECTOR = "0xa9059cbb" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "value", type: "uint256", + name: "value", }, ] as const; const FN_OUTPUTS = [ @@ -127,23 +127,23 @@ export function transfer( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.to, resolvedOptions.value] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts index 4b2e17a7852..c1c69ea396d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. @@ -18,8 +18,8 @@ export type WithdrawParams = WithOverrides<{ export const FN_SELECTOR = "0x2e1a7d4d" as const; const FN_INPUTS = [ { - name: "amount", type: "uint256", + name: "amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function withdraw( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts index 8f413a85ce8..64ca336631f 100644 --- a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts +++ b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTrustedForwarder" function. @@ -19,8 +19,8 @@ export type IsTrustedForwarderParams = { export const FN_SELECTOR = "0x572b6c05" as const; const FN_INPUTS = [ { - name: "forwarder", type: "address", + name: "forwarder", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts index fc39904bb62..af103446eff 100644 --- a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. @@ -20,22 +20,22 @@ export type RoyaltyInfoParams = { export const FN_SELECTOR = "0x2a55205a" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "salePrice", type: "uint256", + name: "salePrice", }, ] as const; const FN_OUTPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "royaltyAmount", type: "uint256", + name: "royaltyAmount", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts index f87b2c21692..61732d4c768 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "validateUserOp" function. @@ -42,68 +42,68 @@ export type ValidateUserOpParams = WithOverrides<{ export const FN_SELECTOR = "0x3a871cdd" as const; const FN_INPUTS = [ { + type: "tuple", + name: "userOp", components: [ { - name: "sender", type: "address", + name: "sender", }, { - name: "nonce", type: "uint256", + name: "nonce", }, { - name: "initCode", type: "bytes", + name: "initCode", }, { - name: "callData", type: "bytes", + name: "callData", }, { - name: "callGasLimit", type: "uint256", + name: "callGasLimit", }, { - name: "verificationGasLimit", type: "uint256", + name: "verificationGasLimit", }, { - name: "preVerificationGas", type: "uint256", + name: "preVerificationGas", }, { - name: "maxFeePerGas", type: "uint256", + name: "maxFeePerGas", }, { - name: "maxPriorityFeePerGas", type: "uint256", + name: "maxPriorityFeePerGas", }, { - name: "paymasterAndData", type: "bytes", + name: "paymasterAndData", }, { - name: "signature", type: "bytes", + name: "signature", }, ], - name: "userOp", - type: "tuple", }, { - name: "userOpHash", type: "bytes32", + name: "userOpHash", }, { - name: "missingAccountFunds", type: "uint256", + name: "missingAccountFunds", }, ] as const; const FN_OUTPUTS = [ { - name: "validationData", type: "uint256", + name: "validationData", }, ] as const; @@ -210,19 +210,8 @@ export function validateUserOp( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -232,5 +221,16 @@ export function validateUserOp( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts index 3919789bd3c..9704d1c60fa 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AccountCreated" event. @@ -40,8 +40,8 @@ export type AccountCreatedEventFilters = Partial<{ */ export function accountCreatedEvent(filters: AccountCreatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event AccountCreated(address indexed account, address indexed accountAdmin)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts index f96231b08cf..29ba1977797 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignerAdded" event. @@ -40,8 +40,8 @@ export type SignerAddedEventFilters = Partial<{ */ export function signerAddedEvent(filters: SignerAddedEventFilters = {}) { return prepareEvent({ - filters, signature: "event SignerAdded(address indexed account, address indexed signer)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts index c6cf3b98d23..ee49f539f23 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignerRemoved" event. @@ -40,8 +40,8 @@ export type SignerRemovedEventFilters = Partial<{ */ export function signerRemovedEvent(filters: SignerRemovedEventFilters = {}) { return prepareEvent({ - filters, signature: "event SignerRemoved(address indexed account, address indexed signer)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts index 31f9d6e64c0..88b5f01391a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts index 26429c67036..e442c9ebe15 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAccounts" function. @@ -17,12 +17,12 @@ export type GetAccountsParams = { export const FN_SELECTOR = "0xe68a7c3b" as const; const FN_INPUTS = [ { - name: "start", type: "uint256", + name: "start", }, { - name: "end", type: "uint256", + name: "end", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts index 9d328ef60b2..f0bac129833 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAccountsOfSigner" function. @@ -16,14 +16,14 @@ export type GetAccountsOfSignerParams = { export const FN_SELECTOR = "0x0e6254fd" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ { - name: "accounts", type: "address[]", + name: "accounts", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts index 7793bc2c85e..07d3c8f0a19 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAddress" function. @@ -20,12 +20,12 @@ export type GetAddressParams = { export const FN_SELECTOR = "0x8878ed33" as const; const FN_INPUTS = [ { - name: "adminSigner", type: "address", + name: "adminSigner", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts index 93cf2387dff..49004ff07df 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x08e93d0a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts index 56ac9b61de6..4213342788a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isRegistered" function. @@ -16,8 +16,8 @@ export type IsRegisteredParams = { export const FN_SELECTOR = "0xc3c5a547" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts index 213525ca085..d13cf94c6b5 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x58451f97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts index cd71a3487a1..d71e0c7bbee 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAccount" function. @@ -19,18 +19,18 @@ export type CreateAccountParams = WithOverrides<{ export const FN_SELECTOR = "0xd8fd8f44" as const; const FN_INPUTS = [ { - name: "admin", type: "address", + name: "admin", }, { - name: "_data", type: "bytes", + name: "_data", }, ] as const; const FN_OUTPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; @@ -130,23 +130,23 @@ export function createAccount( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.admin, resolvedOptions.data] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts index 72b25239083..58b1f104269 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onSignerAdded" function. @@ -23,16 +23,16 @@ export type OnSignerAddedParams = WithOverrides<{ export const FN_SELECTOR = "0x9ddbb9d8" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, { - name: "creatorAdmin", type: "address", + name: "creatorAdmin", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -140,19 +140,8 @@ export function onSignerAdded( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -162,5 +151,16 @@ export function onSignerAdded( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts index 1b1a5d20e4f..eeb95bb3887 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onSignerRemoved" function. @@ -23,16 +23,16 @@ export type OnSignerRemovedParams = WithOverrides<{ export const FN_SELECTOR = "0x0db33003" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, { - name: "creatorAdmin", type: "address", + name: "creatorAdmin", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -140,19 +140,8 @@ export function onSignerRemoved( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -162,5 +151,16 @@ export function onSignerRemoved( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts index e1cb6933d25..3c4cdb022dc 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AdminUpdated" event. @@ -34,7 +34,7 @@ export type AdminUpdatedEventFilters = Partial<{ */ export function adminUpdatedEvent(filters: AdminUpdatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event AdminUpdated(address indexed signer, bool isAdmin)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts index 0e331399365..49b12b5e7ca 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignerPermissionsUpdated" event. @@ -42,8 +42,8 @@ export function signerPermissionsUpdatedEvent( filters: SignerPermissionsUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event SignerPermissionsUpdated(address indexed authorizingSigner, address indexed targetSigner, (address signer, uint8 isAdmin, address[] approvedTargets, uint256 nativeTokenLimitPerTransaction, uint128 permissionStartTimestamp, uint128 permissionEndTimestamp, uint128 reqValidityStartTimestamp, uint128 reqValidityEndTimestamp, bytes32 uid) permissions)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts index 2e47c5cf525..b25927d7f3e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts @@ -1,37 +1,38 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8b52d723" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "signers", components: [ { - name: "signer", type: "address", + name: "signer", }, { - name: "approvedTargets", type: "address[]", + name: "approvedTargets", }, { - name: "nativeTokenLimitPerTransaction", type: "uint256", + name: "nativeTokenLimitPerTransaction", }, { - name: "startTimestamp", type: "uint128", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint128", + name: "endTimestamp", }, ], - name: "signers", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts index 4f5f26e99c5..340e8e2b338 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe9523c97" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "admins", type: "address[]", + name: "admins", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts index b6031dc3105..473f22cee70 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts @@ -1,37 +1,38 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd42f2f35" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "signers", components: [ { - name: "signer", type: "address", + name: "signer", }, { - name: "approvedTargets", type: "address[]", + name: "approvedTargets", }, { - name: "nativeTokenLimitPerTransaction", type: "uint256", + name: "nativeTokenLimitPerTransaction", }, { - name: "startTimestamp", type: "uint128", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint128", + name: "endTimestamp", }, ], - name: "signers", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts index ccae2c07226..6f91832c4d4 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPermissionsForSigner" function. @@ -16,36 +16,36 @@ export type GetPermissionsForSignerParams = { export const FN_SELECTOR = "0xf15d424e" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "permissions", components: [ { - name: "signer", type: "address", + name: "signer", }, { - name: "approvedTargets", type: "address[]", + name: "approvedTargets", }, { - name: "nativeTokenLimitPerTransaction", type: "uint256", + name: "nativeTokenLimitPerTransaction", }, { - name: "startTimestamp", type: "uint128", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint128", + name: "endTimestamp", }, ], - name: "permissions", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts index 3bdebf0400d..f70ae69ae27 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isActiveSigner" function. @@ -16,8 +16,8 @@ export type IsActiveSignerParams = { export const FN_SELECTOR = "0x7dff5a79" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts index b30b9ba947c..421e3fb9b05 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isAdmin" function. @@ -16,8 +16,8 @@ export type IsAdminParams = { export const FN_SELECTOR = "0x24d7806c" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts index 6078893f412..13c9660d679 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifySignerPermissionRequest" function. @@ -31,60 +31,60 @@ export type VerifySignerPermissionRequestParams = { export const FN_SELECTOR = "0xa9082d84" as const; const FN_INPUTS = [ { + type: "tuple", + name: "req", components: [ { - name: "signer", type: "address", + name: "signer", }, { - name: "isAdmin", type: "uint8", + name: "isAdmin", }, { - name: "approvedTargets", type: "address[]", + name: "approvedTargets", }, { - name: "nativeTokenLimitPerTransaction", type: "uint256", + name: "nativeTokenLimitPerTransaction", }, { - name: "permissionStartTimestamp", type: "uint128", + name: "permissionStartTimestamp", }, { - name: "permissionEndTimestamp", type: "uint128", + name: "permissionEndTimestamp", }, { - name: "reqValidityStartTimestamp", type: "uint128", + name: "reqValidityStartTimestamp", }, { - name: "reqValidityEndTimestamp", type: "uint128", + name: "reqValidityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "req", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [ { - name: "success", type: "bool", + name: "success", }, { - name: "signer", type: "address", + name: "signer", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts index 99f03a9d50e..0dfecdfe3e3 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPermissionsForSigner" function. @@ -33,50 +33,50 @@ export type SetPermissionsForSignerParams = WithOverrides<{ export const FN_SELECTOR = "0x5892e236" as const; const FN_INPUTS = [ { + type: "tuple", + name: "req", components: [ { - name: "signer", type: "address", + name: "signer", }, { - name: "isAdmin", type: "uint8", + name: "isAdmin", }, { - name: "approvedTargets", type: "address[]", + name: "approvedTargets", }, { - name: "nativeTokenLimitPerTransaction", type: "uint256", + name: "nativeTokenLimitPerTransaction", }, { - name: "permissionStartTimestamp", type: "uint128", + name: "permissionStartTimestamp", }, { - name: "permissionEndTimestamp", type: "uint128", + name: "permissionEndTimestamp", }, { - name: "reqValidityStartTimestamp", type: "uint128", + name: "reqValidityStartTimestamp", }, { - name: "reqValidityEndTimestamp", type: "uint128", + name: "reqValidityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "req", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -183,23 +183,23 @@ export function setPermissionsForSigner( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.req, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts index c5c76a6a19d..aefeda70d1f 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AccountDeployed" event. @@ -42,8 +42,8 @@ export function accountDeployedEvent( filters: AccountDeployedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event AccountDeployed(bytes32 indexed userOpHash, address indexed sender, address factory, address paymaster)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts index 5a3d67beffe..979246b3a32 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Deposited" event. @@ -34,7 +34,7 @@ export type DepositedEventFilters = Partial<{ */ export function depositedEvent(filters: DepositedEventFilters = {}) { return prepareEvent({ - filters, signature: "event Deposited(address indexed account, uint256 totalDeposit)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts index be1fef18557..408f596d1b3 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignatureAggregatorChanged" event. @@ -36,7 +36,7 @@ export function signatureAggregatorChangedEvent( filters: SignatureAggregatorChangedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event SignatureAggregatorChanged(address indexed aggregator)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts index 238cfb9053f..cdb5cb7718a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "StakeLocked" event. @@ -34,8 +34,8 @@ export type StakeLockedEventFilters = Partial<{ */ export function stakeLockedEvent(filters: StakeLockedEventFilters = {}) { return prepareEvent({ - filters, signature: "event StakeLocked(address indexed account, uint256 totalStaked, uint256 unstakeDelaySec)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts index 30b473ab2b2..2c2a521b3e8 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "StakeUnlocked" event. @@ -34,8 +34,8 @@ export type StakeUnlockedEventFilters = Partial<{ */ export function stakeUnlockedEvent(filters: StakeUnlockedEventFilters = {}) { return prepareEvent({ - filters, signature: "event StakeUnlocked(address indexed account, uint256 withdrawTime)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts index 3f3e8d02b33..d6baaadd015 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "StakeWithdrawn" event. @@ -34,8 +34,8 @@ export type StakeWithdrawnEventFilters = Partial<{ */ export function stakeWithdrawnEvent(filters: StakeWithdrawnEventFilters = {}) { return prepareEvent({ - filters, signature: "event StakeWithdrawn(address indexed account, address withdrawAddress, uint256 amount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts index 0dcf93c6e9c..e7361b8f242 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UserOperationEvent" event. @@ -48,8 +48,8 @@ export function userOperationEventEvent( filters: UserOperationEventEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event UserOperationEvent(bytes32 indexed userOpHash, address indexed sender, address indexed paymaster, uint256 nonce, bool success, uint256 actualGasCost, uint256 actualGasUsed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts index 4ae291a64af..651ba8f699d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UserOperationRevertReason" event. @@ -42,8 +42,8 @@ export function userOperationRevertReasonEvent( filters: UserOperationRevertReasonEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts index 2d59fcb2fe8..ba6086ca941 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Withdrawn" event. @@ -34,8 +34,8 @@ export type WithdrawnEventFilters = Partial<{ */ export function withdrawnEvent(filters: WithdrawnEventFilters = {}) { return prepareEvent({ - filters, signature: "event Withdrawn(address indexed account, address withdrawAddress, uint256 amount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts index 55e6ca4003f..b7ff3081b0c 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. @@ -16,8 +16,8 @@ export type BalanceOfParams = { export const FN_SELECTOR = "0x70a08231" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts index 08cce1e0335..ef2dd86df6b 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getDepositInfo" function. @@ -16,36 +16,36 @@ export type GetDepositInfoParams = { export const FN_SELECTOR = "0x5287ce12" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "info", components: [ { - name: "deposit", type: "uint112", + name: "deposit", }, { - name: "staked", type: "bool", + name: "staked", }, { - name: "stake", type: "uint112", + name: "stake", }, { - name: "unstakeDelaySec", type: "uint32", + name: "unstakeDelaySec", }, { - name: "withdrawTime", type: "uint48", + name: "withdrawTime", }, ], - name: "info", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts index 78d6bd5f232..4047aff1316 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getNonce" function. @@ -17,18 +17,18 @@ export type GetNonceParams = { export const FN_SELECTOR = "0x35567e1a" as const; const FN_INPUTS = [ { - name: "sender", type: "address", + name: "sender", }, { - name: "key", type: "uint192", + name: "key", }, ] as const; const FN_OUTPUTS = [ { - name: "nonce", type: "uint256", + name: "nonce", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts index df7cd5a0476..035be155152 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getUserOpHash" function. @@ -32,54 +32,54 @@ export type GetUserOpHashParams = { export const FN_SELECTOR = "0xa6193531" as const; const FN_INPUTS = [ { + type: "tuple", + name: "userOp", components: [ { - name: "sender", type: "address", + name: "sender", }, { - name: "nonce", type: "uint256", + name: "nonce", }, { - name: "initCode", type: "bytes", + name: "initCode", }, { - name: "callData", type: "bytes", + name: "callData", }, { - name: "callGasLimit", type: "uint256", + name: "callGasLimit", }, { - name: "verificationGasLimit", type: "uint256", + name: "verificationGasLimit", }, { - name: "preVerificationGas", type: "uint256", + name: "preVerificationGas", }, { - name: "maxFeePerGas", type: "uint256", + name: "maxFeePerGas", }, { - name: "maxPriorityFeePerGas", type: "uint256", + name: "maxPriorityFeePerGas", }, { - name: "paymasterAndData", type: "bytes", + name: "paymasterAndData", }, { - name: "signature", type: "bytes", + name: "signature", }, ], - name: "userOp", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts index 5ee1b30c191..9dadba06162 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addStake" function. @@ -21,8 +21,8 @@ export type AddStakeParams = WithOverrides<{ export const FN_SELECTOR = "0x0396cb60" as const; const FN_INPUTS = [ { - name: "_unstakeDelaySec", type: "uint32", + name: "_unstakeDelaySec", }, ] as const; const FN_OUTPUTS = [] as const; @@ -118,23 +118,23 @@ export function addStake( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.unstakeDelaySec] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts index a680c985f9f..b401e7ffe20 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositTo" function. @@ -18,8 +18,8 @@ export type DepositToParams = WithOverrides<{ export const FN_SELECTOR = "0xb760faf9" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function depositTo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.account] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts index 3c156b207e1..824cf867b60 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getSenderAddress" function. @@ -18,8 +18,8 @@ export type GetSenderAddressParams = WithOverrides<{ export const FN_SELECTOR = "0x9b249f69" as const; const FN_INPUTS = [ { - name: "initCode", type: "bytes", + name: "initCode", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function getSenderAddress( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.initCode] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts index d3600668bd4..5ec1fb8864c 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "handleAggregatedOps" function. @@ -46,72 +46,72 @@ export type HandleAggregatedOpsParams = WithOverrides<{ export const FN_SELECTOR = "0x4b1d7cf5" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "opsPerAggregator", components: [ { + type: "tuple[]", + name: "userOps", components: [ { - name: "sender", type: "address", + name: "sender", }, { - name: "nonce", type: "uint256", + name: "nonce", }, { - name: "initCode", type: "bytes", + name: "initCode", }, { - name: "callData", type: "bytes", + name: "callData", }, { - name: "callGasLimit", type: "uint256", + name: "callGasLimit", }, { - name: "verificationGasLimit", type: "uint256", + name: "verificationGasLimit", }, { - name: "preVerificationGas", type: "uint256", + name: "preVerificationGas", }, { - name: "maxFeePerGas", type: "uint256", + name: "maxFeePerGas", }, { - name: "maxPriorityFeePerGas", type: "uint256", + name: "maxPriorityFeePerGas", }, { - name: "paymasterAndData", type: "bytes", + name: "paymasterAndData", }, { - name: "signature", type: "bytes", + name: "signature", }, ], - name: "userOps", - type: "tuple[]", }, { - name: "aggregator", type: "address", + name: "aggregator", }, { - name: "signature", type: "bytes", + name: "signature", }, ], - name: "opsPerAggregator", - type: "tuple[]", }, { - name: "beneficiary", type: "address", + name: "beneficiary", }, ] as const; const FN_OUTPUTS = [] as const; @@ -217,19 +217,8 @@ export function handleAggregatedOps( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -238,5 +227,16 @@ export function handleAggregatedOps( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts index 9ba76421223..5021df6b320 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "handleOps" function. @@ -38,58 +38,58 @@ export type HandleOpsParams = WithOverrides<{ export const FN_SELECTOR = "0x1fad948c" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "ops", components: [ { - name: "sender", type: "address", + name: "sender", }, { - name: "nonce", type: "uint256", + name: "nonce", }, { - name: "initCode", type: "bytes", + name: "initCode", }, { - name: "callData", type: "bytes", + name: "callData", }, { - name: "callGasLimit", type: "uint256", + name: "callGasLimit", }, { - name: "verificationGasLimit", type: "uint256", + name: "verificationGasLimit", }, { - name: "preVerificationGas", type: "uint256", + name: "preVerificationGas", }, { - name: "maxFeePerGas", type: "uint256", + name: "maxFeePerGas", }, { - name: "maxPriorityFeePerGas", type: "uint256", + name: "maxPriorityFeePerGas", }, { - name: "paymasterAndData", type: "bytes", + name: "paymasterAndData", }, { - name: "signature", type: "bytes", + name: "signature", }, ], - name: "ops", - type: "tuple[]", }, { - name: "beneficiary", type: "address", + name: "beneficiary", }, ] as const; const FN_OUTPUTS = [] as const; @@ -190,23 +190,23 @@ export function handleOps( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.ops, resolvedOptions.beneficiary] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts index f302d500846..66aeaeb26ac 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "incrementNonce" function. @@ -18,8 +18,8 @@ export type IncrementNonceParams = WithOverrides<{ export const FN_SELECTOR = "0x0bd28e3b" as const; const FN_INPUTS = [ { - name: "key", type: "uint192", + name: "key", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function incrementNonce( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.key] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts index 2cbf03a7c47..8ad17a56ed6 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "simulateHandleOp" function. @@ -39,62 +39,62 @@ export type SimulateHandleOpParams = WithOverrides<{ export const FN_SELECTOR = "0xd6383f94" as const; const FN_INPUTS = [ { + type: "tuple", + name: "op", components: [ { - name: "sender", type: "address", + name: "sender", }, { - name: "nonce", type: "uint256", + name: "nonce", }, { - name: "initCode", type: "bytes", + name: "initCode", }, { - name: "callData", type: "bytes", + name: "callData", }, { - name: "callGasLimit", type: "uint256", + name: "callGasLimit", }, { - name: "verificationGasLimit", type: "uint256", + name: "verificationGasLimit", }, { - name: "preVerificationGas", type: "uint256", + name: "preVerificationGas", }, { - name: "maxFeePerGas", type: "uint256", + name: "maxFeePerGas", }, { - name: "maxPriorityFeePerGas", type: "uint256", + name: "maxPriorityFeePerGas", }, { - name: "paymasterAndData", type: "bytes", + name: "paymasterAndData", }, { - name: "signature", type: "bytes", + name: "signature", }, ], - name: "op", - type: "tuple", }, { - name: "target", type: "address", + name: "target", }, { - name: "targetCallData", type: "bytes", + name: "targetCallData", }, ] as const; const FN_OUTPUTS = [] as const; @@ -202,19 +202,8 @@ export function simulateHandleOp( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -224,5 +213,16 @@ export function simulateHandleOp( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts index 219eb9561dc..be82ffcd830 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "simulateValidation" function. @@ -34,54 +34,54 @@ export type SimulateValidationParams = WithOverrides<{ export const FN_SELECTOR = "0xee219423" as const; const FN_INPUTS = [ { + type: "tuple", + name: "userOp", components: [ { - name: "sender", type: "address", + name: "sender", }, { - name: "nonce", type: "uint256", + name: "nonce", }, { - name: "initCode", type: "bytes", + name: "initCode", }, { - name: "callData", type: "bytes", + name: "callData", }, { - name: "callGasLimit", type: "uint256", + name: "callGasLimit", }, { - name: "verificationGasLimit", type: "uint256", + name: "verificationGasLimit", }, { - name: "preVerificationGas", type: "uint256", + name: "preVerificationGas", }, { - name: "maxFeePerGas", type: "uint256", + name: "maxFeePerGas", }, { - name: "maxPriorityFeePerGas", type: "uint256", + name: "maxPriorityFeePerGas", }, { - name: "paymasterAndData", type: "bytes", + name: "paymasterAndData", }, { - name: "signature", type: "bytes", + name: "signature", }, ], - name: "userOp", - type: "tuple", }, ] as const; const FN_OUTPUTS = [] as const; @@ -181,23 +181,23 @@ export function simulateValidation( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.userOp] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts index 3506e68345a..c136fb4c701 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts index 14e3ed95f92..10668f3080d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawStake" function. @@ -21,8 +21,8 @@ export type WithdrawStakeParams = WithOverrides<{ export const FN_SELECTOR = "0xc23a5cea" as const; const FN_INPUTS = [ { - name: "withdrawAddress", type: "address", + name: "withdrawAddress", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function withdrawStake( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.withdrawAddress] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts index 4cdfea7260f..8d0e04b7655 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawTo" function. @@ -25,12 +25,12 @@ export type WithdrawToParams = WithOverrides<{ export const FN_SELECTOR = "0x205c2878" as const; const FN_INPUTS = [ { - name: "withdrawAddress", type: "address", + name: "withdrawAddress", }, { - name: "withdrawAmount", type: "uint256", + name: "withdrawAmount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -134,19 +134,8 @@ export function withdrawTo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -155,5 +144,16 @@ export function withdrawTo( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts index 991f9320412..b8d5ff51605 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PostOpRevertReason" event. @@ -42,8 +42,8 @@ export function postOpRevertReasonEvent( filters: PostOpRevertReasonEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts index 0fdce243df6..deff206f64d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getUserOpHash" function. @@ -30,46 +30,46 @@ export type GetUserOpHashParams = { export const FN_SELECTOR = "0x22cdde4c" as const; const FN_INPUTS = [ { + type: "tuple", + name: "userOp", components: [ { - name: "sender", type: "address", + name: "sender", }, { - name: "nonce", type: "uint256", + name: "nonce", }, { - name: "initCode", type: "bytes", + name: "initCode", }, { - name: "callData", type: "bytes", + name: "callData", }, { - name: "accountGasLimits", type: "bytes32", + name: "accountGasLimits", }, { - name: "preVerificationGas", type: "uint256", + name: "preVerificationGas", }, { - name: "gasFees", type: "bytes32", + name: "gasFees", }, { - name: "paymasterAndData", type: "bytes", + name: "paymasterAndData", }, { - name: "signature", type: "bytes", + name: "signature", }, ], - name: "userOp", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts index dc71be29b9d..cdb00c1cd44 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "postOp" function. @@ -23,16 +23,16 @@ export type PostOpParams = WithOverrides<{ export const FN_SELECTOR = "0xa9a23409" as const; const FN_INPUTS = [ { - name: "mode", type: "uint8", + name: "mode", }, { - name: "context", type: "bytes", + name: "context", }, { - name: "actualGasCost", type: "uint256", + name: "actualGasCost", }, ] as const; const FN_OUTPUTS = [] as const; @@ -138,19 +138,8 @@ export function postOp( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -160,5 +149,16 @@ export function postOp( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts index e5e33c429c0..ce0e1b226f6 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "validatePaymasterUserOp" function. @@ -39,72 +39,72 @@ export type ValidatePaymasterUserOpParams = WithOverrides<{ export const FN_SELECTOR = "0xf465c77e" as const; const FN_INPUTS = [ { + type: "tuple", + name: "userOp", components: [ { - name: "sender", type: "address", + name: "sender", }, { - name: "nonce", type: "uint256", + name: "nonce", }, { - name: "initCode", type: "bytes", + name: "initCode", }, { - name: "callData", type: "bytes", + name: "callData", }, { - name: "callGasLimit", type: "uint256", + name: "callGasLimit", }, { - name: "verificationGasLimit", type: "uint256", + name: "verificationGasLimit", }, { - name: "preVerificationGas", type: "uint256", + name: "preVerificationGas", }, { - name: "maxFeePerGas", type: "uint256", + name: "maxFeePerGas", }, { - name: "maxPriorityFeePerGas", type: "uint256", + name: "maxPriorityFeePerGas", }, { - name: "paymasterAndData", type: "bytes", + name: "paymasterAndData", }, { - name: "signature", type: "bytes", + name: "signature", }, ], - name: "userOp", - type: "tuple", }, { - name: "userOpHash", type: "bytes32", + name: "userOpHash", }, { - name: "maxCost", type: "uint256", + name: "maxCost", }, ] as const; const FN_OUTPUTS = [ { - name: "context", type: "bytes", + name: "context", }, { - name: "validationData", type: "uint256", + name: "validationData", }, ] as const; @@ -217,19 +217,8 @@ export function validatePaymasterUserOp( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -239,5 +228,16 @@ export function validatePaymasterUserOp( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts index 753a8961fff..dc44d6e24ab 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Deposit" event. @@ -40,8 +40,8 @@ export type DepositEventFilters = Partial<{ */ export function depositEvent(filters: DepositEventFilters = {}) { return prepareEvent({ - filters, signature: "event Deposit(address indexed caller, address indexed owner, uint256 assets, uint256 shares)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts index 8450bb95731..702a6b214e0 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Withdraw" event. @@ -46,8 +46,8 @@ export type WithdrawEventFilters = Partial<{ */ export function withdrawEvent(filters: WithdrawEventFilters = {}) { return prepareEvent({ - filters, signature: "event Withdraw(address indexed caller, address indexed receiver, address indexed owner, uint256 assets, uint256 shares)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts index 06812146334..c6aa2cf4a8f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x38d52e0f" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "assetTokenAddress", type: "address", + name: "assetTokenAddress", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts index 7288d41eabb..a336a3ba71d 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "convertToAssets" function. @@ -16,14 +16,14 @@ export type ConvertToAssetsParams = { export const FN_SELECTOR = "0x07a2d13a" as const; const FN_INPUTS = [ { - name: "shares", type: "uint256", + name: "shares", }, ] as const; const FN_OUTPUTS = [ { - name: "assets", type: "uint256", + name: "assets", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts index 75ac99b846e..19adbec5d30 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "convertToShares" function. @@ -16,14 +16,14 @@ export type ConvertToSharesParams = { export const FN_SELECTOR = "0xc6e6f592" as const; const FN_INPUTS = [ { - name: "assets", type: "uint256", + name: "assets", }, ] as const; const FN_OUTPUTS = [ { - name: "shares", type: "uint256", + name: "shares", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts index a79217d1108..c381e4e07ce 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxDeposit" function. @@ -16,14 +16,14 @@ export type MaxDepositParams = { export const FN_SELECTOR = "0x402d267d" as const; const FN_INPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, ] as const; const FN_OUTPUTS = [ { - name: "maxAssets", type: "uint256", + name: "maxAssets", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts index be7362591b6..31d838daa75 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxMint" function. @@ -16,14 +16,14 @@ export type MaxMintParams = { export const FN_SELECTOR = "0xc63d75b6" as const; const FN_INPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, ] as const; const FN_OUTPUTS = [ { - name: "maxShares", type: "uint256", + name: "maxShares", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts index fdf9a9bd349..c87d5ca24be 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxRedeem" function. @@ -16,14 +16,14 @@ export type MaxRedeemParams = { export const FN_SELECTOR = "0xd905777e" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, ] as const; const FN_OUTPUTS = [ { - name: "maxShares", type: "uint256", + name: "maxShares", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts index 2f5cb5760df..5d2194959f1 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxWithdraw" function. @@ -16,14 +16,14 @@ export type MaxWithdrawParams = { export const FN_SELECTOR = "0xce96cb77" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, ] as const; const FN_OUTPUTS = [ { - name: "maxAssets", type: "uint256", + name: "maxAssets", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts index fc50a5d5b2e..55bd138d5c8 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewDeposit" function. @@ -16,14 +16,14 @@ export type PreviewDepositParams = { export const FN_SELECTOR = "0xef8b30f7" as const; const FN_INPUTS = [ { - name: "assets", type: "uint256", + name: "assets", }, ] as const; const FN_OUTPUTS = [ { - name: "shares", type: "uint256", + name: "shares", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts index 0c11d728319..1c77082a6d4 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewMint" function. @@ -16,8 +16,8 @@ export type PreviewMintParams = { export const FN_SELECTOR = "0xb3d7f6b9" as const; const FN_INPUTS = [ { - name: "shares", type: "uint256", + name: "shares", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts index 1ffa9dd1327..d22c9fc5c1c 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewRedeem" function. @@ -16,14 +16,14 @@ export type PreviewRedeemParams = { export const FN_SELECTOR = "0x4cdad506" as const; const FN_INPUTS = [ { - name: "shares", type: "uint256", + name: "shares", }, ] as const; const FN_OUTPUTS = [ { - name: "assets", type: "uint256", + name: "assets", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts index d66508de4a0..0b48678535b 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewWithdraw" function. @@ -16,14 +16,14 @@ export type PreviewWithdrawParams = { export const FN_SELECTOR = "0x0a28a477" as const; const FN_INPUTS = [ { - name: "assets", type: "uint256", + name: "assets", }, ] as const; const FN_OUTPUTS = [ { - name: "shares", type: "uint256", + name: "shares", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts index 1801c0053ff..13444d4de6f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x01e1d114" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "totalManagedAssets", type: "uint256", + name: "totalManagedAssets", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts index d37c26b12d0..f987f82b52f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deposit" function. @@ -19,18 +19,18 @@ export type DepositParams = WithOverrides<{ export const FN_SELECTOR = "0x6e553f65" as const; const FN_INPUTS = [ { - name: "assets", type: "uint256", + name: "assets", }, { - name: "receiver", type: "address", + name: "receiver", }, ] as const; const FN_OUTPUTS = [ { - name: "shares", type: "uint256", + name: "shares", }, ] as const; @@ -128,23 +128,23 @@ export function deposit( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.assets, resolvedOptions.receiver] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts index 9499cfff6f9..21674a7ae44 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. @@ -19,18 +19,18 @@ export type MintParams = WithOverrides<{ export const FN_SELECTOR = "0x94bf804d" as const; const FN_INPUTS = [ { - name: "shares", type: "uint256", + name: "shares", }, { - name: "receiver", type: "address", + name: "receiver", }, ] as const; const FN_OUTPUTS = [ { - name: "assets", type: "uint256", + name: "assets", }, ] as const; @@ -128,23 +128,23 @@ export function mint( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.shares, resolvedOptions.receiver] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts index dcc70c39d48..df351f6ff7b 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "redeem" function. @@ -20,22 +20,22 @@ export type RedeemParams = WithOverrides<{ export const FN_SELECTOR = "0xba087652" as const; const FN_INPUTS = [ { - name: "shares", type: "uint256", + name: "shares", }, { - name: "receiver", type: "address", + name: "receiver", }, { - name: "owner", type: "address", + name: "owner", }, ] as const; const FN_OUTPUTS = [ { - name: "assets", type: "uint256", + name: "assets", }, ] as const; @@ -140,19 +140,8 @@ export function redeem( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -162,5 +151,16 @@ export function redeem( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts index 70362e7237b..f9d36616418 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. @@ -20,22 +20,22 @@ export type WithdrawParams = WithOverrides<{ export const FN_SELECTOR = "0xb460af94" as const; const FN_INPUTS = [ { - name: "assets", type: "uint256", + name: "assets", }, { - name: "receiver", type: "address", + name: "receiver", }, { - name: "owner", type: "address", + name: "owner", }, ] as const; const FN_OUTPUTS = [ { - name: "shares", type: "uint256", + name: "shares", }, ] as const; @@ -140,19 +140,8 @@ export function withdraw( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -162,5 +151,16 @@ export function withdraw( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts index 26a270ebb9f..f48782ca657 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isValidSigner" function. @@ -17,18 +17,18 @@ export type IsValidSignerParams = { export const FN_SELECTOR = "0x523e3260" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, { - name: "context", type: "bytes", + name: "context", }, ] as const; const FN_OUTPUTS = [ { - name: "magicValue", type: "bytes4", + name: "magicValue", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts index 4a94d5ca5f4..366fa324ff1 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc19d93fb" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts index 758898583c1..5b0fd38dc2d 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts @@ -1,23 +1,24 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "chainId", type: "uint256", + name: "chainId", }, { - name: "tokenContract", type: "address", + name: "tokenContract", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts index 9547268a917..d6fbe26258f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyClaim" function. @@ -36,52 +36,52 @@ export type VerifyClaimParams = { export const FN_SELECTOR = "0x23a2902b" as const; const FN_INPUTS = [ { - name: "_conditionId", type: "uint256", + name: "_conditionId", }, { - name: "_claimer", type: "address", + name: "_claimer", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, { - name: "_currency", type: "address", + name: "_currency", }, { - name: "_pricePerToken", type: "uint256", + name: "_pricePerToken", }, { + type: "tuple", + name: "_allowlistProof", components: [ { - name: "proof", type: "bytes32[]", + name: "proof", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, ], - name: "_allowlistProof", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "isOverride", type: "bool", + name: "isOverride", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts index 529ea40cad5..5a98dee8f1b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. @@ -18,8 +18,8 @@ export type FreezeBatchBaseURIParams = WithOverrides<{ export const FN_SELECTOR = "0xa07ced9e" as const; const FN_INPUTS = [ { - name: "_index", type: "uint256", + name: "_index", }, ] as const; const FN_OUTPUTS = [] as const; @@ -119,23 +119,23 @@ export function freezeBatchBaseURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.index] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts index fa6e333d998..fef30ba5b5b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. @@ -21,8 +21,8 @@ export type SetMaxTotalSupplyParams = WithOverrides<{ export const FN_SELECTOR = "0x3f3e4c11" as const; const FN_INPUTS = [ { - name: "_maxTotalSupply", type: "uint256", + name: "_maxTotalSupply", }, ] as const; const FN_OUTPUTS = [] as const; @@ -122,23 +122,23 @@ export function setMaxTotalSupply( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.maxTotalSupply] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts index 0368737cc6c..80e7ca4d58c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. @@ -19,12 +19,12 @@ export type UpdateBatchBaseURIParams = WithOverrides<{ export const FN_SELECTOR = "0xde903ddd" as const; const FN_INPUTS = [ { - name: "_index", type: "uint256", + name: "_index", }, { - name: "_uri", type: "string", + name: "_uri", }, ] as const; const FN_OUTPUTS = [] as const; @@ -127,23 +127,23 @@ export function updateBatchBaseURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.index, resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts index 074ba92c517..f4caa50a316 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AirdropFailed" event. @@ -46,8 +46,8 @@ export type AirdropFailedEventFilters = Partial<{ */ export function airdropFailedEvent(filters: AirdropFailedEventFilters = {}) { return prepareEvent({ - filters, signature: "event AirdropFailed(address indexed tokenAddress, address indexed tokenOwner, address indexed recipient, uint256 tokenId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts index 9ab804ed1ce..2f96fcc6574 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC721" function. @@ -33,26 +33,26 @@ export type AirdropERC721Params = WithOverrides<{ export const FN_SELECTOR = "0x7c2c059d" as const; const FN_INPUTS = [ { - name: "tokenAddress", type: "address", + name: "tokenAddress", }, { - name: "tokenOwner", type: "address", + name: "tokenOwner", }, { + type: "tuple[]", + name: "contents", components: [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, ], - name: "contents", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [] as const; @@ -160,19 +160,8 @@ export function airdropERC721( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -182,5 +171,16 @@ export function airdropERC721( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts index b40aec40e59..6713f907a04 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. @@ -40,8 +40,8 @@ export type TokensClaimedEventFilters = Partial<{ */ export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensClaimed(address indexed claimer, address indexed receiver, uint256 quantityClaimed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts index f20c344b892..c8242f26ff7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. @@ -24,20 +24,20 @@ export type ClaimParams = WithOverrides<{ export const FN_SELECTOR = "0x3b4b57b0" as const; const FN_INPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "proofs", type: "bytes32[]", + name: "proofs", }, { - name: "proofMaxQuantityForWallet", type: "uint256", + name: "proofMaxQuantityForWallet", }, ] as const; const FN_OUTPUTS = [] as const; @@ -147,19 +147,8 @@ export function claim( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -170,5 +159,16 @@ export function claim( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts index 28715bb477e..05c14805732 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts index 2ab79d4d7e5..0c742164d79 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. @@ -16,8 +16,8 @@ export type GetBatchIdAtIndexParams = { export const FN_SELECTOR = "0x2419f51b" as const; const FN_INPUTS = [ { - name: "_index", type: "uint256", + name: "_index", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts index b544f973801..1f66b6a3b03 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. @@ -18,8 +18,8 @@ export type BurnParams = WithOverrides<{ export const FN_SELECTOR = "0x42966c68" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function burn( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts index fd159360a2f..96d8aeb4491 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. @@ -46,8 +46,8 @@ export type TokensClaimedEventFilters = Partial<{ */ export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensClaimed(address indexed claimer, address indexed receiver, uint256 indexed startTokenId, uint256 quantityClaimed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/read/verifyClaim.ts index fcd6bff6605..2696773d0ab 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/read/verifyClaim.ts @@ -16,12 +16,12 @@ export type VerifyClaimParams = { export const FN_SELECTOR = "0x2f92023a" as const; const FN_INPUTS = [ { - name: "_claimer", type: "address", + name: "_claimer", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, ] as const; const FN_OUTPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts index 58e59b6eb27..b6d15533e0c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. @@ -19,12 +19,12 @@ export type ClaimParams = WithOverrides<{ export const FN_SELECTOR = "0xaad3ec96" as const; const FN_INPUTS = [ { - name: "_receiver", type: "address", + name: "_receiver", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, ] as const; const FN_OUTPUTS = [] as const; @@ -123,23 +123,23 @@ export function claim( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.receiver, resolvedOptions.quantity] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts index 1fecec5b724..80887b4834b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokenURIRevealed" event. @@ -36,8 +36,8 @@ export function tokenURIRevealedEvent( filters: TokenURIRevealedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokenURIRevealed(uint256 indexed index, string revealedURI)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts index c1f1a999672..72fec8c3c7a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "encryptDecrypt" function. @@ -17,18 +17,18 @@ export type EncryptDecryptParams = { export const FN_SELECTOR = "0xe7150322" as const; const FN_INPUTS = [ { - name: "data", type: "bytes", + name: "data", }, { - name: "key", type: "bytes", + name: "key", }, ] as const; const FN_OUTPUTS = [ { - name: "result", type: "bytes", + name: "result", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts index b1cc0015030..6c8d4a2dca7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "encryptedData" function. @@ -16,8 +16,8 @@ export type EncryptedDataParams = { export const FN_SELECTOR = "0xa05112fc" as const; const FN_INPUTS = [ { - name: "index", type: "uint256", + name: "index", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts index 72c6e0dfd22..d458a71158e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "reveal" function. @@ -22,18 +22,18 @@ export type RevealParams = WithOverrides<{ export const FN_SELECTOR = "0xce805642" as const; const FN_INPUTS = [ { - name: "identifier", type: "uint256", + name: "identifier", }, { - name: "key", type: "bytes", + name: "key", }, ] as const; const FN_OUTPUTS = [ { - name: "revealedURI", type: "string", + name: "revealedURI", }, ] as const; @@ -131,23 +131,23 @@ export function reveal( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.identifier, resolvedOptions.key] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts index 50e2640a789..f9323d3861e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. @@ -46,8 +46,8 @@ export type TokensClaimedEventFilters = Partial<{ */ export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensClaimed(uint256 indexed claimConditionIndex, address indexed claimer, address indexed receiver, uint256 startTokenId, uint256 quantityClaimed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts index 3f13709afb6..15d51107b1f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "baseURIIndices" function. @@ -16,8 +16,8 @@ export type BaseURIIndicesParams = { export const FN_SELECTOR = "0xd860483f" as const; const FN_INPUTS = [ { - name: "index", type: "uint256", + name: "index", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts index c209f44db85..bdd2144fb09 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts @@ -1,19 +1,20 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "currentStartId", type: "uint256", + name: "currentStartId", }, { - name: "count", type: "uint256", + name: "count", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts index 05fc620d047..5e4f78b73ee 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts index efe91824b1c..4c03e0387d5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionById" function. @@ -19,48 +19,48 @@ export type GetClaimConditionByIdParams = { export const FN_SELECTOR = "0x6f8934f4" as const; const FN_INPUTS = [ { - name: "_conditionId", type: "uint256", + name: "_conditionId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "condition", components: [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ], - name: "condition", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts index a3a6212cb9a..409a4030ce4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xacd083f8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts index 3939be3ce53..bd199d831e0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. @@ -35,46 +35,46 @@ export type ClaimParams = WithOverrides<{ export const FN_SELECTOR = "0x84bb1e42" as const; const FN_INPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { + type: "tuple", + name: "allowlistProof", components: [ { - name: "proof", type: "bytes32[]", + name: "proof", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, ], - name: "allowlistProof", - type: "tuple", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -192,19 +192,8 @@ export function claim( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -217,5 +206,16 @@ export function claim( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts index ecdcd810f2d..59a01bbc213 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. @@ -35,46 +35,46 @@ export type SetClaimConditionsParams = WithOverrides<{ export const FN_SELECTOR = "0x74bc7db7" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "phases", components: [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ], - name: "phases", - type: "tuple[]", }, { - name: "resetClaimEligibility", type: "bool", + name: "resetClaimEligibility", }, ] as const; const FN_OUTPUTS = [] as const; @@ -180,19 +180,8 @@ export function setClaimConditions( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -201,5 +190,16 @@ export function setClaimConditions( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts index fd159360a2f..96d8aeb4491 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. @@ -46,8 +46,8 @@ export type TokensClaimedEventFilters = Partial<{ */ export function tokensClaimedEvent(filters: TokensClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensClaimed(address indexed claimer, address indexed receiver, uint256 indexed startTokenId, uint256 quantityClaimed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts index 5b1917ac2ec..60f4078f4d2 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts @@ -1,49 +1,50 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "condition", components: [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ], - name: "condition", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts index 3939be3ce53..bd199d831e0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. @@ -35,46 +35,46 @@ export type ClaimParams = WithOverrides<{ export const FN_SELECTOR = "0x84bb1e42" as const; const FN_INPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { + type: "tuple", + name: "allowlistProof", components: [ { - name: "proof", type: "bytes32[]", + name: "proof", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, ], - name: "allowlistProof", - type: "tuple", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -192,19 +192,8 @@ export function claim( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -217,5 +206,16 @@ export function claim( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts index 27f4ce8cc9e..d07fd8efc8e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. @@ -35,46 +35,46 @@ export type SetClaimConditionsParams = WithOverrides<{ export const FN_SELECTOR = "0x426cfaf3" as const; const FN_INPUTS = [ { + type: "tuple", + name: "phase", components: [ { - name: "startTimestamp", type: "uint256", + name: "startTimestamp", }, { - name: "maxClaimableSupply", type: "uint256", + name: "maxClaimableSupply", }, { - name: "supplyClaimed", type: "uint256", + name: "supplyClaimed", }, { - name: "quantityLimitPerWallet", type: "uint256", + name: "quantityLimitPerWallet", }, { - name: "merkleRoot", type: "bytes32", + name: "merkleRoot", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "metadata", type: "string", + name: "metadata", }, ], - name: "phase", - type: "tuple", }, { - name: "resetClaimEligibility", type: "bool", + name: "resetClaimEligibility", }, ] as const; const FN_OUTPUTS = [] as const; @@ -180,19 +180,8 @@ export function setClaimConditions( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -201,5 +190,16 @@ export function setClaimConditions( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts index cd341395868..c1f8b0cb939 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Approval" event. @@ -46,8 +46,8 @@ export type ApprovalEventFilters = Partial<{ */ export function approvalEvent(filters: ApprovalEventFilters = {}) { return prepareEvent({ - filters, signature: "event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts index b2735569c9e..da4f0dfc8d7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ApprovalForAll" event. @@ -40,8 +40,8 @@ export type ApprovalForAllEventFilters = Partial<{ */ export function approvalForAllEvent(filters: ApprovalForAllEventFilters = {}) { return prepareEvent({ - filters, signature: "event ApprovalForAll(address indexed owner, address indexed operator, bool approved)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts index 4163cf5363a..b0d19bab766 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. @@ -46,8 +46,8 @@ export type TransferEventFilters = Partial<{ */ export function transferEvent(filters: TransferEventFilters = {}) { return prepareEvent({ - filters, signature: "event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts index c75d7c35b12..0a97dbe010d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. @@ -16,8 +16,8 @@ export type BalanceOfParams = { export const FN_SELECTOR = "0x70a08231" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts index 3b08cf7171d..e6e6c742b20 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getApproved" function. @@ -16,8 +16,8 @@ export type GetApprovedParams = { export const FN_SELECTOR = "0x081812fc" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts index 518585e4966..48aae344fd6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isApprovedForAll" function. @@ -17,12 +17,12 @@ export type IsApprovedForAllParams = { export const FN_SELECTOR = "0xe985e9c5" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, { - name: "operator", type: "address", + name: "operator", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts index 977eb71775a..7f2ee48afd1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts index d47f48285ab..725b42cb89c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownerOf" function. @@ -16,8 +16,8 @@ export type OwnerOfParams = { export const FN_SELECTOR = "0x6352211e" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts index a7437962276..44320640e09 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe6798baa" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts index 09032ae8d6a..2541453f1fa 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts index 1088ee3775c..cdd424d3861 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenURI" function. @@ -16,8 +16,8 @@ export type TokenURIParams = { export const FN_SELECTOR = "0xc87b56dd" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts index 08c6748815e..a19be2e4323 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts index d8980b43c68..35b4af6555e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approve" function. @@ -19,12 +19,12 @@ export type ApproveParams = WithOverrides<{ export const FN_SELECTOR = "0x095ea7b3" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -123,23 +123,23 @@ export function approve( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.to, resolvedOptions.tokenId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts index e05e5fcaca5..6a39c3be5ca 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "safeTransferFrom" function. @@ -20,16 +20,16 @@ export type SafeTransferFromParams = WithOverrides<{ export const FN_SELECTOR = "0x42842e0e" as const; const FN_INPUTS = [ { - name: "from", type: "address", + name: "from", }, { - name: "to", type: "address", + name: "to", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -137,19 +137,8 @@ export function safeTransferFrom( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -159,5 +148,16 @@ export function safeTransferFrom( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts index 9096c337621..b2a383dd006 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setApprovalForAll" function. @@ -19,12 +19,12 @@ export type SetApprovalForAllParams = WithOverrides<{ export const FN_SELECTOR = "0xa22cb465" as const; const FN_INPUTS = [ { - name: "operator", type: "address", + name: "operator", }, { - name: "_approved", type: "bool", + name: "_approved", }, ] as const; const FN_OUTPUTS = [] as const; @@ -127,23 +127,23 @@ export function setApprovalForAll( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.operator, resolvedOptions.approved] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts index bd1283d5c04..7eda6c94dfe 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFrom" function. @@ -20,16 +20,16 @@ export type TransferFromParams = WithOverrides<{ export const FN_SELECTOR = "0x23b872dd" as const; const FN_INPUTS = [ { - name: "from", type: "address", + name: "from", }, { - name: "to", type: "address", + name: "to", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -137,19 +137,8 @@ export function transferFrom( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -159,5 +148,16 @@ export function transferFrom( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts index f2b6876432f..09dbce48836 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ConsecutiveTransfer" event. @@ -48,8 +48,8 @@ export function consecutiveTransferEvent( filters: ConsecutiveTransferEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts index 345073d1a33..c57aff8f227 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokensOfOwner" function. @@ -16,8 +16,8 @@ export type TokensOfOwnerParams = { export const FN_SELECTOR = "0x8462151c" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts index 3ab75e3ee86..fae3b29b1eb 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokensOfOwnerIn" function. @@ -18,16 +18,16 @@ export type TokensOfOwnerInParams = { export const FN_SELECTOR = "0x99a2557a" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, { - name: "start", type: "uint256", + name: "start", }, { - name: "stop", type: "uint256", + name: "stop", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts index 2bb30b6fa3b..abab41a1765 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts index e3ec8eac5f0..a2194155e72 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenByIndex" function. @@ -16,8 +16,8 @@ export type TokenByIndexParams = { export const FN_SELECTOR = "0x4f6ccce7" as const; const FN_INPUTS = [ { - name: "_index", type: "uint256", + name: "_index", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts index 260539c27a7..317ffdcd06e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenOfOwnerByIndex" function. @@ -17,12 +17,12 @@ export type TokenOfOwnerByIndexParams = { export const FN_SELECTOR = "0x2f745c59" as const; const FN_INPUTS = [ { - name: "_owner", type: "address", + name: "_owner", }, { - name: "_index", type: "uint256", + name: "_index", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts index 68ff8a10a2b..4e89a7ec99f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onERC721Received" function. @@ -21,20 +21,20 @@ export type OnERC721ReceivedParams = WithOverrides<{ export const FN_SELECTOR = "0x150b7a02" as const; const FN_INPUTS = [ { - name: "operator", type: "address", + name: "operator", }, { - name: "from", type: "address", + name: "from", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [ @@ -150,19 +150,8 @@ export function onERC721Received( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -173,5 +162,16 @@ export function onERC721Received( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts index 6fe312990fc..eb69059bee4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensLazyMinted" event. @@ -36,8 +36,8 @@ export function tokensLazyMintedEvent( filters: TokensLazyMintedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensLazyMinted(uint256 indexed startTokenId, uint256 endTokenId, string baseURI, bytes encryptedBaseURI)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts index 1eeb18fc85e..9889bbbb726 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "lazyMint" function. @@ -23,22 +23,22 @@ export type LazyMintParams = WithOverrides<{ export const FN_SELECTOR = "0xd37c353b" as const; const FN_INPUTS = [ { - name: "amount", type: "uint256", + name: "amount", }, { - name: "baseURIForTokens", type: "string", + name: "baseURIForTokens", }, { - name: "extraData", type: "bytes", + name: "extraData", }, ] as const; const FN_OUTPUTS = [ { - name: "batchId", type: "uint256", + name: "batchId", }, ] as const; @@ -143,19 +143,8 @@ export function lazyMint( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -165,5 +154,16 @@ export function lazyMint( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts index b4e26aa7184..667cd89e059 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. @@ -40,8 +40,8 @@ export type TokensMintedEventFilters = Partial<{ */ export function tokensMintedEvent(filters: TokensMintedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensMinted(address indexed mintedTo, uint256 indexed tokenIdMinted, string uri)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts index 722f0bace6a..5541d6823a5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. @@ -19,12 +19,12 @@ export type MintToParams = WithOverrides<{ export const FN_SELECTOR = "0x0075a317" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "uri", type: "string", + name: "uri", }, ] as const; const FN_OUTPUTS = [ @@ -127,23 +127,23 @@ export function mintTo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.to, resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts index 8ead51593eb..0f6b2f9089d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. @@ -19,8 +19,8 @@ export type SupportsInterfaceParams = { export const FN_SELECTOR = "0x01ffc9a7" as const; const FN_INPUTS = [ { - name: "interfaceId", type: "bytes4", + name: "interfaceId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts index 4bc2551a316..072e98db461 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts index e6fafb0e530..2ae9e83a539 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTokenURI" function. @@ -19,12 +19,12 @@ export type SetTokenURIParams = WithOverrides<{ export const FN_SELECTOR = "0x162094c4" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_uri", type: "string", + name: "_uri", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function setTokenURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId, resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts index d434b122090..bee2ca42a4e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositRewardTokens" function. @@ -18,8 +18,8 @@ export type DepositRewardTokensParams = WithOverrides<{ export const FN_SELECTOR = "0x16c621e0" as const; const FN_INPUTS = [ { - name: "_amount", type: "uint256", + name: "_amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -119,23 +119,23 @@ export function depositRewardTokens( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts index 66cec30444f..ed1eccc08f6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. @@ -18,8 +18,8 @@ export type WithdrawRewardTokensParams = WithOverrides<{ export const FN_SELECTOR = "0xcb43b2dd" as const; const FN_INPUTS = [ { - name: "_amount", type: "uint256", + name: "_amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -121,23 +121,23 @@ export function withdrawRewardTokens( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts index 430d0358c54..19270af23a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts @@ -1,27 +1,28 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb280f703" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "name", type: "string", + name: "name", }, { - name: "description", type: "string", + name: "description", }, { - name: "imageURI", type: "string", + name: "imageURI", }, { - name: "animationURI", type: "string", + name: "animationURI", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts index d3213e60abd..cce5712e655 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSharedMetadata" function. @@ -27,26 +27,26 @@ export type SetSharedMetadataParams = WithOverrides<{ export const FN_SELECTOR = "0xa7d27d9d" as const; const FN_INPUTS = [ { + type: "tuple", + name: "_metadata", components: [ { - name: "name", type: "string", + name: "name", }, { - name: "description", type: "string", + name: "description", }, { - name: "imageURI", type: "string", + name: "imageURI", }, { - name: "animationURI", type: "string", + name: "animationURI", }, ], - name: "_metadata", - type: "tuple", }, ] as const; const FN_OUTPUTS = [] as const; @@ -146,23 +146,23 @@ export function setSharedMetadata( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.metadata] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts index a96c36cd312..c60a5c32c2e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SharedMetadataDeleted" event. @@ -36,7 +36,7 @@ export function sharedMetadataDeletedEvent( filters: SharedMetadataDeletedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event SharedMetadataDeleted(bytes32 indexed id)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts index 3b3f5625eda..57d4bb484fb 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SharedMetadataUpdated" event. @@ -36,8 +36,8 @@ export function sharedMetadataUpdatedEvent( filters: SharedMetadataUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event SharedMetadataUpdated(bytes32 indexed id, string name, string description, string imageURI, string animationURI)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts index da31f2a43bc..af641d83093 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts @@ -1,43 +1,44 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfc3c2a73" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "metadata", components: [ { - name: "id", type: "bytes32", + name: "id", }, { + type: "tuple", + name: "metadata", components: [ { - name: "name", type: "string", + name: "name", }, { - name: "description", type: "string", + name: "description", }, { - name: "imageURI", type: "string", + name: "imageURI", }, { - name: "animationURI", type: "string", + name: "animationURI", }, ], - name: "metadata", - type: "tuple", }, ], - name: "metadata", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts index 53289cc2231..2c361c8dad4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deleteSharedMetadata" function. @@ -18,8 +18,8 @@ export type DeleteSharedMetadataParams = WithOverrides<{ export const FN_SELECTOR = "0x1ebb2422" as const; const FN_INPUTS = [ { - name: "id", type: "bytes32", + name: "id", }, ] as const; const FN_OUTPUTS = [] as const; @@ -121,23 +121,23 @@ export function deleteSharedMetadata( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.id] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts index a0f31717dc7..da44ced507e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSharedMetadata" function. @@ -28,30 +28,30 @@ export type SetSharedMetadataParams = WithOverrides<{ export const FN_SELECTOR = "0x696b0c1a" as const; const FN_INPUTS = [ { + type: "tuple", + name: "metadata", components: [ { - name: "name", type: "string", + name: "name", }, { - name: "description", type: "string", + name: "description", }, { - name: "imageURI", type: "string", + name: "imageURI", }, { - name: "animationURI", type: "string", + name: "animationURI", }, ], - name: "metadata", - type: "tuple", }, { - name: "id", type: "bytes32", + name: "id", }, ] as const; const FN_OUTPUTS = [] as const; @@ -154,23 +154,23 @@ export function setSharedMetadata( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.metadata, resolvedOptions.id] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts index ca29a0a1af8..9da306f14a9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. @@ -48,8 +48,8 @@ export function tokensMintedWithSignatureEvent( filters: TokensMintedWithSignatureEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 indexed tokenIdMinted, (address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, string uri, uint256 price, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) mintpayload)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts index 7fe7800d736..c1389c23da5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. @@ -32,64 +32,64 @@ export type VerifyParams = { export const FN_SELECTOR = "0xde903774" as const; const FN_INPUTS = [ { + type: "tuple", + name: "payload", components: [ { - name: "to", type: "address", + name: "to", }, { - name: "royaltyRecipient", type: "address", + name: "royaltyRecipient", }, { - name: "royaltyBps", type: "uint256", + name: "royaltyBps", }, { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, { - name: "uri", type: "string", + name: "uri", }, { - name: "price", type: "uint256", + name: "price", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "validityStartTimestamp", type: "uint128", + name: "validityStartTimestamp", }, { - name: "validityEndTimestamp", type: "uint128", + name: "validityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "payload", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [ { - name: "success", type: "bool", + name: "success", }, { - name: "signer", type: "address", + name: "signer", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts index 25d1533f72c..d2d2e11439a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. @@ -34,60 +34,60 @@ export type MintWithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0x2c4510f8" as const; const FN_INPUTS = [ { + type: "tuple", + name: "payload", components: [ { - name: "to", type: "address", + name: "to", }, { - name: "royaltyRecipient", type: "address", + name: "royaltyRecipient", }, { - name: "royaltyBps", type: "uint256", + name: "royaltyBps", }, { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, { - name: "uri", type: "string", + name: "uri", }, { - name: "price", type: "uint256", + name: "price", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "validityStartTimestamp", type: "uint128", + name: "validityStartTimestamp", }, { - name: "validityEndTimestamp", type: "uint128", + name: "validityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "payload", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [ { - name: "tokenIdMinted", type: "uint256", + name: "tokenIdMinted", }, ] as const; @@ -189,23 +189,23 @@ export function mintWithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.payload, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts index 6070f21cb48..e51025efeaf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. @@ -48,8 +48,8 @@ export function tokensMintedWithSignatureEvent( filters: TokensMintedWithSignatureEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 indexed tokenIdMinted, (address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, string uri, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid) mintRequest)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts index eea0742e752..271dd56a03a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. @@ -33,68 +33,68 @@ export type VerifyParams = { export const FN_SELECTOR = "0x252e82e8" as const; const FN_INPUTS = [ { + type: "tuple", + name: "req", components: [ { - name: "to", type: "address", + name: "to", }, { - name: "royaltyRecipient", type: "address", + name: "royaltyRecipient", }, { - name: "royaltyBps", type: "uint256", + name: "royaltyBps", }, { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, { - name: "uri", type: "string", + name: "uri", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "validityStartTimestamp", type: "uint128", + name: "validityStartTimestamp", }, { - name: "validityEndTimestamp", type: "uint128", + name: "validityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "req", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [ { - name: "success", type: "bool", + name: "success", }, { - name: "signer", type: "address", + name: "signer", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts index d3a242538bf..43d69ee4691 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. @@ -35,64 +35,64 @@ export type MintWithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0x439c7be5" as const; const FN_INPUTS = [ { + type: "tuple", + name: "payload", components: [ { - name: "to", type: "address", + name: "to", }, { - name: "royaltyRecipient", type: "address", + name: "royaltyRecipient", }, { - name: "royaltyBps", type: "uint256", + name: "royaltyBps", }, { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, { - name: "uri", type: "string", + name: "uri", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "validityStartTimestamp", type: "uint128", + name: "validityStartTimestamp", }, { - name: "validityEndTimestamp", type: "uint128", + name: "validityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "payload", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; @@ -194,23 +194,23 @@ export function mintWithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.payload, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts index 88248c5ecbd..691150f4d6b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardsClaimed" event. @@ -34,8 +34,8 @@ export type RewardsClaimedEventFilters = Partial<{ */ export function rewardsClaimedEvent(filters: RewardsClaimedEventFilters = {}) { return prepareEvent({ - filters, signature: "event RewardsClaimed(address indexed staker, uint256 rewardAmount)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts index 69c85b925fe..85cbbd5ce3f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensStaked" event. @@ -40,8 +40,8 @@ export type TokensStakedEventFilters = Partial<{ */ export function tokensStakedEvent(filters: TokensStakedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensStaked(address indexed staker, uint256[] indexed tokenIds)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts index 398986435e3..0955ed53001 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWithdrawn" event. @@ -42,8 +42,8 @@ export function tokensWithdrawnEvent( filters: TokensWithdrawnEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensWithdrawn(address indexed staker, uint256[] indexed tokenIds)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts index 6865a02efdb..8cb89434077 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfo" function. @@ -16,18 +16,18 @@ export type GetStakeInfoParams = { export const FN_SELECTOR = "0xc3453153" as const; const FN_INPUTS = [ { - name: "staker", type: "address", + name: "staker", }, ] as const; const FN_OUTPUTS = [ { - name: "_tokensStaked", type: "uint256[]", + name: "_tokensStaked", }, { - name: "_rewards", type: "uint256", + name: "_rewards", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts index 5971444a1c1..c8304c9c6af 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts index af616913fd7..e15d31e6f1e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "stake" function. @@ -21,8 +21,8 @@ export type StakeParams = WithOverrides<{ export const FN_SELECTOR = "0x0fbf0a93" as const; const FN_INPUTS = [ { - name: "tokenIds", type: "uint256[]", + name: "tokenIds", }, ] as const; const FN_OUTPUTS = [] as const; @@ -118,23 +118,23 @@ export function stake( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenIds] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts index 49b00b8d192..3f20b599377 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. @@ -21,8 +21,8 @@ export type WithdrawParams = WithOverrides<{ export const FN_SELECTOR = "0x983d95ce" as const; const FN_INPUTS = [ { - name: "tokenIds", type: "uint256[]", + name: "tokenIds", }, ] as const; const FN_OUTPUTS = [] as const; @@ -118,23 +118,23 @@ export function withdraw( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenIds] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts index b4e26aa7184..667cd89e059 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. @@ -40,8 +40,8 @@ export type TokensMintedEventFilters = Partial<{ */ export function tokensMintedEvent(filters: TokensMintedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensMinted(address indexed mintedTo, uint256 indexed tokenIdMinted, string uri)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts index 38f41c7c98b..9b1685e557a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. @@ -48,8 +48,8 @@ export function tokensMintedWithSignatureEvent( filters: TokensMintedWithSignatureEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensMintedWithSignature(address indexed signer, address indexed mintedTo, uint256 indexed tokenIdMinted, (address to, address royaltyRecipient, uint256 royaltyBps, address primarySaleRecipient, uint256 quantity, uint256 pricePerToken, address currency, uint128 validityStartTimestamp, uint128 validityEndTimestamp, string uri) mintRequest)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts index 2bb30b6fa3b..abab41a1765 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts index 8ead51593eb..0f6b2f9089d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. @@ -19,8 +19,8 @@ export type SupportsInterfaceParams = { export const FN_SELECTOR = "0x01ffc9a7" as const; const FN_INPUTS = [ { - name: "interfaceId", type: "bytes4", + name: "interfaceId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts index 1088ee3775c..cdd424d3861 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenURI" function. @@ -16,8 +16,8 @@ export type TokenURIParams = { export const FN_SELECTOR = "0xc87b56dd" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts index d9344309eea..121dc3577cd 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts index 0c2e0f3e9ba..2ffb88f2541 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancel" function. @@ -18,8 +18,8 @@ export type CancelParams = WithOverrides<{ export const FN_SELECTOR = "0x40e58ee5" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function cancel( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts index ae9acd0a859..54ee1fb1625 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -51,44 +51,44 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xe1591634" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_saleRecipient", type: "address", + name: "_saleRecipient", }, { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint128", + name: "_royaltyBps", }, { - name: "_platformFeeBps", type: "uint128", + name: "_platformFeeBps", }, { - name: "_platformFeeRecipient", type: "address", + name: "_platformFeeRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -224,19 +224,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -253,5 +242,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts index 9cc6dc7e5fe..266759ba60d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. @@ -19,18 +19,18 @@ export type MintToParams = WithOverrides<{ export const FN_SELECTOR = "0x0075a317" as const; const FN_INPUTS = [ { - name: "_to", type: "address", + name: "_to", }, { - name: "_uri", type: "string", + name: "_uri", }, ] as const; const FN_OUTPUTS = [ { - name: "tokenIdMinted", type: "uint256", + name: "tokenIdMinted", }, ] as const; @@ -128,23 +128,23 @@ export function mintTo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.to, resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts index 127443b9598..7a7692db51d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. @@ -34,60 +34,60 @@ export type MintWithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0x91c5ee92" as const; const FN_INPUTS = [ { + type: "tuple", + name: "_req", components: [ { - name: "to", type: "address", + name: "to", }, { - name: "royaltyRecipient", type: "address", + name: "royaltyRecipient", }, { - name: "royaltyBps", type: "uint256", + name: "royaltyBps", }, { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "validityStartTimestamp", type: "uint128", + name: "validityStartTimestamp", }, { - name: "validityEndTimestamp", type: "uint128", + name: "validityEndTimestamp", }, { - name: "uri", type: "string", + name: "uri", }, ], - name: "_req", - type: "tuple", }, { - name: "_signature", type: "bytes", + name: "_signature", }, ] as const; const FN_OUTPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; @@ -189,23 +189,23 @@ export function mintWithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.req, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts index b9e637a13fc..76f13dfcba5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revoke" function. @@ -18,8 +18,8 @@ export type RevokeParams = WithOverrides<{ export const FN_SELECTOR = "0x20c5429b" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function revoke( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts index ce08d0e6a20..1c2e257586d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensUnwrapped" event. @@ -48,8 +48,8 @@ export function tokensUnwrappedEvent( filters: TokensUnwrappedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokensUnwrapped(address indexed unwrapper, address indexed recipientOfWrappedContents, uint256 indexed tokenIdOfWrappedToken)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts index 6752b8171c0..476e907ad6d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWrapped" event. @@ -46,8 +46,8 @@ export type TokensWrappedEventFilters = Partial<{ */ export function tokensWrappedEvent(filters: TokensWrappedEventFilters = {}) { return prepareEvent({ - filters, signature: "event TokensWrapped(address indexed wrapper, address indexed recipientOfWrappedToken, uint256 indexed tokenIdOfWrappedToken, (address assetContract, uint8 tokenType, uint256 tokenId, uint256 amount)[] wrappedContents)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts index 3299d46f932..1ea0195f972 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts index d4d1cac88b2..c8d50c84091 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts index 0f0e7c0e59f..4b768cdca11 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getWrappedContents" function. @@ -16,32 +16,32 @@ export type GetWrappedContentsParams = { export const FN_SELECTOR = "0xd5576d26" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "contents", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "amount", type: "uint256", + name: "amount", }, ], - name: "contents", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts index 2bb30b6fa3b..abab41a1765 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts index 8ead51593eb..0f6b2f9089d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. @@ -19,8 +19,8 @@ export type SupportsInterfaceParams = { export const FN_SELECTOR = "0x01ffc9a7" as const; const FN_INPUTS = [ { - name: "interfaceId", type: "bytes4", + name: "interfaceId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts index 1088ee3775c..cdd424d3861 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenURI" function. @@ -16,8 +16,8 @@ export type TokenURIParams = { export const FN_SELECTOR = "0xc87b56dd" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts index 705cfeb456e..1b88232e138 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -39,32 +39,32 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0x754b8fe7" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint256", + name: "_royaltyBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -188,19 +188,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -214,5 +203,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts index e1bd6b38d57..2ea813d8f3f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "unwrap" function. @@ -22,12 +22,12 @@ export type UnwrapParams = WithOverrides<{ export const FN_SELECTOR = "0x7647691d" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_recipient", type: "address", + name: "_recipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -126,23 +126,23 @@ export function unwrap( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId, resolvedOptions.recipient] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts index 78026fa445b..03582322e9c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "wrap" function. @@ -35,40 +35,40 @@ export type WrapParams = WithOverrides<{ export const FN_SELECTOR = "0x29e471dd" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "_tokensToWrap", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "amount", type: "uint256", + name: "amount", }, ], - name: "_tokensToWrap", - type: "tuple[]", }, { - name: "_uriForWrappedToken", type: "string", + name: "_uriForWrappedToken", }, { - name: "_recipient", type: "address", + name: "_recipient", }, ] as const; const FN_OUTPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; @@ -173,19 +173,8 @@ export function wrap( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -195,5 +184,16 @@ export function wrap( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts index e9d9edffc70..6c8ce5a86d9 100644 --- a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts @@ -1,49 +1,50 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "allExtensions", components: [ { + type: "tuple", + name: "metadata", components: [ { - name: "name", type: "string", + name: "name", }, { - name: "metadataURI", type: "string", + name: "metadataURI", }, { - name: "implementation", type: "address", + name: "implementation", }, ], - name: "metadata", - type: "tuple", }, { + type: "tuple[]", + name: "functions", components: [ { - name: "functionSelector", type: "bytes4", + name: "functionSelector", }, { - name: "functionSignature", type: "string", + name: "functionSignature", }, ], - name: "functions", - type: "tuple[]", }, ], - name: "allExtensions", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts index 0cdc82fe213..c833872cbc4 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x9cfd7cff" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "accountImplementationId", type: "string", + name: "accountImplementationId", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts index 60ad0322483..7225170e831 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isModuleInstalled" function. @@ -24,16 +24,16 @@ export type IsModuleInstalledParams = { export const FN_SELECTOR = "0x112d3a7d" as const; const FN_INPUTS = [ { - name: "moduleTypeId", type: "uint256", + name: "moduleTypeId", }, { - name: "module", type: "address", + name: "module", }, { - name: "additionalContext", type: "bytes", + name: "additionalContext", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts index df322da3153..88b6b0b11aa 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isValidSignature" function. @@ -17,12 +17,12 @@ export type IsValidSignatureParams = { export const FN_SELECTOR = "0x1626ba7e" as const; const FN_INPUTS = [ { - name: "hash", type: "bytes32", + name: "hash", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts index 3d6a47da4a3..7778eae8bee 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsExecutionMode" function. @@ -19,8 +19,8 @@ export type SupportsExecutionModeParams = { export const FN_SELECTOR = "0xd03c7914" as const; const FN_INPUTS = [ { - name: "encodedMode", type: "bytes32", + name: "encodedMode", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts index ff29be0c985..b31d7ab4910 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsModule" function. @@ -19,8 +19,8 @@ export type SupportsModuleParams = { export const FN_SELECTOR = "0xf2dc691d" as const; const FN_INPUTS = [ { - name: "moduleTypeId", type: "uint256", + name: "moduleTypeId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts index a45cd99822c..5a7c9b02cd4 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "execute" function. @@ -22,12 +22,12 @@ export type ExecuteParams = WithOverrides<{ export const FN_SELECTOR = "0xe9ae5c53" as const; const FN_INPUTS = [ { - name: "mode", type: "bytes32", + name: "mode", }, { - name: "executionCalldata", type: "bytes", + name: "executionCalldata", }, ] as const; const FN_OUTPUTS = [] as const; @@ -129,23 +129,23 @@ export function execute( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.mode, resolvedOptions.executionCalldata] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts index 2590e8ce64a..dcc7750443a 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "executeFromExecutor" function. @@ -22,18 +22,18 @@ export type ExecuteFromExecutorParams = WithOverrides<{ export const FN_SELECTOR = "0xd691c964" as const; const FN_INPUTS = [ { - name: "mode", type: "bytes32", + name: "mode", }, { - name: "executionCalldata", type: "bytes", + name: "executionCalldata", }, ] as const; const FN_OUTPUTS = [ { - name: "returnData", type: "bytes[]", + name: "returnData", }, ] as const; @@ -138,23 +138,23 @@ export function executeFromExecutor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.mode, resolvedOptions.executionCalldata] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts index 822845b2145..9431c3d7dcf 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "installModule" function. @@ -23,16 +23,16 @@ export type InstallModuleParams = WithOverrides<{ export const FN_SELECTOR = "0x9517e29f" as const; const FN_INPUTS = [ { - name: "moduleTypeId", type: "uint256", + name: "moduleTypeId", }, { - name: "module", type: "address", + name: "module", }, { - name: "initData", type: "bytes", + name: "initData", }, ] as const; const FN_OUTPUTS = [] as const; @@ -140,19 +140,8 @@ export function installModule( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -162,5 +151,16 @@ export function installModule( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts index 1288636e295..5cf2425dcac 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uninstallModule" function. @@ -26,16 +26,16 @@ export type UninstallModuleParams = WithOverrides<{ export const FN_SELECTOR = "0xa71763a8" as const; const FN_INPUTS = [ { - name: "moduleTypeId", type: "uint256", + name: "moduleTypeId", }, { - name: "module", type: "address", + name: "module", }, { - name: "deInitData", type: "bytes", + name: "deInitData", }, ] as const; const FN_OUTPUTS = [] as const; @@ -143,19 +143,8 @@ export function uninstallModule( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -165,5 +154,16 @@ export function uninstallModule( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts index a4e11bccd61..bd823de97a1 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. @@ -42,8 +42,8 @@ export function ownershipTransferredEvent( filters: OwnershipTransferredEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts index e3c49af0a2f..ee84303fd0b 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Upgraded" event. @@ -34,7 +34,7 @@ export type UpgradedEventFilters = Partial<{ */ export function upgradedEvent(filters: UpgradedEventFilters = {}) { return prepareEvent({ - filters, signature: "event Upgraded(address indexed implementation)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts index 5f54e325971..bbf45d7fb41 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts index 2125755adc1..f31566f4716 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa65d69d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts index b9633b280df..180f8da52fc 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAddress" function. @@ -17,18 +17,18 @@ export type GetAddressParams = { export const FN_SELECTOR = "0x8878ed33" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, { - name: "salt", type: "bytes", + name: "salt", }, ] as const; const FN_OUTPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts index 3da59c7f228..99a48c2f09d 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x5c60da1b" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "result", type: "address", + name: "result", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts index a9edc4b89a6..3323ac7ce15 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "result", type: "address", + name: "result", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts index 31435f0de4d..3c7faad0ce7 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addStake" function. @@ -21,8 +21,8 @@ export type AddStakeParams = WithOverrides<{ export const FN_SELECTOR = "0x0396cb60" as const; const FN_INPUTS = [ { - name: "unstakeDelaySec", type: "uint32", + name: "unstakeDelaySec", }, ] as const; const FN_OUTPUTS = [] as const; @@ -118,23 +118,23 @@ export function addStake( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.unstakeDelaySec] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts index da584e4ee29..e499f3b0187 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAccountWithModules" function. @@ -28,30 +28,30 @@ export type CreateAccountWithModulesParams = WithOverrides<{ export const FN_SELECTOR = "0x7c37d0dc" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, { - name: "salt", type: "bytes", + name: "salt", }, { + type: "tuple[]", + name: "modules", components: [ { - name: "moduleTypeId", type: "uint256", + name: "moduleTypeId", }, { - name: "module", type: "address", + name: "module", }, { - name: "initData", type: "bytes", + name: "initData", }, ], - name: "modules", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [ @@ -169,19 +169,8 @@ export function createAccountWithModules( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -191,5 +180,16 @@ export function createAccountWithModules( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts index 0fa112c28e3..5798a31905c 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts index ae9fadeeb32..21c03f6f32a 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. @@ -18,8 +18,8 @@ export type TransferOwnershipParams = WithOverrides<{ export const FN_SELECTOR = "0xf2fde38b" as const; const FN_INPUTS = [ { - name: "newOwner", type: "address", + name: "newOwner", }, ] as const; const FN_OUTPUTS = [] as const; @@ -119,23 +119,23 @@ export function transferOwnership( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.newOwner] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts index b2443506421..c3601ab471b 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts index 69778356cbc..632ee9f2fce 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "upgradeTo" function. @@ -21,8 +21,8 @@ export type UpgradeToParams = WithOverrides<{ export const FN_SELECTOR = "0x3659cfe6" as const; const FN_INPUTS = [ { - name: "newImplementation", type: "address", + name: "newImplementation", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function upgradeTo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.newImplementation] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts index b9f2a3c4a34..4a20c5590f8 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. @@ -20,16 +20,16 @@ export type WithdrawParams = WithOverrides<{ export const FN_SELECTOR = "0xd9caed12" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "token", type: "address", + name: "token", }, { - name: "amount", type: "uint256", + name: "amount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -135,19 +135,8 @@ export function withdraw( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -157,5 +146,16 @@ export function withdraw( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts index 7eb496448d3..a8e5011d893 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawStake" function. @@ -18,8 +18,8 @@ export type WithdrawStakeParams = WithOverrides<{ export const FN_SELECTOR = "0xc23a5cea" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function withdrawStake( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.to] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts index de30c93be7e..8d5f1a700d2 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Executed" event. @@ -34,7 +34,7 @@ export type ExecutedEventFilters = Partial<{ */ export function executedEvent(filters: ExecutedEventFilters = {}) { return prepareEvent({ - filters, signature: "event Executed(address indexed to, uint256 value, bytes data)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts index 6851748f9d1..93310f4dc59 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SessionCreated" event. @@ -34,8 +34,8 @@ export type SessionCreatedEventFilters = Partial<{ */ export function sessionCreatedEvent(filters: SessionCreatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event SessionCreated(address indexed signer, (address signer, bool isWildcard, uint256 expiresAt, (address target, bytes4 selector, uint256 maxValuePerUse, (uint8 limitType, uint256 limit, uint256 period) valueLimit, (uint8 condition, uint64 index, bytes32 refValue, (uint8 limitType, uint256 limit, uint256 period) limit)[] constraints)[] callPolicies, (address target, uint256 maxValuePerUse, (uint8 limitType, uint256 limit, uint256 period) valueLimit)[] transferPolicies, bytes32 uid) sessionSpec)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts index 95be7b27e5a..a8020aabb12 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts @@ -1,39 +1,40 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "fields", type: "bytes1", + name: "fields", }, { - name: "name", type: "string", + name: "name", }, { - name: "version", type: "string", + name: "version", }, { - name: "chainId", type: "uint256", + name: "chainId", }, { - name: "verifyingContract", type: "address", + name: "verifyingContract", }, { - name: "salt", type: "bytes32", + name: "salt", }, { - name: "extensions", type: "uint256[]", + name: "extensions", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts index e5680d5fe09..3566c481b00 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getCallPoliciesForSigner" function. @@ -16,81 +16,81 @@ export type GetCallPoliciesForSignerParams = { export const FN_SELECTOR = "0x7103acbb" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "maxValuePerUse", type: "uint256", + name: "maxValuePerUse", }, { + type: "tuple", + name: "valueLimit", components: [ { - name: "limitType", type: "uint8", + name: "limitType", }, { - name: "limit", type: "uint256", + name: "limit", }, { - name: "period", type: "uint256", + name: "period", }, ], - name: "valueLimit", - type: "tuple", }, { + type: "tuple[]", + name: "constraints", components: [ { - name: "condition", type: "uint8", + name: "condition", }, { - name: "index", type: "uint64", + name: "index", }, { - name: "refValue", type: "bytes32", + name: "refValue", }, { + type: "tuple", + name: "limit", components: [ { - name: "limitType", type: "uint8", + name: "limitType", }, { - name: "limit", type: "uint256", + name: "limit", }, { - name: "period", type: "uint256", + name: "period", }, ], - name: "limit", - type: "tuple", }, ], - name: "constraints", - type: "tuple[]", }, ], - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts index de9198c6317..9c789a7cfff 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getSessionExpirationForSigner" function. @@ -16,8 +16,8 @@ export type GetSessionExpirationForSignerParams = { export const FN_SELECTOR = "0xf0a83adf" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts index 190f7ace4ba..ea93606d2d6 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getSessionStateForSigner" function. @@ -16,81 +16,81 @@ export type GetSessionStateForSignerParams = { export const FN_SELECTOR = "0x74e25eb2" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", components: [ { + type: "tuple[]", + name: "transferValue", components: [ { - name: "remaining", type: "uint256", + name: "remaining", }, { - name: "target", type: "address", + name: "target", }, { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "index", type: "uint256", + name: "index", }, ], - name: "transferValue", - type: "tuple[]", }, { + type: "tuple[]", + name: "callValue", components: [ { - name: "remaining", type: "uint256", + name: "remaining", }, { - name: "target", type: "address", + name: "target", }, { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "index", type: "uint256", + name: "index", }, ], - name: "callValue", - type: "tuple[]", }, { + type: "tuple[]", + name: "callParams", components: [ { - name: "remaining", type: "uint256", + name: "remaining", }, { - name: "target", type: "address", + name: "target", }, { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "index", type: "uint256", + name: "index", }, ], - name: "callParams", - type: "tuple[]", }, ], - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts index e08786479ca..a1763951ba8 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTransferPoliciesForSigner" function. @@ -16,41 +16,41 @@ export type GetTransferPoliciesForSignerParams = { export const FN_SELECTOR = "0xed6ed279" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "maxValuePerUse", type: "uint256", + name: "maxValuePerUse", }, { + type: "tuple", + name: "valueLimit", components: [ { - name: "limitType", type: "uint8", + name: "limitType", }, { - name: "limit", type: "uint256", + name: "limit", }, { - name: "period", type: "uint256", + name: "period", }, ], - name: "valueLimit", - type: "tuple", }, ], - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts index 880b985ffdd..3287eb5fbd0 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isWildcardSigner" function. @@ -16,8 +16,8 @@ export type IsWildcardSignerParams = { export const FN_SELECTOR = "0x16c258a7" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts index e4b50d9a004..f78b186f2cf 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createSessionWithSig" function. @@ -81,134 +81,134 @@ export type CreateSessionWithSigParams = WithOverrides<{ export const FN_SELECTOR = "0xb5051648" as const; const FN_INPUTS = [ { + type: "tuple", + name: "sessionSpec", components: [ { - name: "signer", type: "address", + name: "signer", }, { - name: "isWildcard", type: "bool", + name: "isWildcard", }, { - name: "expiresAt", type: "uint256", + name: "expiresAt", }, { + type: "tuple[]", + name: "callPolicies", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "maxValuePerUse", type: "uint256", + name: "maxValuePerUse", }, { + type: "tuple", + name: "valueLimit", components: [ { - name: "limitType", type: "uint8", + name: "limitType", }, { - name: "limit", type: "uint256", + name: "limit", }, { - name: "period", type: "uint256", + name: "period", }, ], - name: "valueLimit", - type: "tuple", }, { + type: "tuple[]", + name: "constraints", components: [ { - name: "condition", type: "uint8", + name: "condition", }, { - name: "index", type: "uint64", + name: "index", }, { - name: "refValue", type: "bytes32", + name: "refValue", }, { + type: "tuple", + name: "limit", components: [ { - name: "limitType", type: "uint8", + name: "limitType", }, { - name: "limit", type: "uint256", + name: "limit", }, { - name: "period", type: "uint256", + name: "period", }, ], - name: "limit", - type: "tuple", }, ], - name: "constraints", - type: "tuple[]", }, ], - name: "callPolicies", - type: "tuple[]", }, { + type: "tuple[]", + name: "transferPolicies", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "maxValuePerUse", type: "uint256", + name: "maxValuePerUse", }, { + type: "tuple", + name: "valueLimit", components: [ { - name: "limitType", type: "uint8", + name: "limitType", }, { - name: "limit", type: "uint256", + name: "limit", }, { - name: "period", type: "uint256", + name: "period", }, ], - name: "valueLimit", - type: "tuple", }, ], - name: "transferPolicies", - type: "tuple[]", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "sessionSpec", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -316,23 +316,23 @@ export function createSessionWithSig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.sessionSpec, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts index e3e0a0ad402..81b1df259d6 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "execute" function. @@ -26,22 +26,22 @@ export type ExecuteParams = WithOverrides<{ export const FN_SELECTOR = "0x3f707e6b" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "calls", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "value", type: "uint256", + name: "value", }, { - name: "data", type: "bytes", + name: "data", }, ], - name: "calls", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [] as const; @@ -137,23 +137,23 @@ export function execute( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.calls] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts index b70e69ad6cd..808b3854139 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "executeWithSig" function. @@ -34,36 +34,36 @@ export type ExecuteWithSigParams = WithOverrides<{ export const FN_SELECTOR = "0xba61557d" as const; const FN_INPUTS = [ { + type: "tuple", + name: "wrappedCalls", components: [ { + type: "tuple[]", + name: "calls", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "value", type: "uint256", + name: "value", }, { - name: "data", type: "bytes", + name: "data", }, ], - name: "calls", - type: "tuple[]", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "wrappedCalls", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -167,23 +167,23 @@ export function executeWithSig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.wrappedCalls, resolvedOptions.signature] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts index ab6c007dacf..31bb53a4e44 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts index b27d76ee6e0..7ead96b0c37 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts index 80f60351838..52d7a381538 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "price" function. @@ -19,8 +19,8 @@ export type PriceParams = { export const FN_SELECTOR = "0x26a49e37" as const; const FN_INPUTS = [ { - name: "extraStorage", type: "uint256", + name: "extraStorage", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts index 22f7b727c93..06c46b0a455 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "register" function. @@ -43,66 +43,66 @@ export type RegisterParams = WithOverrides<{ export const FN_SELECTOR = "0xa44c9ce7" as const; const FN_INPUTS = [ { + type: "tuple", + name: "registerParams", components: [ { - name: "to", type: "address", + name: "to", }, { - name: "recovery", type: "address", + name: "recovery", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "sig", type: "bytes", + name: "sig", }, ], - name: "registerParams", - type: "tuple", }, { + type: "tuple[]", + name: "signerParams", components: [ { - name: "keyType", type: "uint32", + name: "keyType", }, { - name: "key", type: "bytes", + name: "key", }, { - name: "metadataType", type: "uint8", + name: "metadataType", }, { - name: "metadata", type: "bytes", + name: "metadata", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "sig", type: "bytes", + name: "sig", }, ], - name: "signerParams", - type: "tuple[]", }, { - name: "extraStorage", type: "uint256", + name: "extraStorage", }, ] as const; const FN_OUTPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, ] as const; @@ -207,19 +207,8 @@ export function register( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -229,5 +218,16 @@ export function register( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts index 4a3345eef0f..2c959f33f59 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x6a5306a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts index 011085f6144..af26e126344 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts index 80f60351838..52d7a381538 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "price" function. @@ -19,8 +19,8 @@ export type PriceParams = { export const FN_SELECTOR = "0x26a49e37" as const; const FN_INPUTS = [ { - name: "extraStorage", type: "uint256", + name: "extraStorage", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts index 7a97f33ba5e..5bb15a70f8d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4ec77b45" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts index f0f2d76ae4a..9be06cdbe1e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "register" function. @@ -22,22 +22,22 @@ export type RegisterParams = WithOverrides<{ export const FN_SELECTOR = "0x6d705ebb" as const; const FN_INPUTS = [ { - name: "recovery", type: "address", + name: "recovery", }, { - name: "extraStorage", type: "uint256", + name: "extraStorage", }, ] as const; const FN_OUTPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, { - name: "overpayment", type: "uint256", + name: "overpayment", }, ] as const; @@ -138,23 +138,23 @@ export function register( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.recovery, resolvedOptions.extraStorage] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts index 17e541df5d2..dfc90dfd636 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "registerFor" function. @@ -25,34 +25,34 @@ export type RegisterForParams = WithOverrides<{ export const FN_SELECTOR = "0xa0c7529c" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "recovery", type: "address", + name: "recovery", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "sig", type: "bytes", + name: "sig", }, { - name: "extraStorage", type: "uint256", + name: "extraStorage", }, ] as const; const FN_OUTPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, { - name: "overpayment", type: "uint256", + name: "overpayment", }, ] as const; @@ -167,19 +167,8 @@ export function registerFor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -191,5 +180,16 @@ export function registerFor( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts index 19cd2f4d448..514c3444a8e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AdminReset" event. @@ -34,7 +34,7 @@ export type AdminResetEventFilters = Partial<{ */ export function adminResetEvent(filters: AdminResetEventFilters = {}) { return prepareEvent({ - filters, signature: "event AdminReset(uint256 indexed fid)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts index 29ab077be4e..655c8354855 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ChangeRecoveryAddress" event. @@ -42,8 +42,8 @@ export function changeRecoveryAddressEvent( filters: ChangeRecoveryAddressEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event ChangeRecoveryAddress(uint256 indexed id, address indexed recovery)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts index c859416f5bf..a646e6f7252 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Recover" event. @@ -46,8 +46,8 @@ export type RecoverEventFilters = Partial<{ */ export function recoverEvent(filters: RecoverEventFilters = {}) { return prepareEvent({ - filters, signature: "event Recover(address indexed from, address indexed to, uint256 indexed id)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts index bbcd30cbe49..43d1195a0c1 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Register" event. @@ -40,8 +40,8 @@ export type RegisterEventFilters = Partial<{ */ export function registerEvent(filters: RegisterEventFilters = {}) { return prepareEvent({ - filters, signature: "event Register(address indexed to, uint256 indexed id, address recovery)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts index 7f232ba6a13..e5e708c2290 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. @@ -40,8 +40,8 @@ export type TransferEventFilters = Partial<{ */ export function transferEvent(filters: TransferEventFilters = {}) { return prepareEvent({ - filters, signature: "event Transfer(address indexed from, address indexed to, uint256 id)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts index 8cf023ced5f..e92335890f0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd5bac7f3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts index 16234140459..cd9b402fa7a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xea2bbb83" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts index f968b97b123..cb54955823e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x00bf26f4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts index 0ef60f6be42..dd5e0800b68 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "custodyOf" function. @@ -16,14 +16,14 @@ export type CustodyOfParams = { export const FN_SELECTOR = "0x65269e47" as const; const FN_INPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, ] as const; const FN_OUTPUTS = [ { - name: "owner", type: "address", + name: "owner", }, ] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts index b1633b0da23..60f0638f844 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts index 4670417928c..86c34619ada 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xeb08ab28" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts index ab6c007dacf..31bb53a4e44 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts index b7de6626faa..aa4fbda61f2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "idOf" function. @@ -16,14 +16,14 @@ export type IdOfParams = { export const FN_SELECTOR = "0xd94fe832" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, ] as const; const FN_OUTPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, ] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts index 17bc3551062..a790ee0cf7d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "recoveryOf" function. @@ -16,14 +16,14 @@ export type RecoveryOfParams = { export const FN_SELECTOR = "0xfa1a1b25" as const; const FN_INPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, ] as const; const FN_OUTPUTS = [ { - name: "recovery", type: "address", + name: "recovery", }, ] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts index 271eadf920a..3b1472b3eab 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyFidSignature" function. @@ -22,26 +22,26 @@ export type VerifyFidSignatureParams = { export const FN_SELECTOR = "0x32faac70" as const; const FN_INPUTS = [ { - name: "custodyAddress", type: "address", + name: "custodyAddress", }, { - name: "fid", type: "uint256", + name: "fid", }, { - name: "digest", type: "bytes32", + name: "digest", }, { - name: "sig", type: "bytes", + name: "sig", }, ] as const; const FN_OUTPUTS = [ { - name: "isValid", type: "bool", + name: "isValid", }, ] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts index 330bccfb96f..bda18636266 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "changeRecoveryAddress" function. @@ -18,8 +18,8 @@ export type ChangeRecoveryAddressParams = WithOverrides<{ export const FN_SELECTOR = "0xf1f0b224" as const; const FN_INPUTS = [ { - name: "recovery", type: "address", + name: "recovery", }, ] as const; const FN_OUTPUTS = [] as const; @@ -121,23 +121,23 @@ export function changeRecoveryAddress( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.recovery] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts index 80e9629a194..60bc5bc9fc7 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "changeRecoveryAddressFor" function. @@ -21,20 +21,20 @@ export type ChangeRecoveryAddressForParams = WithOverrides<{ export const FN_SELECTOR = "0x9cbef8dc" as const; const FN_INPUTS = [ { - name: "owner", type: "address", + name: "owner", }, { - name: "recovery", type: "address", + name: "recovery", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "sig", type: "bytes", + name: "sig", }, ] as const; const FN_OUTPUTS = [] as const; @@ -152,19 +152,8 @@ export function changeRecoveryAddressFor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -175,5 +164,16 @@ export function changeRecoveryAddressFor( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts index a0a9b3368f5..8831467efb6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "recover" function. @@ -21,20 +21,20 @@ export type RecoverParams = WithOverrides<{ export const FN_SELECTOR = "0x2a42ede3" as const; const FN_INPUTS = [ { - name: "from", type: "address", + name: "from", }, { - name: "to", type: "address", + name: "to", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "sig", type: "bytes", + name: "sig", }, ] as const; const FN_OUTPUTS = [] as const; @@ -144,19 +144,8 @@ export function recover( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -167,5 +156,16 @@ export function recover( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts index 93482dacc65..af489197a44 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "recoverFor" function. @@ -32,28 +32,28 @@ export type RecoverForParams = WithOverrides<{ export const FN_SELECTOR = "0xba656434" as const; const FN_INPUTS = [ { - name: "from", type: "address", + name: "from", }, { - name: "to", type: "address", + name: "to", }, { - name: "recoveryDeadline", type: "uint256", + name: "recoveryDeadline", }, { - name: "recoverySig", type: "bytes", + name: "recoverySig", }, { - name: "toDeadline", type: "uint256", + name: "toDeadline", }, { - name: "toSig", type: "bytes", + name: "toSig", }, ] as const; const FN_OUTPUTS = [] as const; @@ -173,19 +173,8 @@ export function recoverFor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -198,5 +187,16 @@ export function recoverFor( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts index e910082125e..326c6c3ab43 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. @@ -20,16 +20,16 @@ export type TransferParams = WithOverrides<{ export const FN_SELECTOR = "0xbe45fd62" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "sig", type: "bytes", + name: "sig", }, ] as const; const FN_OUTPUTS = [] as const; @@ -135,19 +135,8 @@ export function transfer( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -157,5 +146,16 @@ export function transfer( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts index 6b19a04a8f8..2bbdcece210 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferAndChangeRecovery" function. @@ -21,20 +21,20 @@ export type TransferAndChangeRecoveryParams = WithOverrides<{ export const FN_SELECTOR = "0x3ab8465d" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "recovery", type: "address", + name: "recovery", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "sig", type: "bytes", + name: "sig", }, ] as const; const FN_OUTPUTS = [] as const; @@ -152,19 +152,8 @@ export function transferAndChangeRecovery( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -175,5 +164,16 @@ export function transferAndChangeRecovery( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts index e7626ce8d2d..f254cef9caf 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferAndChangeRecoveryFor" function. @@ -30,32 +30,32 @@ export type TransferAndChangeRecoveryForParams = WithOverrides<{ export const FN_SELECTOR = "0x4c5cbb34" as const; const FN_INPUTS = [ { - name: "from", type: "address", + name: "from", }, { - name: "to", type: "address", + name: "to", }, { - name: "recovery", type: "address", + name: "recovery", }, { - name: "fromDeadline", type: "uint256", + name: "fromDeadline", }, { - name: "fromSig", type: "bytes", + name: "fromSig", }, { - name: "toDeadline", type: "uint256", + name: "toDeadline", }, { - name: "toSig", type: "bytes", + name: "toSig", }, ] as const; const FN_OUTPUTS = [] as const; @@ -185,19 +185,8 @@ export function transferAndChangeRecoveryFor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -211,5 +200,16 @@ export function transferAndChangeRecoveryFor( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts index adfb3d6d281..d4499dad613 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFor" function. @@ -29,28 +29,28 @@ export type TransferForParams = WithOverrides<{ export const FN_SELECTOR = "0x16f72842" as const; const FN_INPUTS = [ { - name: "from", type: "address", + name: "from", }, { - name: "to", type: "address", + name: "to", }, { - name: "fromDeadline", type: "uint256", + name: "fromDeadline", }, { - name: "fromSig", type: "bytes", + name: "fromSig", }, { - name: "toDeadline", type: "uint256", + name: "toDeadline", }, { - name: "toSig", type: "bytes", + name: "toSig", }, ] as const; const FN_OUTPUTS = [] as const; @@ -170,19 +170,8 @@ export function transferFor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -195,5 +184,16 @@ export function transferFor( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts index 978192092e2..c4ac42ba8be 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xab583c1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts index e9d4f945ce6..32289cc6879 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x086b5198" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts index 2d4370a57bd..57aad7f4608 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. @@ -16,8 +16,8 @@ export type NoncesParams = { export const FN_SELECTOR = "0x7ecebe00" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts index 2693fa21f00..2e72ed2db94 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "add" function. @@ -24,20 +24,20 @@ export type AddParams = WithOverrides<{ export const FN_SELECTOR = "0x22b1a414" as const; const FN_INPUTS = [ { - name: "keyType", type: "uint32", + name: "keyType", }, { - name: "key", type: "bytes", + name: "key", }, { - name: "metadataType", type: "uint8", + name: "metadataType", }, { - name: "metadata", type: "bytes", + name: "metadata", }, ] as const; const FN_OUTPUTS = [] as const; @@ -147,19 +147,8 @@ export function add( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -170,5 +159,16 @@ export function add( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts index 36d8b42a717..ab6001559a8 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addFor" function. @@ -27,32 +27,32 @@ export type AddForParams = WithOverrides<{ export const FN_SELECTOR = "0xa005d3d2" as const; const FN_INPUTS = [ { - name: "fidOwner", type: "address", + name: "fidOwner", }, { - name: "keyType", type: "uint32", + name: "keyType", }, { - name: "key", type: "bytes", + name: "key", }, { - name: "metadataType", type: "uint8", + name: "metadataType", }, { - name: "metadata", type: "bytes", + name: "metadata", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "sig", type: "bytes", + name: "sig", }, ] as const; const FN_OUTPUTS = [] as const; @@ -174,19 +174,8 @@ export function addFor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -200,5 +189,16 @@ export function addFor( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts index aca8ff4c464..82c9fe8a6e9 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Add" event. @@ -46,8 +46,8 @@ export type AddEventFilters = Partial<{ */ export function addEvent(filters: AddEventFilters = {}) { return prepareEvent({ - filters, signature: "event Add(uint256 indexed fid, uint32 indexed keyType, bytes indexed key, bytes keyBytes, uint8 metadataType, bytes metadata)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts index d058ba543ac..4ddf953a99a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AdminReset" event. @@ -40,8 +40,8 @@ export type AdminResetEventFilters = Partial<{ */ export function adminResetEvent(filters: AdminResetEventFilters = {}) { return prepareEvent({ - filters, signature: "event AdminReset(uint256 indexed fid, bytes indexed key, bytes keyBytes)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts index 2cbb8f5e029..76876634bc2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Remove" event. @@ -40,8 +40,8 @@ export type RemoveEventFilters = Partial<{ */ export function removeEvent(filters: RemoveEventFilters = {}) { return prepareEvent({ - filters, signature: "event Remove(uint256 indexed fid, bytes indexed key, bytes keyBytes)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts index ff5dd13852a..c3ce52a2acc 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb5775561" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts index b1633b0da23..60f0638f844 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts index 011085f6144..af26e126344 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts index 08add3ea42d..c603ca366d6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "keyAt" function. @@ -18,16 +18,16 @@ export type KeyAtParams = { export const FN_SELECTOR = "0x0ea9442c" as const; const FN_INPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, { - name: "state", type: "uint8", + name: "state", }, { - name: "index", type: "uint256", + name: "index", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts index 7466ff56320..3ec2a78a3f8 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "keyDataOf" function. @@ -17,12 +17,12 @@ export type KeyDataOfParams = { export const FN_SELECTOR = "0xac34cc5a" as const; const FN_INPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, { - name: "key", type: "bytes", + name: "key", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts index b27d76ee6e0..7ead96b0c37 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts index 0a933d04649..47e7e10c438 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "keysOf" function. @@ -17,12 +17,12 @@ export type KeysOfParams = { export const FN_SELECTOR = "0x1f64222f" as const; const FN_INPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, { - name: "state", type: "uint8", + name: "state", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts index 2ba35c2da2e..fe3c07d5561 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe33acf38" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts index 9a240bd9d14..70f25124341 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "totalKeys" function. @@ -17,12 +17,12 @@ export type TotalKeysParams = { export const FN_SELECTOR = "0x6840b75e" as const; const FN_INPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, { - name: "state", type: "uint8", + name: "state", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts index 505b8038435..96d8096c9d7 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "remove" function. @@ -18,8 +18,8 @@ export type RemoveParams = WithOverrides<{ export const FN_SELECTOR = "0x58edef4c" as const; const FN_INPUTS = [ { - name: "key", type: "bytes", + name: "key", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function remove( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.key] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts index ea1c8ca3925..9f9ca5ec955 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "removeFor" function. @@ -21,20 +21,20 @@ export type RemoveForParams = WithOverrides<{ export const FN_SELECTOR = "0x787bd966" as const; const FN_INPUTS = [ { - name: "fidOwner", type: "address", + name: "fidOwner", }, { - name: "key", type: "bytes", + name: "key", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "sig", type: "bytes", + name: "sig", }, ] as const; const FN_OUTPUTS = [] as const; @@ -146,19 +146,8 @@ export function removeFor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -169,5 +158,16 @@ export function removeFor( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts index a14b1157781..2804abcbb62 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x2c39d670" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts index 6b44251b8fd..95f61c0b3b5 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06517a29" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts index 8505431f921..b269ae251b3 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "price" function. @@ -16,8 +16,8 @@ export type PriceParams = { export const FN_SELECTOR = "0x26a49e37" as const; const FN_INPUTS = [ { - name: "units", type: "uint256", + name: "units", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts index 467003b92d2..251d0af30af 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x2751c4fd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts index cb8970c72f0..0ea65e49702 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe73faa2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts index 6d9acff24e6..051a7d5075d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x40df0ba0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts index 62dc2021742..7fe28d59ed6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "batchRent" function. @@ -19,12 +19,12 @@ export type BatchRentParams = WithOverrides<{ export const FN_SELECTOR = "0xa82c356e" as const; const FN_INPUTS = [ { - name: "fids", type: "uint256[]", + name: "fids", }, { - name: "units", type: "uint256[]", + name: "units", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function batchRent( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.fids, resolvedOptions.units] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts index 025e4f80b37..83175b73a06 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "rent" function. @@ -19,18 +19,18 @@ export type RentParams = WithOverrides<{ export const FN_SELECTOR = "0x783a112b" as const; const FN_INPUTS = [ { - name: "fid", type: "uint256", + name: "fid", }, { - name: "units", type: "uint256", + name: "units", }, ] as const; const FN_OUTPUTS = [ { - name: "overpayment", type: "uint256", + name: "overpayment", }, ] as const; @@ -128,23 +128,23 @@ export function rent( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.fid, resolvedOptions.units] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts index a3f4b147599..7727e542752 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowData" function. @@ -19,31 +19,31 @@ export type GetFollowDataParams = { export const FN_SELECTOR = "0xd6cbec5d" as const; const FN_INPUTS = [ { - name: "followTokenId", type: "uint256", + name: "followTokenId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", components: [ { - name: "followerProfileId", type: "uint160", + name: "followerProfileId", }, { - name: "originalFollowTimestamp", type: "uint48", + name: "originalFollowTimestamp", }, { - name: "followTimestamp", type: "uint48", + name: "followTimestamp", }, { - name: "profileIdAllowedToRecover", type: "uint256", + name: "profileIdAllowedToRecover", }, ], - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts index 658742012bc..790321c4822 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowTimestamp" function. @@ -19,8 +19,8 @@ export type GetFollowTimestampParams = { export const FN_SELECTOR = "0x3543a277" as const; const FN_INPUTS = [ { - name: "followTokenId", type: "uint256", + name: "followTokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts index 4f7435a95c8..8ad5fa2669a 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowTokenId" function. @@ -19,8 +19,8 @@ export type GetFollowTokenIdParams = { export const FN_SELECTOR = "0x11c763d6" as const; const FN_INPUTS = [ { - name: "followerProfileId", type: "uint256", + name: "followerProfileId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts index b77f53ea762..32715c1467b 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x7829ae4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts index 8cf23e11f65..9d41e05d6ec 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowerProfileId" function. @@ -19,8 +19,8 @@ export type GetFollowerProfileIdParams = { export const FN_SELECTOR = "0x886a65c3" as const; const FN_INPUTS = [ { - name: "followTokenId", type: "uint256", + name: "followTokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts index c82404bae68..5eb6814b734 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getOriginalFollowTimestamp" function. @@ -19,8 +19,8 @@ export type GetOriginalFollowTimestampParams = { export const FN_SELECTOR = "0xd1b34934" as const; const FN_INPUTS = [ { - name: "followTokenId", type: "uint256", + name: "followTokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts index 2942f9bf24e..101623902a7 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getProfileIdAllowedToRecover" function. @@ -19,8 +19,8 @@ export type GetProfileIdAllowedToRecoverParams = { export const FN_SELECTOR = "0x2af1544f" as const; const FN_INPUTS = [ { - name: "followTokenId", type: "uint256", + name: "followTokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts index fecddef35fa..6856b518944 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isFollowing" function. @@ -19,8 +19,8 @@ export type IsFollowingParams = { export const FN_SELECTOR = "0x4d71688d" as const; const FN_INPUTS = [ { - name: "followerProfileId", type: "uint256", + name: "followerProfileId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts index 75308c367f1..1631c257613 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTimestampOf" function. @@ -16,8 +16,8 @@ export type MintTimestampOfParams = { export const FN_SELECTOR = "0x50ddf35c" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts index d2b50d02fd7..b30d2e0f539 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getHandle" function. @@ -16,8 +16,8 @@ export type GetHandleParams = { export const FN_SELECTOR = "0xec81d194" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts index eac910c2726..de298f22a2d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x35eb3cb9" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts index d38af7a477c..099379d9c7a 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getLocalName" function. @@ -16,8 +16,8 @@ export type GetLocalNameParams = { export const FN_SELECTOR = "0x4985e504" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts index 11639e363d1..e2e95574a6d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTokenId" function. @@ -16,8 +16,8 @@ export type GetTokenIdParams = { export const FN_SELECTOR = "0x1e7663bc" as const; const FN_INPUTS = [ { - name: "localName", type: "string", + name: "localName", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts index d510979c856..cc5518032e3 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exists" function. @@ -16,8 +16,8 @@ export type ExistsParams = { export const FN_SELECTOR = "0x4f558e79" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts index 91ae1a9deaa..114e9c70f25 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getContentURI" function. @@ -20,12 +20,12 @@ export type GetContentURIParams = { export const FN_SELECTOR = "0xb5a31496" as const; const FN_INPUTS = [ { - name: "profileId", type: "uint256", + name: "profileId", }, { - name: "pubId", type: "uint256", + name: "pubId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts index b2edcfdec8b..849132cce2d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getProfile" function. @@ -19,43 +19,43 @@ export type GetProfileParams = { export const FN_SELECTOR = "0xf08f4f64" as const; const FN_INPUTS = [ { - name: "profileId", type: "uint256", + name: "profileId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", components: [ { - name: "pubCount", type: "uint256", + name: "pubCount", }, { - name: "followModule", type: "address", + name: "followModule", }, { - name: "followNFT", type: "address", + name: "followNFT", }, { - name: "__DEPRECATED__handle", type: "string", + name: "__DEPRECATED__handle", }, { - name: "__DEPRECATED__imageURI", type: "string", + name: "__DEPRECATED__imageURI", }, { - name: "__DEPRECATED__followNFTURI", type: "string", + name: "__DEPRECATED__followNFTURI", }, { - name: "metadataURI", type: "string", + name: "metadataURI", }, ], - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts index 2e009569ebd..378495f5b5e 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getProfileIdByHandleHash" function. @@ -19,8 +19,8 @@ export type GetProfileIdByHandleHashParams = { export const FN_SELECTOR = "0x19e14070" as const; const FN_INPUTS = [ { - name: "handleHash", type: "bytes32", + name: "handleHash", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts index ba8160ed54d..940c42b7539 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublication" function. @@ -20,55 +20,55 @@ export type GetPublicationParams = { export const FN_SELECTOR = "0x7385ebc9" as const; const FN_INPUTS = [ { - name: "profileId", type: "uint256", + name: "profileId", }, { - name: "pubId", type: "uint256", + name: "pubId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", components: [ { - name: "pointedProfileId", type: "uint256", + name: "pointedProfileId", }, { - name: "pointedPubId", type: "uint256", + name: "pointedPubId", }, { - name: "contentURI", type: "string", + name: "contentURI", }, { - name: "referenceModule", type: "address", + name: "referenceModule", }, { - name: "__DEPRECATED__collectModule", type: "address", + name: "__DEPRECATED__collectModule", }, { - name: "__DEPRECATED__collectNFT", type: "address", + name: "__DEPRECATED__collectNFT", }, { - name: "pubType", type: "uint8", + name: "pubType", }, { - name: "rootProfileId", type: "uint256", + name: "rootProfileId", }, { - name: "rootPubId", type: "uint256", + name: "rootPubId", }, ], - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts index 75308c367f1..1631c257613 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTimestampOf" function. @@ -16,8 +16,8 @@ export type MintTimestampOfParams = { export const FN_SELECTOR = "0x50ddf35c" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts index d2a646311e4..87a92d9f86e 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. @@ -16,8 +16,8 @@ export type NoncesParams = { export const FN_SELECTOR = "0x7ecebe00" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts index 0bb4f9c14c9..ce9edc4470c 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenDataOf" function. @@ -16,23 +16,23 @@ export type TokenDataOfParams = { export const FN_SELECTOR = "0xc0da9bcd" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", components: [ { - name: "owner", type: "address", + name: "owner", }, { - name: "mintTimestamp", type: "uint96", + name: "mintTimestamp", }, ], - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts index a5c8d475339..3e5b2b4e859 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getModuleTypes" function. @@ -19,8 +19,8 @@ export type GetModuleTypesParams = { export const FN_SELECTOR = "0xc5dcd896" as const; const FN_INPUTS = [ { - name: "moduleAddress", type: "address", + name: "moduleAddress", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts index 54b6845605c..65cd261d708 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isErc20CurrencyRegistered" function. @@ -19,8 +19,8 @@ export type IsErc20CurrencyRegisteredParams = { export const FN_SELECTOR = "0xf21b24d7" as const; const FN_INPUTS = [ { - name: "currencyAddress", type: "address", + name: "currencyAddress", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts index 8fa808d018d..0676878e575 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isModuleRegistered" function. @@ -19,8 +19,8 @@ export type IsModuleRegisteredParams = { export const FN_SELECTOR = "0x1c5ebe2f" as const; const FN_INPUTS = [ { - name: "moduleAddress", type: "address", + name: "moduleAddress", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts index 82708a7fd9e..6c94f98c632 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isModuleRegisteredAs" function. @@ -23,12 +23,12 @@ export type IsModuleRegisteredAsParams = { export const FN_SELECTOR = "0xc2b62fdd" as const; const FN_INPUTS = [ { - name: "moduleAddress", type: "address", + name: "moduleAddress", }, { - name: "moduleType", type: "uint256", + name: "moduleType", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts index 9b4eb1a45de..c7a8d1aaa1b 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getDefaultHandle" function. @@ -19,8 +19,8 @@ export type GetDefaultHandleParams = { export const FN_SELECTOR = "0xe524488d" as const; const FN_INPUTS = [ { - name: "profileId", type: "uint256", + name: "profileId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts index d208bdb8586..2137f95a805 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. @@ -16,14 +16,14 @@ export type NoncesParams = { export const FN_SELECTOR = "0x7ecebe00" as const; const FN_INPUTS = [ { - name: "signer", type: "address", + name: "signer", }, ] as const; const FN_OUTPUTS = [ { - name: "nonce", type: "uint256", + name: "nonce", }, ] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts index a3169c977c5..3c9809bd374 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "resolve" function. @@ -16,8 +16,8 @@ export type ResolveParams = { export const FN_SELECTOR = "0x4f896d4f" as const; const FN_INPUTS = [ { - name: "handleId", type: "uint256", + name: "handleId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts index 50ae329f61e..3bfc6a92603 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "BuyerApprovedForListing" event. @@ -42,8 +42,8 @@ export function buyerApprovedForListingEvent( filters: BuyerApprovedForListingEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event BuyerApprovedForListing(uint256 indexed listingId, address indexed buyer, bool approved)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts index 754fc8b8bec..46d14a1b078 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CancelledListing" event. @@ -42,8 +42,8 @@ export function cancelledListingEvent( filters: CancelledListingEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event CancelledListing(address indexed listingCreator, uint256 indexed listingId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts index dbafa7ec768..127a498ddaf 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CurrencyApprovedForListing" event. @@ -42,8 +42,8 @@ export function currencyApprovedForListingEvent( filters: CurrencyApprovedForListingEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event CurrencyApprovedForListing(uint256 indexed listingId, address indexed currency, uint256 pricePerToken)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts index f9739d155ee..23f46addfec 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewListing" event. @@ -46,8 +46,8 @@ export type NewListingEventFilters = Partial<{ */ export function newListingEvent(filters: NewListingEventFilters = {}) { return prepareEvent({ - filters, signature: "event NewListing(address indexed listingCreator, uint256 indexed listingId, address indexed assetContract, (uint256 listingId, uint256 tokenId, uint256 quantity, uint256 pricePerToken, uint128 startTimestamp, uint128 endTimestamp, address listingCreator, address assetContract, address currency, uint8 tokenType, uint8 status, bool reserved) listing)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts index 012105533c8..4ea1ff93b92 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewSale" event. @@ -46,8 +46,8 @@ export type NewSaleEventFilters = Partial<{ */ export function newSaleEvent(filters: NewSaleEventFilters = {}) { return prepareEvent({ - filters, signature: "event NewSale(address indexed listingCreator, uint256 indexed listingId, address indexed assetContract, uint256 tokenId, address buyer, uint256 quantityBought, uint256 totalPricePaid)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts index 277774c796e..f33e4de028d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UpdatedListing" event. @@ -46,8 +46,8 @@ export type UpdatedListingEventFilters = Partial<{ */ export function updatedListingEvent(filters: UpdatedListingEventFilters = {}) { return prepareEvent({ - filters, signature: "event UpdatedListing(address indexed listingCreator, uint256 indexed listingId, address indexed assetContract, (uint256 listingId, uint256 tokenId, uint256 quantity, uint256 pricePerToken, uint128 startTimestamp, uint128 endTimestamp, address listingCreator, address assetContract, address currency, uint8 tokenType, uint8 status, bool reserved) listing)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts index ee737722047..e4db3be77d7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "currencyPriceForListing" function. @@ -20,12 +20,12 @@ export type CurrencyPriceForListingParams = { export const FN_SELECTOR = "0xfb14079d" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_currency", type: "address", + name: "_currency", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts index 86a7393c146..734378136b7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllListings" function. @@ -17,68 +17,68 @@ export type GetAllListingsParams = { export const FN_SELECTOR = "0xc5275fb0" as const; const FN_INPUTS = [ { - name: "_startId", type: "uint256", + name: "_startId", }, { - name: "_endId", type: "uint256", + name: "_endId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "listings", components: [ { - name: "listingId", type: "uint256", + name: "listingId", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "startTimestamp", type: "uint128", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint128", + name: "endTimestamp", }, { - name: "listingCreator", type: "address", + name: "listingCreator", }, { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "status", type: "uint8", + name: "status", }, { - name: "reserved", type: "bool", + name: "reserved", }, ], - name: "listings", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts index 922ad75762b..2b829550285 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllValidListings" function. @@ -17,68 +17,68 @@ export type GetAllValidListingsParams = { export const FN_SELECTOR = "0x31654b4d" as const; const FN_INPUTS = [ { - name: "_startId", type: "uint256", + name: "_startId", }, { - name: "_endId", type: "uint256", + name: "_endId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "listings", components: [ { - name: "listingId", type: "uint256", + name: "listingId", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "startTimestamp", type: "uint128", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint128", + name: "endTimestamp", }, { - name: "listingCreator", type: "address", + name: "listingCreator", }, { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "status", type: "uint8", + name: "status", }, { - name: "reserved", type: "bool", + name: "reserved", }, ], - name: "listings", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts index b40e9af13c2..3002d389ef2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getListing" function. @@ -19,64 +19,64 @@ export type GetListingParams = { export const FN_SELECTOR = "0x107a274a" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "listing", components: [ { - name: "listingId", type: "uint256", + name: "listingId", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "startTimestamp", type: "uint128", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint128", + name: "endTimestamp", }, { - name: "listingCreator", type: "address", + name: "listingCreator", }, { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "status", type: "uint8", + name: "status", }, { - name: "reserved", type: "bool", + name: "reserved", }, ], - name: "listing", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts index c3dac315fb9..9bcfe71cbf1 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isBuyerApprovedForListing" function. @@ -20,12 +20,12 @@ export type IsBuyerApprovedForListingParams = { export const FN_SELECTOR = "0x9cfbe2a6" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_buyer", type: "address", + name: "_buyer", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts index 67e44c1c426..6351c37f548 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isCurrencyApprovedForListing" function. @@ -20,12 +20,12 @@ export type IsCurrencyApprovedForListingParams = { export const FN_SELECTOR = "0xa8519047" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_currency", type: "address", + name: "_currency", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts index 742169f4f44..b8d0b72e56a 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc78b616c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts index e0db3ba1e41..be8ce99cf58 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approveBuyerForListing" function. @@ -23,16 +23,16 @@ export type ApproveBuyerForListingParams = WithOverrides<{ export const FN_SELECTOR = "0x48dd77df" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_buyer", type: "address", + name: "_buyer", }, { - name: "_toApprove", type: "bool", + name: "_toApprove", }, ] as const; const FN_OUTPUTS = [] as const; @@ -146,19 +146,8 @@ export function approveBuyerForListing( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -168,5 +157,16 @@ export function approveBuyerForListing( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts index 1d6b7c5d0a8..ca45650bb17 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approveCurrencyForListing" function. @@ -26,16 +26,16 @@ export type ApproveCurrencyForListingParams = WithOverrides<{ export const FN_SELECTOR = "0xea8f9a3c" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_currency", type: "address", + name: "_currency", }, { - name: "_pricePerTokenInCurrency", type: "uint256", + name: "_pricePerTokenInCurrency", }, ] as const; const FN_OUTPUTS = [] as const; @@ -149,19 +149,8 @@ export function approveCurrencyForListing( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -171,5 +160,16 @@ export function approveCurrencyForListing( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts index 0b5e66a8d5e..d695f899c51 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "buyFromListing" function. @@ -28,24 +28,24 @@ export type BuyFromListingParams = WithOverrides<{ export const FN_SELECTOR = "0x704232dc" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_buyFor", type: "address", + name: "_buyFor", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, { - name: "_currency", type: "address", + name: "_currency", }, { - name: "_expectedTotalPrice", type: "uint256", + name: "_expectedTotalPrice", }, ] as const; const FN_OUTPUTS = [] as const; @@ -161,19 +161,8 @@ export function buyFromListing( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -185,5 +174,16 @@ export function buyFromListing( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts index 0f6d9036dac..504776da5b0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelListing" function. @@ -21,8 +21,8 @@ export type CancelListingParams = WithOverrides<{ export const FN_SELECTOR = "0x305a67a8" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function cancelListing( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.listingId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts index 71b1d602dbb..49303739da5 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createListing" function. @@ -31,48 +31,48 @@ export type CreateListingParams = WithOverrides<{ export const FN_SELECTOR = "0x746415b5" as const; const FN_INPUTS = [ { + type: "tuple", + name: "_params", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "startTimestamp", type: "uint128", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint128", + name: "endTimestamp", }, { - name: "reserved", type: "bool", + name: "reserved", }, ], - name: "_params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "listingId", type: "uint256", + name: "listingId", }, ] as const; @@ -169,23 +169,23 @@ export function createListing( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts index e8e9b0db944..e484d216997 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateListing" function. @@ -35,46 +35,46 @@ export type UpdateListingParams = WithOverrides<{ export const FN_SELECTOR = "0x07b67758" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { + type: "tuple", + name: "_params", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerToken", type: "uint256", + name: "pricePerToken", }, { - name: "startTimestamp", type: "uint128", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint128", + name: "endTimestamp", }, { - name: "reserved", type: "bool", + name: "reserved", }, ], - name: "_params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [] as const; @@ -175,23 +175,23 @@ export function updateListing( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.listingId, resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts index d0ff9814ed0..b15d763c5af 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AuctionClosed" event. @@ -46,8 +46,8 @@ export type AuctionClosedEventFilters = Partial<{ */ export function auctionClosedEvent(filters: AuctionClosedEventFilters = {}) { return prepareEvent({ - filters, signature: "event AuctionClosed(uint256 indexed auctionId, address indexed assetContract, address indexed closer, uint256 tokenId, address auctionCreator, address winningBidder)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts index 07175dd29db..930e0f2aa44 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CancelledAuction" event. @@ -42,8 +42,8 @@ export function cancelledAuctionEvent( filters: CancelledAuctionEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event CancelledAuction(address indexed auctionCreator, uint256 indexed auctionId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts index dce5bdedf9c..dd69261100a 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewAuction" event. @@ -46,8 +46,8 @@ export type NewAuctionEventFilters = Partial<{ */ export function newAuctionEvent(filters: NewAuctionEventFilters = {}) { return prepareEvent({ - filters, signature: "event NewAuction(address indexed auctionCreator, uint256 indexed auctionId, address indexed assetContract, (uint256 auctionId, uint256 tokenId, uint256 quantity, uint256 minimumBidAmount, uint256 buyoutBidAmount, uint64 timeBufferInSeconds, uint64 bidBufferBps, uint64 startTimestamp, uint64 endTimestamp, address auctionCreator, address assetContract, address currency, uint8 tokenType, uint8 status) auction)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts index 1fa747408d2..27f25f28508 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewBid" event. @@ -46,8 +46,8 @@ export type NewBidEventFilters = Partial<{ */ export function newBidEvent(filters: NewBidEventFilters = {}) { return prepareEvent({ - filters, signature: "event NewBid(uint256 indexed auctionId, address indexed bidder, address indexed assetContract, uint256 bidAmount, (uint256 auctionId, uint256 tokenId, uint256 quantity, uint256 minimumBidAmount, uint256 buyoutBidAmount, uint64 timeBufferInSeconds, uint64 bidBufferBps, uint64 startTimestamp, uint64 endTimestamp, address auctionCreator, address assetContract, address currency, uint8 tokenType, uint8 status) auction)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts index f69f3a5af5a..dd88bdc4fbb 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllAuctions" function. @@ -17,76 +17,76 @@ export type GetAllAuctionsParams = { export const FN_SELECTOR = "0xc291537c" as const; const FN_INPUTS = [ { - name: "_startId", type: "uint256", + name: "_startId", }, { - name: "_endId", type: "uint256", + name: "_endId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "auctions", components: [ { - name: "auctionId", type: "uint256", + name: "auctionId", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "minimumBidAmount", type: "uint256", + name: "minimumBidAmount", }, { - name: "buyoutBidAmount", type: "uint256", + name: "buyoutBidAmount", }, { - name: "timeBufferInSeconds", type: "uint64", + name: "timeBufferInSeconds", }, { - name: "bidBufferBps", type: "uint64", + name: "bidBufferBps", }, { - name: "startTimestamp", type: "uint64", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint64", + name: "endTimestamp", }, { - name: "auctionCreator", type: "address", + name: "auctionCreator", }, { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "status", type: "uint8", + name: "status", }, ], - name: "auctions", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts index 6eb0f5938da..77c5116f129 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllValidAuctions" function. @@ -17,76 +17,76 @@ export type GetAllValidAuctionsParams = { export const FN_SELECTOR = "0x7b063801" as const; const FN_INPUTS = [ { - name: "_startId", type: "uint256", + name: "_startId", }, { - name: "_endId", type: "uint256", + name: "_endId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "auctions", components: [ { - name: "auctionId", type: "uint256", + name: "auctionId", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "minimumBidAmount", type: "uint256", + name: "minimumBidAmount", }, { - name: "buyoutBidAmount", type: "uint256", + name: "buyoutBidAmount", }, { - name: "timeBufferInSeconds", type: "uint64", + name: "timeBufferInSeconds", }, { - name: "bidBufferBps", type: "uint64", + name: "bidBufferBps", }, { - name: "startTimestamp", type: "uint64", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint64", + name: "endTimestamp", }, { - name: "auctionCreator", type: "address", + name: "auctionCreator", }, { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "status", type: "uint8", + name: "status", }, ], - name: "auctions", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts index 08ed92b3e27..036617fbd7b 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAuction" function. @@ -19,72 +19,72 @@ export type GetAuctionParams = { export const FN_SELECTOR = "0x78bd7935" as const; const FN_INPUTS = [ { - name: "_auctionId", type: "uint256", + name: "_auctionId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "auction", components: [ { - name: "auctionId", type: "uint256", + name: "auctionId", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "minimumBidAmount", type: "uint256", + name: "minimumBidAmount", }, { - name: "buyoutBidAmount", type: "uint256", + name: "buyoutBidAmount", }, { - name: "timeBufferInSeconds", type: "uint64", + name: "timeBufferInSeconds", }, { - name: "bidBufferBps", type: "uint64", + name: "bidBufferBps", }, { - name: "startTimestamp", type: "uint64", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint64", + name: "endTimestamp", }, { - name: "auctionCreator", type: "address", + name: "auctionCreator", }, { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "status", type: "uint8", + name: "status", }, ], - name: "auction", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts index 8a933346840..9546e3db173 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getWinningBid" function. @@ -19,22 +19,22 @@ export type GetWinningBidParams = { export const FN_SELECTOR = "0x6891939d" as const; const FN_INPUTS = [ { - name: "_auctionId", type: "uint256", + name: "_auctionId", }, ] as const; const FN_OUTPUTS = [ { - name: "bidder", type: "address", + name: "bidder", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "bidAmount", type: "uint256", + name: "bidAmount", }, ] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts index d90f1b5c0ed..11c8eab2430 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isAuctionExpired" function. @@ -19,8 +19,8 @@ export type IsAuctionExpiredParams = { export const FN_SELECTOR = "0x1389b117" as const; const FN_INPUTS = [ { - name: "_auctionId", type: "uint256", + name: "_auctionId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts index 7885c7c450e..aea27839d1d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isNewWinningBid" function. @@ -23,12 +23,12 @@ export type IsNewWinningBidParams = { export const FN_SELECTOR = "0x2eb566bd" as const; const FN_INPUTS = [ { - name: "_auctionId", type: "uint256", + name: "_auctionId", }, { - name: "_bidAmount", type: "uint256", + name: "_bidAmount", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts index 6a9174b4a20..0610fda8156 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x16002f4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts index d571dfda0f6..942bb17d0c2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "bidInAuction" function. @@ -25,12 +25,12 @@ export type BidInAuctionParams = WithOverrides<{ export const FN_SELECTOR = "0x0858e5ad" as const; const FN_INPUTS = [ { - name: "_auctionId", type: "uint256", + name: "_auctionId", }, { - name: "_bidAmount", type: "uint256", + name: "_bidAmount", }, ] as const; const FN_OUTPUTS = [] as const; @@ -131,23 +131,23 @@ export function bidInAuction( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.auctionId, resolvedOptions.bidAmount] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts index 9c30227fc67..846aded52d0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelAuction" function. @@ -21,8 +21,8 @@ export type CancelAuctionParams = WithOverrides<{ export const FN_SELECTOR = "0x96b5a755" as const; const FN_INPUTS = [ { - name: "_auctionId", type: "uint256", + name: "_auctionId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function cancelAuction( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.auctionId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts index b6dbe57b1f9..8004652acac 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "collectAuctionPayout" function. @@ -21,8 +21,8 @@ export type CollectAuctionPayoutParams = WithOverrides<{ export const FN_SELECTOR = "0xebf05a62" as const; const FN_INPUTS = [ { - name: "_auctionId", type: "uint256", + name: "_auctionId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -124,23 +124,23 @@ export function collectAuctionPayout( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.auctionId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts index de394d93a4c..864aab2e45f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "collectAuctionTokens" function. @@ -21,8 +21,8 @@ export type CollectAuctionTokensParams = WithOverrides<{ export const FN_SELECTOR = "0x03a54fe0" as const; const FN_INPUTS = [ { - name: "_auctionId", type: "uint256", + name: "_auctionId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -124,23 +124,23 @@ export function collectAuctionTokens( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.auctionId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts index 0e10c08fbd0..e48106af277 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAuction" function. @@ -33,56 +33,56 @@ export type CreateAuctionParams = WithOverrides<{ export const FN_SELECTOR = "0x16654d40" as const; const FN_INPUTS = [ { + type: "tuple", + name: "_params", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "minimumBidAmount", type: "uint256", + name: "minimumBidAmount", }, { - name: "buyoutBidAmount", type: "uint256", + name: "buyoutBidAmount", }, { - name: "timeBufferInSeconds", type: "uint64", + name: "timeBufferInSeconds", }, { - name: "bidBufferBps", type: "uint64", + name: "bidBufferBps", }, { - name: "startTimestamp", type: "uint64", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint64", + name: "endTimestamp", }, ], - name: "_params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "auctionId", type: "uint256", + name: "auctionId", }, ] as const; @@ -179,23 +179,23 @@ export function createAuction( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts index 193ef08a9c8..37e97c246e0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AuctionClosed" event. @@ -46,8 +46,8 @@ export type AuctionClosedEventFilters = Partial<{ */ export function auctionClosedEvent(filters: AuctionClosedEventFilters = {}) { return prepareEvent({ - filters, signature: "event AuctionClosed(uint256 indexed listingId, address indexed closer, bool indexed cancelled, address auctionCreator, address winningBidder)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts index 3d715351f07..7fe12ca837f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ListingAdded" event. @@ -46,8 +46,8 @@ export type ListingAddedEventFilters = Partial<{ */ export function listingAddedEvent(filters: ListingAddedEventFilters = {}) { return prepareEvent({ - filters, signature: "event ListingAdded(uint256 indexed listingId, address indexed assetContract, address indexed lister, (uint256 listingId, address tokenOwner, address assetContract, uint256 tokenId, uint256 startTime, uint256 endTime, uint256 quantity, address currency, uint256 reservePricePerToken, uint256 buyoutPricePerToken, uint8 tokenType, uint8 listingType) listing)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts index 7a765b236c1..2233c856fc7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ListingRemoved" event. @@ -40,8 +40,8 @@ export type ListingRemovedEventFilters = Partial<{ */ export function listingRemovedEvent(filters: ListingRemovedEventFilters = {}) { return prepareEvent({ - filters, signature: "event ListingRemoved(uint256 indexed listingId, address indexed listingCreator)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts index 531eba5ddf4..5a9f20825a0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ListingUpdated" event. @@ -40,8 +40,8 @@ export type ListingUpdatedEventFilters = Partial<{ */ export function listingUpdatedEvent(filters: ListingUpdatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event ListingUpdated(uint256 indexed listingId, address indexed listingCreator)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts index 4b1606b5789..b033e92129f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewOffer" event. @@ -46,8 +46,8 @@ export type NewOfferEventFilters = Partial<{ */ export function newOfferEvent(filters: NewOfferEventFilters = {}) { return prepareEvent({ - filters, signature: "event NewOffer(uint256 indexed listingId, address indexed offeror, uint8 indexed listingType, uint256 quantityWanted, uint256 totalOfferAmount, address currency)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts index 893e02000fc..c5d506f7736 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewSale" event. @@ -46,8 +46,8 @@ export type NewSaleEventFilters = Partial<{ */ export function newSaleEvent(filters: NewSaleEventFilters = {}) { return prepareEvent({ - filters, signature: "event NewSale(uint256 indexed listingId, address indexed assetContract, address indexed lister, address buyer, uint256 quantityBought, uint256 totalPricePaid)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts index 4e91f71b9d2..ec779ad8e7d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. @@ -36,8 +36,8 @@ export function platformFeeInfoUpdatedEvent( filters: PlatformFeeInfoUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event PlatformFeeInfoUpdated(address indexed platformFeeRecipient, uint256 platformFeeBps)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts index 1cf532447a5..75061f26982 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts index 63421151241..ca512450a4f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts index 3b2d58a96e6..cd44865ea62 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts index acfdf87abf0..a7f71ea7315 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts index 49183fe3c78..387aed05883 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "acceptOffer" function. @@ -27,20 +27,20 @@ export type AcceptOfferParams = WithOverrides<{ export const FN_SELECTOR = "0xb13c0e63" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_offeror", type: "address", + name: "_offeror", }, { - name: "_currency", type: "address", + name: "_currency", }, { - name: "_totalPrice", type: "uint256", + name: "_totalPrice", }, ] as const; const FN_OUTPUTS = [] as const; @@ -152,19 +152,8 @@ export function acceptOffer( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -175,5 +164,16 @@ export function acceptOffer( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts index 027f141225b..97a608d0a86 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "buy" function. @@ -28,24 +28,24 @@ export type BuyParams = WithOverrides<{ export const FN_SELECTOR = "0x7687ab02" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_buyFor", type: "address", + name: "_buyFor", }, { - name: "_quantity", type: "uint256", + name: "_quantity", }, { - name: "_currency", type: "address", + name: "_currency", }, { - name: "_totalPrice", type: "uint256", + name: "_totalPrice", }, ] as const; const FN_OUTPUTS = [] as const; @@ -159,19 +159,8 @@ export function buy( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -183,5 +172,16 @@ export function buy( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts index 0257eb65715..16205373cf0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelDirectListing" function. @@ -21,8 +21,8 @@ export type CancelDirectListingParams = WithOverrides<{ export const FN_SELECTOR = "0x7506c84a" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -122,23 +122,23 @@ export function cancelDirectListing( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.listingId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts index ec6f0d8de8b..f44a7290903 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "closeAuction" function. @@ -22,12 +22,12 @@ export type CloseAuctionParams = WithOverrides<{ export const FN_SELECTOR = "0x6bab66ae" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_closeFor", type: "address", + name: "_closeFor", }, ] as const; const FN_OUTPUTS = [] as const; @@ -128,23 +128,23 @@ export function closeAuction( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.listingId, resolvedOptions.closeFor] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts index 1890f378f7f..a117cfa8e94 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createListing" function. @@ -32,46 +32,46 @@ export type CreateListingParams = WithOverrides<{ export const FN_SELECTOR = "0x296f4e16" as const; const FN_INPUTS = [ { + type: "tuple", + name: "_params", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "startTime", type: "uint256", + name: "startTime", }, { - name: "secondsUntilEndTime", type: "uint256", + name: "secondsUntilEndTime", }, { - name: "quantityToList", type: "uint256", + name: "quantityToList", }, { - name: "currencyToAccept", type: "address", + name: "currencyToAccept", }, { - name: "reservePricePerToken", type: "uint256", + name: "reservePricePerToken", }, { - name: "buyoutPricePerToken", type: "uint256", + name: "buyoutPricePerToken", }, { - name: "listingType", type: "uint8", + name: "listingType", }, ], - name: "_params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [] as const; @@ -169,23 +169,23 @@ export function createListing( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts index 8c95eb6ab63..f4e8ccdcf4f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "offer" function. @@ -34,24 +34,24 @@ export type OfferParams = WithOverrides<{ export const FN_SELECTOR = "0x5fef45e7" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_quantityWanted", type: "uint256", + name: "_quantityWanted", }, { - name: "_currency", type: "address", + name: "_currency", }, { - name: "_pricePerToken", type: "uint256", + name: "_pricePerToken", }, { - name: "_expirationTimestamp", type: "uint256", + name: "_expirationTimestamp", }, ] as const; const FN_OUTPUTS = [] as const; @@ -165,19 +165,8 @@ export function offer( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -189,5 +178,16 @@ export function offer( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts index a7d8b046f46..8c2125dcf6f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. @@ -18,8 +18,8 @@ export type SetContractURIParams = WithOverrides<{ export const FN_SELECTOR = "0x938e3d7b" as const; const FN_INPUTS = [ { - name: "_uri", type: "string", + name: "_uri", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function setContractURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts index 93dadff3486..f65d00c8a21 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. @@ -25,12 +25,12 @@ export type SetPlatformFeeInfoParams = WithOverrides<{ export const FN_SELECTOR = "0x1e7ac488" as const; const FN_INPUTS = [ { - name: "_platformFeeRecipient", type: "address", + name: "_platformFeeRecipient", }, { - name: "_platformFeeBps", type: "uint256", + name: "_platformFeeBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -136,19 +136,8 @@ export function setPlatformFeeInfo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -157,5 +146,16 @@ export function setPlatformFeeInfo( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts index 6951adfe72f..cf7822145e7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateListing" function. @@ -45,32 +45,32 @@ export type UpdateListingParams = WithOverrides<{ export const FN_SELECTOR = "0xc4b5b15f" as const; const FN_INPUTS = [ { - name: "_listingId", type: "uint256", + name: "_listingId", }, { - name: "_quantityToList", type: "uint256", + name: "_quantityToList", }, { - name: "_reservePricePerToken", type: "uint256", + name: "_reservePricePerToken", }, { - name: "_buyoutPricePerToken", type: "uint256", + name: "_buyoutPricePerToken", }, { - name: "_currencyToAccept", type: "address", + name: "_currencyToAccept", }, { - name: "_startTime", type: "uint256", + name: "_startTime", }, { - name: "_secondsUntilEndTime", type: "uint256", + name: "_secondsUntilEndTime", }, ] as const; const FN_OUTPUTS = [] as const; @@ -194,19 +194,8 @@ export function updateListing( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -220,5 +209,16 @@ export function updateListing( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts index 36db9ddb0a1..611ab797190 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AcceptedOffer" event. @@ -46,8 +46,8 @@ export type AcceptedOfferEventFilters = Partial<{ */ export function acceptedOfferEvent(filters: AcceptedOfferEventFilters = {}) { return prepareEvent({ - filters, signature: "event AcceptedOffer(address indexed offeror, uint256 indexed offerId, address indexed assetContract, uint256 tokenId, address seller, uint256 quantityBought, uint256 totalPricePaid)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts index 052ab0867b1..44708d6932b 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CancelledOffer" event. @@ -40,8 +40,8 @@ export type CancelledOfferEventFilters = Partial<{ */ export function cancelledOfferEvent(filters: CancelledOfferEventFilters = {}) { return prepareEvent({ - filters, signature: "event CancelledOffer(address indexed offeror, uint256 indexed offerId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts index 3ec6d81ed9b..839757be049 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewOffer" event. @@ -46,8 +46,8 @@ export type NewOfferEventFilters = Partial<{ */ export function newOfferEvent(filters: NewOfferEventFilters = {}) { return prepareEvent({ - filters, signature: "event NewOffer(address indexed offeror, uint256 indexed offerId, address indexed assetContract, (uint256 offerId, uint256 tokenId, uint256 quantity, uint256 totalPrice, uint256 expirationTimestamp, address offeror, address assetContract, address currency, uint8 tokenType, uint8 status) offer)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts index de44cd07ef4..9d96cf8d183 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllOffers" function. @@ -17,60 +17,60 @@ export type GetAllOffersParams = { export const FN_SELECTOR = "0xc1edcfbe" as const; const FN_INPUTS = [ { - name: "_startId", type: "uint256", + name: "_startId", }, { - name: "_endId", type: "uint256", + name: "_endId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "offers", components: [ { - name: "offerId", type: "uint256", + name: "offerId", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "totalPrice", type: "uint256", + name: "totalPrice", }, { - name: "expirationTimestamp", type: "uint256", + name: "expirationTimestamp", }, { - name: "offeror", type: "address", + name: "offeror", }, { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "status", type: "uint8", + name: "status", }, ], - name: "offers", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts index ef901d30f17..d3b4a4df5cd 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllValidOffers" function. @@ -17,60 +17,60 @@ export type GetAllValidOffersParams = { export const FN_SELECTOR = "0x91940b3e" as const; const FN_INPUTS = [ { - name: "_startId", type: "uint256", + name: "_startId", }, { - name: "_endId", type: "uint256", + name: "_endId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "offers", components: [ { - name: "offerId", type: "uint256", + name: "offerId", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "totalPrice", type: "uint256", + name: "totalPrice", }, { - name: "expirationTimestamp", type: "uint256", + name: "expirationTimestamp", }, { - name: "offeror", type: "address", + name: "offeror", }, { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "status", type: "uint8", + name: "status", }, ], - name: "offers", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts index 97fe560e741..8004b2e251d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getOffer" function. @@ -16,56 +16,56 @@ export type GetOfferParams = { export const FN_SELECTOR = "0x4579268a" as const; const FN_INPUTS = [ { - name: "_offerId", type: "uint256", + name: "_offerId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "offer", components: [ { - name: "offerId", type: "uint256", + name: "offerId", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "totalPrice", type: "uint256", + name: "totalPrice", }, { - name: "expirationTimestamp", type: "uint256", + name: "expirationTimestamp", }, { - name: "offeror", type: "address", + name: "offeror", }, { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "status", type: "uint8", + name: "status", }, ], - name: "offer", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts index a9656ff8634..4de665a1cb5 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa9fd8ed1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts index ba388eb5203..a055869c958 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "acceptOffer" function. @@ -18,8 +18,8 @@ export type AcceptOfferParams = WithOverrides<{ export const FN_SELECTOR = "0xc815729d" as const; const FN_INPUTS = [ { - name: "_offerId", type: "uint256", + name: "_offerId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function acceptOffer( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.offerId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts index 0ad97cd1fce..449475eae93 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelOffer" function. @@ -18,8 +18,8 @@ export type CancelOfferParams = WithOverrides<{ export const FN_SELECTOR = "0xef706adf" as const; const FN_INPUTS = [ { - name: "_offerId", type: "uint256", + name: "_offerId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function cancelOffer( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.offerId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts index 7f373c49bac..b57181f8d69 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "makeOffer" function. @@ -29,40 +29,40 @@ export type MakeOfferParams = WithOverrides<{ export const FN_SELECTOR = "0x016767fa" as const; const FN_INPUTS = [ { + type: "tuple", + name: "_params", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "quantity", type: "uint256", + name: "quantity", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "totalPrice", type: "uint256", + name: "totalPrice", }, { - name: "expirationTimestamp", type: "uint256", + name: "expirationTimestamp", }, ], - name: "_params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "offerId", type: "uint256", + name: "offerId", }, ] as const; @@ -159,23 +159,23 @@ export function makeOffer( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/module/install.ts index 6cc34069075..93a3b918f36 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/module/install.ts @@ -48,8 +48,8 @@ export function module(params?: { publisher?: string }) { publisher: params?.publisher, }); return { - data: "0x" as const, module: moduleContract.address as Address, + data: "0x" as const, }; }; } @@ -83,8 +83,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: "0x" as const, moduleName: contractId, + moduleData: "0x" as const, publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts index b015f39ef05..70b5e739f97 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts index d4d3f44f0f6..cb8daa93fac 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts @@ -1,28 +1,29 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", components: [ { - name: "startTokenIdInclusive", type: "uint256", + name: "startTokenIdInclusive", }, { - name: "endTokenIdInclusive", type: "uint256", + name: "endTokenIdInclusive", }, { - name: "baseURI", type: "string", + name: "baseURI", }, ], - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts index 3c5f845b84d..5a193fd2cb0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIndex" function. @@ -16,8 +16,8 @@ export type GetBatchIndexParams = { export const FN_SELECTOR = "0x44ec3c07" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts index 15e13a44647..ca806668ee7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMetadataBatch" function. @@ -19,27 +19,27 @@ export type GetMetadataBatchParams = { export const FN_SELECTOR = "0xe034558b" as const; const FN_INPUTS = [ { - name: "_batchIndex", type: "uint256", + name: "_batchIndex", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", components: [ { - name: "startTokenIdInclusive", type: "uint256", + name: "startTokenIdInclusive", }, { - name: "endTokenIdInclusive", type: "uint256", + name: "endTokenIdInclusive", }, { - name: "baseURI", type: "string", + name: "baseURI", }, ], - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts index 84d5b4efa81..cf036b86757 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts @@ -1,53 +1,54 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "config", components: [ { - name: "registerInstallationCallback", type: "bool", + name: "registerInstallationCallback", }, { - name: "requiredInterfaces", type: "bytes4[]", + name: "requiredInterfaces", }, { - name: "supportedInterfaces", type: "bytes4[]", + name: "supportedInterfaces", }, { + type: "tuple[]", + name: "callbackFunctions", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, ], - name: "callbackFunctions", - type: "tuple[]", }, { + type: "tuple[]", + name: "fallbackFunctions", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "permissionBits", type: "uint256", + name: "permissionBits", }, ], - name: "fallbackFunctions", - type: "tuple[]", }, ], - name: "config", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts index d83394d46e5..7d42f61ef90 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setBaseURI" function. @@ -22,12 +22,12 @@ export type SetBaseURIParams = WithOverrides<{ export const FN_SELECTOR = "0x33cfcb9f" as const; const FN_INPUTS = [ { - name: "_batchIndex", type: "uint256", + name: "_batchIndex", }, { - name: "_baseURI", type: "string", + name: "_baseURI", }, ] as const; const FN_OUTPUTS = [] as const; @@ -128,23 +128,23 @@ export function setBaseURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.batchIndex, resolvedOptions.baseURI] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts index 1223ae32382..3e18197cdbc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uploadMetadata" function. @@ -19,12 +19,12 @@ export type UploadMetadataParams = WithOverrides<{ export const FN_SELECTOR = "0xbfa2f36e" as const; const FN_INPUTS = [ { - name: "_amount", type: "uint256", + name: "_amount", }, { - name: "_baseURI", type: "string", + name: "_baseURI", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function uploadMetadata( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount, resolvedOptions.baseURI] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/module/install.ts index 3c7ead09b1d..4bfa3868136 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/module/install.ts @@ -48,8 +48,8 @@ export function module(params?: { publisher?: string }) { publisher: params?.publisher, }); return { - data: "0x" as const, module: moduleContract.address as Address, + data: "0x" as const, }; }; } @@ -83,8 +83,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: "0x" as const, moduleName: contractId, + moduleData: "0x" as const, publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts index 79e6a9a81a1..8fc04c50266 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts index f28001b736c..ef821c8a2d7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts @@ -1,28 +1,29 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", components: [ { - name: "startTokenIdInclusive", type: "uint256", + name: "startTokenIdInclusive", }, { - name: "endTokenIdInclusive", type: "uint256", + name: "endTokenIdInclusive", }, { - name: "baseURI", type: "string", + name: "baseURI", }, ], - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts index 98ba6899f86..f6004039b01 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIndex" function. @@ -16,8 +16,8 @@ export type GetBatchIndexParams = { export const FN_SELECTOR = "0x44ec3c07" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts index f4e4d3638b2..89701986e36 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMetadataBatch" function. @@ -19,27 +19,27 @@ export type GetMetadataBatchParams = { export const FN_SELECTOR = "0xe034558b" as const; const FN_INPUTS = [ { - name: "_batchIndex", type: "uint256", + name: "_batchIndex", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", components: [ { - name: "startTokenIdInclusive", type: "uint256", + name: "startTokenIdInclusive", }, { - name: "endTokenIdInclusive", type: "uint256", + name: "endTokenIdInclusive", }, { - name: "baseURI", type: "string", + name: "baseURI", }, ], - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts index 96a414e53b6..315f110f39a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts @@ -1,53 +1,54 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "config", components: [ { - name: "registerInstallationCallback", type: "bool", + name: "registerInstallationCallback", }, { - name: "requiredInterfaces", type: "bytes4[]", + name: "requiredInterfaces", }, { - name: "supportedInterfaces", type: "bytes4[]", + name: "supportedInterfaces", }, { + type: "tuple[]", + name: "callbackFunctions", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, ], - name: "callbackFunctions", - type: "tuple[]", }, { + type: "tuple[]", + name: "fallbackFunctions", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "permissionBits", type: "uint256", + name: "permissionBits", }, ], - name: "fallbackFunctions", - type: "tuple[]", }, ], - name: "config", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts index 4249bee158c..511924b2dcf 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setBaseURI" function. @@ -22,12 +22,12 @@ export type SetBaseURIParams = WithOverrides<{ export const FN_SELECTOR = "0x33cfcb9f" as const; const FN_INPUTS = [ { - name: "_batchIndex", type: "uint256", + name: "_batchIndex", }, { - name: "_baseURI", type: "string", + name: "_baseURI", }, ] as const; const FN_OUTPUTS = [] as const; @@ -128,23 +128,23 @@ export function setBaseURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.batchIndex, resolvedOptions.baseURI] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts index cfba6d11c9d..074b04bbfc1 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uploadMetadata" function. @@ -19,12 +19,12 @@ export type UploadMetadataParams = WithOverrides<{ export const FN_SELECTOR = "0xbfa2f36e" as const; const FN_INPUTS = [ { - name: "_amount", type: "uint256", + name: "_amount", }, { - name: "_baseURI", type: "string", + name: "_baseURI", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function uploadMetadata( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.amount, resolvedOptions.baseURI] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesBeforeMintERC1155.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesBeforeMintERC1155.ts index 7ee536eb81c..1e04910839c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesBeforeMintERC1155.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesBeforeMintERC1155.ts @@ -20,22 +20,22 @@ export type EncodeBytesBeforeMintERC1155Params = { export const FN_SELECTOR = "0x819ed5a3" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "recipientAllowlistProof", type: "bytes32[]", + name: "recipientAllowlistProof", }, ], - name: "params", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesBeforeMintWithSignatureERC1155.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesBeforeMintWithSignatureERC1155.ts index 67aa84517d0..a29c31da0f3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesBeforeMintWithSignatureERC1155.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesBeforeMintWithSignatureERC1155.ts @@ -23,34 +23,34 @@ export type EncodeBytesBeforeMintWithSignatureERC1155Params = { export const FN_SELECTOR = "0x63dacad2" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "maxMintPerWallet", type: "uint256", + name: "maxMintPerWallet", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "params", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesOnInstall.ts index 472bbda5bd9..e352e188aa6 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/encode/encodeBytesOnInstall.ts @@ -15,8 +15,8 @@ export type EncodeBytesOnInstallParams = { export const FN_SELECTOR = "0x5d4c0b89" as const; const FN_INPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts index d7ae3d13255..51850c27a6b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC1155"; @@ -55,8 +55,8 @@ export function module( publisher: params?.publisher, }); return { - data: encodeInstall(params), module: moduleContract.address as Address, + data: encodeInstall(params), }; }; } @@ -92,8 +92,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: encodeInstall(options.params), moduleName: contractId, + moduleData: encodeInstall(options.params), publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts index feda9f2530a..37ecb3a29ec 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionByTokenId" function. @@ -16,48 +16,48 @@ export type GetClaimConditionByTokenIdParams = { export const FN_SELECTOR = "0x29a20bf4" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "claimCondition", components: [ { - name: "availableSupply", type: "uint256", + name: "availableSupply", }, { - name: "allowlistMerkleRoot", type: "bytes32", + name: "allowlistMerkleRoot", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "maxMintPerWallet", type: "uint256", + name: "maxMintPerWallet", }, { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "auxData", type: "string", + name: "auxData", }, ], - name: "claimCondition", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts index ef5c00dc302..ca8d248d475 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts index c6f44da5916..f9ed45eafa0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditionByTokenId" function. @@ -32,46 +32,46 @@ export type SetClaimConditionByTokenIdParams = WithOverrides<{ export const FN_SELECTOR = "0x3bcec708" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, { + type: "tuple", + name: "_claimCondition", components: [ { - name: "availableSupply", type: "uint256", + name: "availableSupply", }, { - name: "allowlistMerkleRoot", type: "bytes32", + name: "allowlistMerkleRoot", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "maxMintPerWallet", type: "uint256", + name: "maxMintPerWallet", }, { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "auxData", type: "string", + name: "auxData", }, ], - name: "_claimCondition", - type: "tuple", }, ] as const; const FN_OUTPUTS = [] as const; @@ -181,23 +181,23 @@ export function setClaimConditionByTokenId( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId, resolvedOptions.claimCondition] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts index 408b582e56e..de6de1fac6f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. @@ -21,8 +21,8 @@ export type SetSaleConfigParams = WithOverrides<{ export const FN_SELECTOR = "0xd29a3628" as const; const FN_INPUTS = [ { - name: "_primarySaleRecipient", type: "address", + name: "_primarySaleRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setSaleConfig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.primarySaleRecipient] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesBeforeMintERC20.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesBeforeMintERC20.ts index 807504e8605..80b41cd4b0a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesBeforeMintERC20.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesBeforeMintERC20.ts @@ -20,22 +20,22 @@ export type EncodeBytesBeforeMintERC20Params = { export const FN_SELECTOR = "0x4e6030da" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "recipientAllowlistProof", type: "bytes32[]", + name: "recipientAllowlistProof", }, ], - name: "params", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesBeforeMintWithSignatureERC20.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesBeforeMintWithSignatureERC20.ts index 65624f7e192..fe4972d9e1c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesBeforeMintWithSignatureERC20.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesBeforeMintWithSignatureERC20.ts @@ -23,34 +23,34 @@ export type EncodeBytesBeforeMintWithSignatureERC20Params = { export const FN_SELECTOR = "0x3f4a1bb6" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "maxMintPerWallet", type: "uint256", + name: "maxMintPerWallet", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "params", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesOnInstall.ts index 472bbda5bd9..e352e188aa6 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/encode/encodeBytesOnInstall.ts @@ -15,8 +15,8 @@ export type EncodeBytesOnInstallParams = { export const FN_SELECTOR = "0x5d4c0b89" as const; const FN_INPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts index fda1dd75578..4f07605a11f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC20"; @@ -55,8 +55,8 @@ export function module( publisher: params?.publisher, }); return { - data: encodeInstall(params), module: moduleContract.address as Address, + data: encodeInstall(params), }; }; } @@ -92,8 +92,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: encodeInstall(options.params), moduleName: contractId, + moduleData: encodeInstall(options.params), publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts index 034494e34a1..88f1fa11af0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts @@ -1,49 +1,50 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "claimCondition", components: [ { - name: "availableSupply", type: "uint256", + name: "availableSupply", }, { - name: "allowlistMerkleRoot", type: "bytes32", + name: "allowlistMerkleRoot", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "maxMintPerWallet", type: "uint256", + name: "maxMintPerWallet", }, { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "auxData", type: "string", + name: "auxData", }, ], - name: "claimCondition", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts index 3aa090f11c4..d77a83b90b3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts index 3ab227ed981..68acc8f5564 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimCondition" function. @@ -31,42 +31,42 @@ export type SetClaimConditionParams = WithOverrides<{ export const FN_SELECTOR = "0xac0c12f4" as const; const FN_INPUTS = [ { + type: "tuple", + name: "_claimCondition", components: [ { - name: "availableSupply", type: "uint256", + name: "availableSupply", }, { - name: "allowlistMerkleRoot", type: "bytes32", + name: "allowlistMerkleRoot", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "maxMintPerWallet", type: "uint256", + name: "maxMintPerWallet", }, { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "auxData", type: "string", + name: "auxData", }, ], - name: "_claimCondition", - type: "tuple", }, ] as const; const FN_OUTPUTS = [] as const; @@ -166,23 +166,23 @@ export function setClaimCondition( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.claimCondition] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts index 08b8be4fbc6..8f35e243b55 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. @@ -21,8 +21,8 @@ export type SetSaleConfigParams = WithOverrides<{ export const FN_SELECTOR = "0xd29a3628" as const; const FN_INPUTS = [ { - name: "_primarySaleRecipient", type: "address", + name: "_primarySaleRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setSaleConfig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.primarySaleRecipient] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesBeforeMintERC721.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesBeforeMintERC721.ts index 3643365d32b..1433a0cb4e8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesBeforeMintERC721.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesBeforeMintERC721.ts @@ -20,22 +20,22 @@ export type EncodeBytesBeforeMintERC721Params = { export const FN_SELECTOR = "0xd9584651" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "recipientAllowlistProof", type: "bytes32[]", + name: "recipientAllowlistProof", }, ], - name: "params", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesBeforeMintWithSignatureERC721.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesBeforeMintWithSignatureERC721.ts index 13646dc8d2c..2aeb7ccf962 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesBeforeMintWithSignatureERC721.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesBeforeMintWithSignatureERC721.ts @@ -23,34 +23,34 @@ export type EncodeBytesBeforeMintWithSignatureERC721Params = { export const FN_SELECTOR = "0x937bdca4" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "maxMintPerWallet", type: "uint256", + name: "maxMintPerWallet", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "params", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesOnInstall.ts index 472bbda5bd9..e352e188aa6 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/encode/encodeBytesOnInstall.ts @@ -15,8 +15,8 @@ export type EncodeBytesOnInstallParams = { export const FN_SELECTOR = "0x5d4c0b89" as const; const FN_INPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts index 79b494f3934..03a615c3f62 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC721"; @@ -55,8 +55,8 @@ export function module( publisher: params?.publisher, }); return { - data: encodeInstall(params), module: moduleContract.address as Address, + data: encodeInstall(params), }; }; } @@ -92,8 +92,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: encodeInstall(options.params), moduleName: contractId, + moduleData: encodeInstall(options.params), publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts index 9e478cd3ba9..7040ddc3643 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts @@ -1,49 +1,50 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "claimCondition", components: [ { - name: "availableSupply", type: "uint256", + name: "availableSupply", }, { - name: "allowlistMerkleRoot", type: "bytes32", + name: "allowlistMerkleRoot", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "maxMintPerWallet", type: "uint256", + name: "maxMintPerWallet", }, { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "auxData", type: "string", + name: "auxData", }, ], - name: "claimCondition", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts index 12438909570..4be195f871d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts index e22768b0ac0..b4e0bba598b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimCondition" function. @@ -31,42 +31,42 @@ export type SetClaimConditionParams = WithOverrides<{ export const FN_SELECTOR = "0xac0c12f4" as const; const FN_INPUTS = [ { + type: "tuple", + name: "_claimCondition", components: [ { - name: "availableSupply", type: "uint256", + name: "availableSupply", }, { - name: "allowlistMerkleRoot", type: "bytes32", + name: "allowlistMerkleRoot", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "maxMintPerWallet", type: "uint256", + name: "maxMintPerWallet", }, { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "auxData", type: "string", + name: "auxData", }, ], - name: "_claimCondition", - type: "tuple", }, ] as const; const FN_OUTPUTS = [] as const; @@ -166,23 +166,23 @@ export function setClaimCondition( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.claimCondition] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts index c865fd7ab43..0086cabc826 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. @@ -21,8 +21,8 @@ export type SetSaleConfigParams = WithOverrides<{ export const FN_SELECTOR = "0xd29a3628" as const; const FN_INPUTS = [ { - name: "_primarySaleRecipient", type: "address", + name: "_primarySaleRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setSaleConfig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.primarySaleRecipient] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts index 5a5c87744d9..286199fdb6d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. @@ -21,20 +21,20 @@ export type BurnParams = WithOverrides<{ export const FN_SELECTOR = "0x8a94b05f" as const; const FN_INPUTS = [ { - name: "from", type: "address", + name: "from", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "value", type: "uint256", + name: "value", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -144,19 +144,8 @@ export function burn( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -167,5 +156,16 @@ export function burn( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts index 5ac92bed461..75422b16100 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -29,28 +29,28 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0x62835ade" as const; const FN_INPUTS = [ { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_owner", type: "address", + name: "_owner", }, { - name: "_modules", type: "address[]", + name: "_modules", }, { - name: "_moduleInstallData", type: "bytes[]", + name: "_moduleInstallData", }, ] as const; const FN_OUTPUTS = [] as const; @@ -170,19 +170,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -195,5 +184,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts index 3e490cab7f1..ad1b67dbc55 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. @@ -22,24 +22,24 @@ export type MintParams = WithOverrides<{ export const FN_SELECTOR = "0xa4b645eb" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "amount", type: "uint256", + name: "amount", }, { - name: "baseURI", type: "string", + name: "baseURI", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -153,19 +153,8 @@ export function mint( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -177,5 +166,16 @@ export function mint( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts index 547c35b3196..62821e2d4fc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. @@ -23,28 +23,28 @@ export type MintWithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0xe6bd6ada" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "amount", type: "uint256", + name: "amount", }, { - name: "baseURI", type: "string", + name: "baseURI", }, { - name: "data", type: "bytes", + name: "data", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -166,19 +166,8 @@ export function mintWithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -191,5 +180,16 @@ export function mintWithSignature( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts index 48e0fea98c2..67b1b0cfbe1 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. @@ -20,16 +20,16 @@ export type BurnParams = WithOverrides<{ export const FN_SELECTOR = "0x44d17187" as const; const FN_INPUTS = [ { - name: "from", type: "address", + name: "from", }, { - name: "amount", type: "uint256", + name: "amount", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -135,19 +135,8 @@ export function burn( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -157,5 +146,16 @@ export function burn( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts index 0fc533a1f71..a380e4ee56f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -29,28 +29,28 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0x62835ade" as const; const FN_INPUTS = [ { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_owner", type: "address", + name: "_owner", }, { - name: "_modules", type: "address[]", + name: "_modules", }, { - name: "_moduleInstallData", type: "bytes[]", + name: "_moduleInstallData", }, ] as const; const FN_OUTPUTS = [] as const; @@ -170,19 +170,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -195,5 +184,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts index 75498e5102f..a5540effcfc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. @@ -20,16 +20,16 @@ export type MintParams = WithOverrides<{ export const FN_SELECTOR = "0x94d008ef" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "amount", type: "uint256", + name: "amount", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -135,19 +135,8 @@ export function mint( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -157,5 +146,16 @@ export function mint( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts index 075d4f6e81d..98d9e06e4d4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. @@ -21,20 +21,20 @@ export type MintWithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0x0f7d3652" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "amount", type: "uint256", + name: "amount", }, { - name: "data", type: "bytes", + name: "data", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -148,19 +148,8 @@ export function mintWithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -171,5 +160,16 @@ export function mintWithSignature( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts index bd7a10125ee..00be5232ce5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts index 794487cb1fd..f0e404d832b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. @@ -19,12 +19,12 @@ export type BurnParams = WithOverrides<{ export const FN_SELECTOR = "0xfe9d9303" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -123,23 +123,23 @@ export function burn( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId, resolvedOptions.data] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts index 8e8d54b68ed..c176139c21c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -29,28 +29,28 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0x62835ade" as const; const FN_INPUTS = [ { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_owner", type: "address", + name: "_owner", }, { - name: "_modules", type: "address[]", + name: "_modules", }, { - name: "_moduleInstallData", type: "bytes[]", + name: "_moduleInstallData", }, ] as const; const FN_OUTPUTS = [] as const; @@ -170,19 +170,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -195,5 +184,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts index 7dc21f0c27f..4b4f3ae9b43 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. @@ -21,20 +21,20 @@ export type MintParams = WithOverrides<{ export const FN_SELECTOR = "0xd2b04fd6" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "amount", type: "uint256", + name: "amount", }, { - name: "baseURI", type: "string", + name: "baseURI", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -144,19 +144,8 @@ export function mint( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -167,5 +156,16 @@ export function mint( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts index 33c6d26c550..00b3b74bad7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. @@ -22,24 +22,24 @@ export type MintWithSignatureParams = WithOverrides<{ export const FN_SELECTOR = "0xeb4ada8a" as const; const FN_INPUTS = [ { - name: "to", type: "address", + name: "to", }, { - name: "amount", type: "uint256", + name: "amount", }, { - name: "baseURI", type: "string", + name: "baseURI", }, { - name: "data", type: "bytes", + name: "data", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [] as const; @@ -157,19 +157,8 @@ export function mintWithSignature( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -181,5 +170,16 @@ export function mintWithSignature( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts index 1431afe234c..c3e63b2ed21 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts @@ -1,62 +1,63 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3e429396" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", components: [ { - name: "implementation", type: "address", + name: "implementation", }, { + type: "tuple", + name: "config", components: [ { - name: "registerInstallationCallback", type: "bool", + name: "registerInstallationCallback", }, { - name: "requiredInterfaces", type: "bytes4[]", + name: "requiredInterfaces", }, { - name: "supportedInterfaces", type: "bytes4[]", + name: "supportedInterfaces", }, { + type: "tuple[]", + name: "callbackFunctions", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, ], - name: "callbackFunctions", - type: "tuple[]", }, { + type: "tuple[]", + name: "fallbackFunctions", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "permissionBits", type: "uint256", + name: "permissionBits", }, ], - name: "fallbackFunctions", - type: "tuple[]", }, ], - name: "config", - type: "tuple", }, ], - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts index 3ed05afb70e..719f3b0ae6a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts @@ -1,24 +1,25 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xf147db8a" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "mode", type: "uint8", + name: "mode", }, ], - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts index 028c738f9f1..1ae6424e1b4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. @@ -19,8 +19,8 @@ export type SupportsInterfaceParams = { export const FN_SELECTOR = "0x01ffc9a7" as const; const FN_INPUTS = [ { - name: "interfaceID", type: "bytes4", + name: "interfaceID", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts index a99b9fe145c..983aead308b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "installModule" function. @@ -22,12 +22,12 @@ export type InstallModuleParams = WithOverrides<{ export const FN_SELECTOR = "0x8da798da" as const; const FN_INPUTS = [ { - name: "moduleContract", type: "address", + name: "moduleContract", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -128,23 +128,23 @@ export function installModule( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.moduleContract, resolvedOptions.data] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts index 49defff7752..f8887d33005 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uninstallModule" function. @@ -22,12 +22,12 @@ export type UninstallModuleParams = WithOverrides<{ export const FN_SELECTOR = "0x70c109cd" as const; const FN_INPUTS = [ { - name: "moduleContract", type: "address", + name: "moduleContract", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -128,23 +128,23 @@ export function uninstallModule( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.moduleContract, resolvedOptions.data] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts index 375cd7455d0..f1360d0e902 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts @@ -1,52 +1,53 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple", components: [ { - name: "registerInstallationCallback", type: "bool", + name: "registerInstallationCallback", }, { - name: "requiredInterfaces", type: "bytes4[]", + name: "requiredInterfaces", }, { - name: "supportedInterfaces", type: "bytes4[]", + name: "supportedInterfaces", }, { + type: "tuple[]", + name: "callbackFunctions", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, ], - name: "callbackFunctions", - type: "tuple[]", }, { + type: "tuple[]", + name: "fallbackFunctions", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "permissionBits", type: "uint256", + name: "permissionBits", }, ], - name: "fallbackFunctions", - type: "tuple[]", }, ], - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/encode/encodeBytesBeforeMintWithSignatureERC1155.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/encode/encodeBytesBeforeMintWithSignatureERC1155.ts index 1f8b979b0cc..d4cdaf386fb 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/encode/encodeBytesBeforeMintWithSignatureERC1155.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/encode/encodeBytesBeforeMintWithSignatureERC1155.ts @@ -22,30 +22,30 @@ export type EncodeBytesBeforeMintWithSignatureERC1155Params = { export const FN_SELECTOR = "0x2e33c806" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "params", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/encode/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/encode/encodeBytesOnInstall.ts index 472bbda5bd9..e352e188aa6 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/encode/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/encode/encodeBytesOnInstall.ts @@ -15,8 +15,8 @@ export type EncodeBytesOnInstallParams = { export const FN_SELECTOR = "0x5d4c0b89" as const; const FN_INPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts index 0b7bb6d7aa4..6371f09be45 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC1155"; @@ -55,8 +55,8 @@ export function module( publisher: params?.publisher, }); return { - data: encodeInstall(params), module: moduleContract.address as Address, + data: encodeInstall(params), }; }; } @@ -92,8 +92,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: encodeInstall(options.params), moduleName: contractId, + moduleData: encodeInstall(options.params), publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts index 11d94b6158c..673d7cc1ebf 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts index 23dc1237e2c..b81647b202d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. @@ -21,8 +21,8 @@ export type SetSaleConfigParams = WithOverrides<{ export const FN_SELECTOR = "0xd29a3628" as const; const FN_INPUTS = [ { - name: "_primarySaleRecipient", type: "address", + name: "_primarySaleRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setSaleConfig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.primarySaleRecipient] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts index 41f55380ad5..eb9899c1979 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTokenURI" function. @@ -19,12 +19,12 @@ export type SetTokenURIParams = WithOverrides<{ export const FN_SELECTOR = "0x162094c4" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_tokenURI", type: "string", + name: "_tokenURI", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function setTokenURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId, resolvedOptions.tokenURI] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/encode/encodeBytesBeforeMintWithSignatureERC20.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/encode/encodeBytesBeforeMintWithSignatureERC20.ts index 27c321b1114..7b619ad0290 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/encode/encodeBytesBeforeMintWithSignatureERC20.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/encode/encodeBytesBeforeMintWithSignatureERC20.ts @@ -22,30 +22,30 @@ export type EncodeBytesBeforeMintWithSignatureERC20Params = { export const FN_SELECTOR = "0x76e51eae" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "params", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/encode/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/encode/encodeBytesOnInstall.ts index 472bbda5bd9..e352e188aa6 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/encode/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/encode/encodeBytesOnInstall.ts @@ -15,8 +15,8 @@ export type EncodeBytesOnInstallParams = { export const FN_SELECTOR = "0x5d4c0b89" as const; const FN_INPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts index c24512fd757..7a9aebc778c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC20"; @@ -55,8 +55,8 @@ export function module( publisher: params?.publisher, }); return { - data: encodeInstall(params), module: moduleContract.address as Address, + data: encodeInstall(params), }; }; } @@ -92,8 +92,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: encodeInstall(options.params), moduleName: contractId, + moduleData: encodeInstall(options.params), publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts index f7d4ab4a5f6..64b25a5b2f0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts index d22cd1992d7..cbe052bf6ee 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. @@ -21,8 +21,8 @@ export type SetSaleConfigParams = WithOverrides<{ export const FN_SELECTOR = "0xd29a3628" as const; const FN_INPUTS = [ { - name: "_primarySaleRecipient", type: "address", + name: "_primarySaleRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setSaleConfig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.primarySaleRecipient] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/encode/encodeBytesBeforeMintWithSignatureERC721.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/encode/encodeBytesBeforeMintWithSignatureERC721.ts index 191ca3c367e..fa4ec577b2f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/encode/encodeBytesBeforeMintWithSignatureERC721.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/encode/encodeBytesBeforeMintWithSignatureERC721.ts @@ -22,30 +22,30 @@ export type EncodeBytesBeforeMintWithSignatureERC721Params = { export const FN_SELECTOR = "0xcab11f42" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "startTimestamp", type: "uint48", + name: "startTimestamp", }, { - name: "endTimestamp", type: "uint48", + name: "endTimestamp", }, { - name: "currency", type: "address", + name: "currency", }, { - name: "pricePerUnit", type: "uint256", + name: "pricePerUnit", }, { - name: "uid", type: "bytes32", + name: "uid", }, ], - name: "params", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/encode/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/encode/encodeBytesOnInstall.ts index 472bbda5bd9..e352e188aa6 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/encode/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/encode/encodeBytesOnInstall.ts @@ -15,8 +15,8 @@ export type EncodeBytesOnInstallParams = { export const FN_SELECTOR = "0x5d4c0b89" as const; const FN_INPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts index 590125d7378..ca998dd2c29 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewMetadataBatch" event. @@ -42,8 +42,8 @@ export function newMetadataBatchEvent( filters: NewMetadataBatchEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event NewMetadataBatch(uint256 indexed startTokenIdInclusive, uint256 indexed endTokenIdNonInclusive, string baseURI)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts index df47c808fc8..9b60229de6b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC721"; @@ -55,8 +55,8 @@ export function module( publisher: params?.publisher, }); return { - data: encodeInstall(params), module: moduleContract.address as Address, + data: encodeInstall(params), }; }; } @@ -92,8 +92,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: encodeInstall(options.params), moduleName: contractId, + moduleData: encodeInstall(options.params), publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts index e890af50168..f87c6bd5c9c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "primarySaleRecipient", type: "address", + name: "primarySaleRecipient", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts index c03481cd89e..2b74aa58d07 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. @@ -21,8 +21,8 @@ export type SetSaleConfigParams = WithOverrides<{ export const FN_SELECTOR = "0xd29a3628" as const; const FN_INPUTS = [ { - name: "_primarySaleRecipient", type: "address", + name: "_primarySaleRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setSaleConfig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.primarySaleRecipient] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/module/install.ts index e65b530c488..208a0b32079 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/module/install.ts @@ -48,8 +48,8 @@ export function module(params?: { publisher?: string }) { publisher: params?.publisher, }); return { - data: "0x" as const, module: moduleContract.address as Address, + data: "0x" as const, }; }; } @@ -83,8 +83,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: "0x" as const, moduleName: contractId, + moduleData: "0x" as const, publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts index dc0d78919c8..616dc92e9b5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts index d035555f3b4..5dc96770798 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onTokenURI" function. @@ -16,8 +16,8 @@ export type OnTokenURIParams = { export const FN_SELECTOR = "0xcfc0cb96" as const; const FN_INPUTS = [ { - name: "_id", type: "uint256", + name: "_id", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts index 2dcb41b5319..7e3187f8f91 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSharedMetadata" function. @@ -27,26 +27,26 @@ export type SetSharedMetadataParams = WithOverrides<{ export const FN_SELECTOR = "0xa7d27d9d" as const; const FN_INPUTS = [ { + type: "tuple", + name: "_metadata", components: [ { - name: "name", type: "string", + name: "name", }, { - name: "description", type: "string", + name: "description", }, { - name: "imageURI", type: "string", + name: "imageURI", }, { - name: "animationURI", type: "string", + name: "animationURI", }, ], - name: "_metadata", - type: "tuple", }, ] as const; const FN_OUTPUTS = [] as const; @@ -146,23 +146,23 @@ export function setSharedMetadata( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.metadata] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts index b87781e237f..bc9687f3f35 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. @@ -36,7 +36,7 @@ export function ownershipHandoverCanceledEvent( filters: OwnershipHandoverCanceledEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts index c6c082fa6fe..b1a9f4ee776 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. @@ -36,7 +36,7 @@ export function ownershipHandoverRequestedEvent( filters: OwnershipHandoverRequestedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts index 8aa28dbb9e4..c951a7071ba 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. @@ -42,8 +42,8 @@ export function ownershipTransferredEvent( filters: OwnershipTransferredEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts index 09855a76d6e..82b3d8935da 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RolesUpdated" event. @@ -40,8 +40,8 @@ export type RolesUpdatedEventFilters = Partial<{ */ export function rolesUpdatedEvent(filters: RolesUpdatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event RolesUpdated(address indexed user, uint256 indexed roles)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts index 0bdde11a759..b838128393f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasAllRoles" function. @@ -17,12 +17,12 @@ export type HasAllRolesParams = { export const FN_SELECTOR = "0x1cd64df4" as const; const FN_INPUTS = [ { - name: "user", type: "address", + name: "user", }, { - name: "roles", type: "uint256", + name: "roles", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts index a11783f7b72..d9d0e18c144 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasAnyRole" function. @@ -17,12 +17,12 @@ export type HasAnyRoleParams = { export const FN_SELECTOR = "0x514e62fc" as const; const FN_INPUTS = [ { - name: "user", type: "address", + name: "user", }, { - name: "roles", type: "uint256", + name: "roles", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts index 26e37a619e0..94949dba052 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "result", type: "address", + name: "result", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts index 8fe37830db0..10e84ec3171 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. @@ -19,14 +19,14 @@ export type OwnershipHandoverExpiresAtParams = { export const FN_SELECTOR = "0xfee81cf4" as const; const FN_INPUTS = [ { - name: "pendingOwner", type: "address", + name: "pendingOwner", }, ] as const; const FN_OUTPUTS = [ { - name: "result", type: "uint256", + name: "result", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts index 5450af081eb..0079ccfea7e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "rolesOf" function. @@ -16,14 +16,14 @@ export type RolesOfParams = { export const FN_SELECTOR = "0x2de94807" as const; const FN_INPUTS = [ { - name: "user", type: "address", + name: "user", }, ] as const; const FN_OUTPUTS = [ { - name: "roles", type: "uint256", + name: "roles", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts index 5508806b5ba..603d57d63fc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts index fbd54080592..84cd06bad6e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. @@ -21,8 +21,8 @@ export type CompleteOwnershipHandoverParams = WithOverrides<{ export const FN_SELECTOR = "0xf04e283e" as const; const FN_INPUTS = [ { - name: "pendingOwner", type: "address", + name: "pendingOwner", }, ] as const; const FN_OUTPUTS = [] as const; @@ -126,23 +126,23 @@ export function completeOwnershipHandover( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.pendingOwner] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts index 9a024670bd9..aa00ee8e415 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRoles" function. @@ -19,12 +19,12 @@ export type GrantRolesParams = WithOverrides<{ export const FN_SELECTOR = "0x1c10893f" as const; const FN_INPUTS = [ { - name: "user", type: "address", + name: "user", }, { - name: "roles", type: "uint256", + name: "roles", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function grantRoles( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.user, resolvedOptions.roles] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts index 5371c300c7b..28fa4ef4566 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts index f9d7616b494..eb705776b19 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRoles" function. @@ -18,8 +18,8 @@ export type RenounceRolesParams = WithOverrides<{ export const FN_SELECTOR = "0x183a4f6e" as const; const FN_INPUTS = [ { - name: "roles", type: "uint256", + name: "roles", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function renounceRoles( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.roles] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts index e368991836c..fd1aab1c092 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts index 2ce4e70aca2..61079b5f6b9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRoles" function. @@ -19,12 +19,12 @@ export type RevokeRolesParams = WithOverrides<{ export const FN_SELECTOR = "0x4a4ee7b1" as const; const FN_INPUTS = [ { - name: "user", type: "address", + name: "user", }, { - name: "roles", type: "uint256", + name: "roles", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function revokeRoles( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.user, resolvedOptions.roles] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts index 72369738307..c02c49a5685 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. @@ -18,8 +18,8 @@ export type TransferOwnershipParams = WithOverrides<{ export const FN_SELECTOR = "0xf2fde38b" as const; const FN_INPUTS = [ { - name: "newOwner", type: "address", + name: "newOwner", }, ] as const; const FN_OUTPUTS = [] as const; @@ -119,23 +119,23 @@ export function transferOwnership( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.newOwner] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/encode/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/encode/encodeBytesOnInstall.ts index 3930834c6e1..f38917a3864 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/encode/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/encode/encodeBytesOnInstall.ts @@ -23,16 +23,16 @@ export type EncodeBytesOnInstallParams = { export const FN_SELECTOR = "0x2fbb2623" as const; const FN_INPUTS = [ { - name: "royaltyRecipient", type: "address", + name: "royaltyRecipient", }, { - name: "royaltyBps", type: "uint16", + name: "royaltyBps", }, { - name: "transferValidator", type: "address", + name: "transferValidator", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts index 333242c3936..25bc5945a14 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. @@ -36,8 +36,8 @@ export function defaultRoyaltyUpdatedEvent( filters: DefaultRoyaltyUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event DefaultRoyaltyUpdated(address indexed recipient, uint16 bps)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts index 4f783777de5..f90f117f6e3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. @@ -42,8 +42,8 @@ export function tokenRoyaltyUpdatedEvent( filters: TokenRoyaltyUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokenRoyaltyUpdated(uint256 indexed tokenId, address indexed recipient, uint16 bps)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts index 62f4448a2a3..b7717a9d368 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC1155"; @@ -57,8 +57,8 @@ export function module( publisher: params?.publisher, }); return { - data: encodeInstall(params), module: moduleContract.address as Address, + data: encodeInstall(params), }; }; } @@ -96,8 +96,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: encodeInstall(options.params), moduleName: contractId, + moduleData: encodeInstall(options.params), publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts index 79bb9aec7ea..161877a044f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts index 394b63003af..106c526e719 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. @@ -16,8 +16,8 @@ export type GetRoyaltyInfoForTokenParams = { export const FN_SELECTOR = "0x4cc157df" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts index 776b7cf96b2..79049e5fc58 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts @@ -1,19 +1,20 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "functionSignature", type: "bytes4", + name: "functionSignature", }, { - name: "isViewFunction", type: "bool", + name: "isViewFunction", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts index dc5f443de9c..218f32e8641 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "validator", type: "address", + name: "validator", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts index c3b89ac1636..a8f3c6855f9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. @@ -20,22 +20,22 @@ export type RoyaltyInfoParams = { export const FN_SELECTOR = "0x2a55205a" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_salePrice", type: "uint256", + name: "_salePrice", }, ] as const; const FN_OUTPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "royaltyAmount", type: "uint256", + name: "royaltyAmount", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts index ce3acf2d779..561504fb0fe 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. @@ -25,12 +25,12 @@ export type SetDefaultRoyaltyInfoParams = WithOverrides<{ export const FN_SELECTOR = "0x93d79445" as const; const FN_INPUTS = [ { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint16", + name: "_royaltyBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -138,19 +138,8 @@ export function setDefaultRoyaltyInfo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -159,5 +148,16 @@ export function setDefaultRoyaltyInfo( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts index bce879fd67d..e41fc809383 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. @@ -23,16 +23,16 @@ export type SetRoyaltyInfoForTokenParams = WithOverrides<{ export const FN_SELECTOR = "0xab8e8c44" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_recipient", type: "address", + name: "_recipient", }, { - name: "_bps", type: "uint16", + name: "_bps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -146,19 +146,8 @@ export function setRoyaltyInfoForToken( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -168,5 +157,16 @@ export function setRoyaltyInfoForToken( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts index e0ebc01e101..2294f18888e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferValidator" function. @@ -21,8 +21,8 @@ export type SetTransferValidatorParams = WithOverrides<{ export const FN_SELECTOR = "0xa9fc664e" as const; const FN_INPUTS = [ { - name: "validator", type: "address", + name: "validator", }, ] as const; const FN_OUTPUTS = [] as const; @@ -124,23 +124,23 @@ export function setTransferValidator( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.validator] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/encode/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/encode/encodeBytesOnInstall.ts index 3930834c6e1..f38917a3864 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/encode/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/encode/encodeBytesOnInstall.ts @@ -23,16 +23,16 @@ export type EncodeBytesOnInstallParams = { export const FN_SELECTOR = "0x2fbb2623" as const; const FN_INPUTS = [ { - name: "royaltyRecipient", type: "address", + name: "royaltyRecipient", }, { - name: "royaltyBps", type: "uint16", + name: "royaltyBps", }, { - name: "transferValidator", type: "address", + name: "transferValidator", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts index 445ff0cd1c6..4051647d5cc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. @@ -36,8 +36,8 @@ export function defaultRoyaltyUpdatedEvent( filters: DefaultRoyaltyUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event DefaultRoyaltyUpdated(address indexed recipient, uint256 bps)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts index 1f9d3f1785b..75761816d99 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. @@ -42,8 +42,8 @@ export function tokenRoyaltyUpdatedEvent( filters: TokenRoyaltyUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event TokenRoyaltyUpdated(uint256 indexed tokenId, address indexed recipient, uint16 bps)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts index 5443b949f05..7061f2b4f41 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC721"; @@ -57,8 +57,8 @@ export function module( publisher: params?.publisher, }); return { - data: encodeInstall(params), module: moduleContract.address as Address, + data: encodeInstall(params), }; }; } @@ -96,8 +96,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: encodeInstall(options.params), moduleName: contractId, + moduleData: encodeInstall(options.params), publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts index ca55810873a..10575fe9af2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts index 3d4af24e62c..6718ff82997 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. @@ -16,8 +16,8 @@ export type GetRoyaltyInfoForTokenParams = { export const FN_SELECTOR = "0x4cc157df" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts index e891734133a..8e50ecc5c12 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts @@ -1,19 +1,20 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "functionSignature", type: "bytes4", + name: "functionSignature", }, { - name: "isViewFunction", type: "bool", + name: "isViewFunction", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts index 178845eae52..a4c7f3198e9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "validator", type: "address", + name: "validator", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts index 474b1820f22..521ca3e83a4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. @@ -20,22 +20,22 @@ export type RoyaltyInfoParams = { export const FN_SELECTOR = "0x2a55205a" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_salePrice", type: "uint256", + name: "_salePrice", }, ] as const; const FN_OUTPUTS = [ { - name: "receiver", type: "address", + name: "receiver", }, { - name: "royaltyAmount", type: "uint256", + name: "royaltyAmount", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts index c795304efef..db307f59b19 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. @@ -25,12 +25,12 @@ export type SetDefaultRoyaltyInfoParams = WithOverrides<{ export const FN_SELECTOR = "0x93d79445" as const; const FN_INPUTS = [ { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint16", + name: "_royaltyBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -138,19 +138,8 @@ export function setDefaultRoyaltyInfo( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -159,5 +148,16 @@ export function setDefaultRoyaltyInfo( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts index 3596a985a30..cd56610879a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. @@ -23,16 +23,16 @@ export type SetRoyaltyInfoForTokenParams = WithOverrides<{ export const FN_SELECTOR = "0xab8e8c44" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, { - name: "_recipient", type: "address", + name: "_recipient", }, { - name: "_bps", type: "uint16", + name: "_bps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -146,19 +146,8 @@ export function setRoyaltyInfoForToken( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -168,5 +157,16 @@ export function setRoyaltyInfoForToken( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts index f1a38cc3b14..10ec0919cb2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferValidator" function. @@ -21,8 +21,8 @@ export type SetTransferValidatorParams = WithOverrides<{ export const FN_SELECTOR = "0xa9fc664e" as const; const FN_INPUTS = [ { - name: "validator", type: "address", + name: "validator", }, ] as const; const FN_OUTPUTS = [] as const; @@ -124,23 +124,23 @@ export function setTransferValidator( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.validator] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/encode/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/encode/encodeBytesOnInstall.ts index 715ef2901f7..308f4bc860a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/encode/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/encode/encodeBytesOnInstall.ts @@ -15,8 +15,8 @@ export type EncodeBytesOnInstallParams = { export const FN_SELECTOR = "0x579a6021" as const; const FN_INPUTS = [ { - name: "startTokenId", type: "uint256", + name: "startTokenId", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts index 4259c6a152e..ce28b48f975 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "SequentialTokenIdERC1155"; @@ -55,8 +55,8 @@ export function module( publisher: params?.publisher, }); return { - data: encodeInstall(params), module: moduleContract.address as Address, + data: encodeInstall(params), }; }; } @@ -92,8 +92,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: encodeInstall(options.params), moduleName: contractId, + moduleData: encodeInstall(options.params), publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts index d9ce9b9a5b9..4750da4f484 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts @@ -1,53 +1,54 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "config", components: [ { - name: "registerInstallationCallback", type: "bool", + name: "registerInstallationCallback", }, { - name: "requiredInterfaces", type: "bytes4[]", + name: "requiredInterfaces", }, { - name: "supportedInterfaces", type: "bytes4[]", + name: "supportedInterfaces", }, { + type: "tuple[]", + name: "callbackFunctions", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, ], - name: "callbackFunctions", - type: "tuple[]", }, { + type: "tuple[]", + name: "fallbackFunctions", components: [ { - name: "selector", type: "bytes4", + name: "selector", }, { - name: "permissionBits", type: "uint256", + name: "permissionBits", }, ], - name: "fallbackFunctions", - type: "tuple[]", }, ], - name: "config", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts index bd993363080..5f09bcb32ac 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcaa0f92a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts index eaa624292f0..698a143391c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateTokenIdERC1155" function. @@ -18,8 +18,8 @@ export type UpdateTokenIdERC1155Params = WithOverrides<{ export const FN_SELECTOR = "0x034eb4dd" as const; const FN_INPUTS = [ { - name: "_tokenId", type: "uint256", + name: "_tokenId", }, ] as const; const FN_OUTPUTS = [ @@ -125,23 +125,23 @@ export function updateTokenIdERC1155( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.tokenId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/module/install.ts index 08bc5943cf9..5d31516a063 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/module/install.ts @@ -48,8 +48,8 @@ export function module(params?: { publisher?: string }) { publisher: params?.publisher, }); return { - data: "0x" as const, module: moduleContract.address as Address, + data: "0x" as const, }; }; } @@ -83,8 +83,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: "0x" as const, moduleName: contractId, + moduleData: "0x" as const, publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts index a96c96e2a66..5fe0ab63e3a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts index 6b6d99356cf..5e91dbb0878 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts index b148b098f53..9c3942e30e3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. @@ -16,8 +16,8 @@ export type IsTransferEnabledForParams = { export const FN_SELECTOR = "0x735d0538" as const; const FN_INPUTS = [ { - name: "target", type: "address", + name: "target", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts index 931c64cc23c..586ec8163af 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferable" function. @@ -21,8 +21,8 @@ export type SetTransferableParams = WithOverrides<{ export const FN_SELECTOR = "0x9cd23707" as const; const FN_INPUTS = [ { - name: "enableTransfer", type: "bool", + name: "enableTransfer", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setTransferable( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.enableTransfer] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts index f09c0328a29..fc521da4fc5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferableFor" function. @@ -22,12 +22,12 @@ export type SetTransferableForParams = WithOverrides<{ export const FN_SELECTOR = "0x4c297cbd" as const; const FN_INPUTS = [ { - name: "target", type: "address", + name: "target", }, { - name: "enableTransfer", type: "bool", + name: "enableTransfer", }, ] as const; const FN_OUTPUTS = [] as const; @@ -133,23 +133,23 @@ export function setTransferableFor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.target, resolvedOptions.enableTransfer] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/module/install.ts index 565fe2593d5..c847d48cab4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/module/install.ts @@ -48,8 +48,8 @@ export function module(params?: { publisher?: string }) { publisher: params?.publisher, }); return { - data: "0x" as const, module: moduleContract.address as Address, + data: "0x" as const, }; }; } @@ -83,8 +83,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: "0x" as const, moduleName: contractId, + moduleData: "0x" as const, publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts index 33d073e5146..f2282b92fe8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts index 62ccbd551ab..03a1c407723 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts index b6f36081ea6..370d8312c2e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. @@ -16,8 +16,8 @@ export type IsTransferEnabledForParams = { export const FN_SELECTOR = "0x735d0538" as const; const FN_INPUTS = [ { - name: "target", type: "address", + name: "target", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts index b5096a9a7bd..893845f2478 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferable" function. @@ -21,8 +21,8 @@ export type SetTransferableParams = WithOverrides<{ export const FN_SELECTOR = "0x9cd23707" as const; const FN_INPUTS = [ { - name: "enableTransfer", type: "bool", + name: "enableTransfer", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setTransferable( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.enableTransfer] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts index 55ff5f1e4d3..b075bc48f49 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferableFor" function. @@ -22,12 +22,12 @@ export type SetTransferableForParams = WithOverrides<{ export const FN_SELECTOR = "0x4c297cbd" as const; const FN_INPUTS = [ { - name: "target", type: "address", + name: "target", }, { - name: "enableTransfer", type: "bool", + name: "enableTransfer", }, ] as const; const FN_OUTPUTS = [] as const; @@ -133,23 +133,23 @@ export function setTransferableFor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.target, resolvedOptions.enableTransfer] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/module/install.ts index afd927bc4be..4f83bb4478d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/module/install.ts @@ -48,8 +48,8 @@ export function module(params?: { publisher?: string }) { publisher: params?.publisher, }); return { - data: "0x" as const, module: moduleContract.address as Address, + data: "0x" as const, }; }; } @@ -83,8 +83,8 @@ export function install(options: { return installPublishedModule({ account: options.account, contract: options.contract, - moduleData: "0x" as const, moduleName: contractId, + moduleData: "0x" as const, publisher: options.params?.publisher, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts index 6e17d1c53f7..bf376a7ff49 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts index 19244f93174..d15e0f67619 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts index 30f28d06d3c..7ce195f07a7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. @@ -16,8 +16,8 @@ export type IsTransferEnabledForParams = { export const FN_SELECTOR = "0x735d0538" as const; const FN_INPUTS = [ { - name: "target", type: "address", + name: "target", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts index 1a9467f6a60..6c553cf6db0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferable" function. @@ -21,8 +21,8 @@ export type SetTransferableParams = WithOverrides<{ export const FN_SELECTOR = "0x9cd23707" as const; const FN_INPUTS = [ { - name: "enableTransfer", type: "bool", + name: "enableTransfer", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setTransferable( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.enableTransfer] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts index fc9691076ff..27bb4135660 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferableFor" function. @@ -22,12 +22,12 @@ export type SetTransferableForParams = WithOverrides<{ export const FN_SELECTOR = "0x4c297cbd" as const; const FN_INPUTS = [ { - name: "target", type: "address", + name: "target", }, { - name: "enableTransfer", type: "bool", + name: "enableTransfer", }, ] as const; const FN_OUTPUTS = [] as const; @@ -133,23 +133,23 @@ export function setTransferableFor( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.target, resolvedOptions.enableTransfer] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts index 89315b85fd4..af544c422c1 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3e64a696" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "basefee", type: "uint256", + name: "basefee", }, ] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts index 1cae461b7f6..3884c555518 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBlockHash" function. @@ -19,14 +19,14 @@ export type GetBlockHashParams = { export const FN_SELECTOR = "0xee82ac5e" as const; const FN_INPUTS = [ { - name: "blockNumber", type: "uint256", + name: "blockNumber", }, ] as const; const FN_OUTPUTS = [ { - name: "blockHash", type: "bytes32", + name: "blockHash", }, ] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts index 1778d07fb55..c14e8ec22b4 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x42cbb15c" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "blockNumber", type: "uint256", + name: "blockNumber", }, ] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts index e838cdbbd89..13081555936 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3408e470" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "chainid", type: "uint256", + name: "chainid", }, ] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts index f0a479e8f6d..7f20ac5749c 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa8b0574e" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "coinbase", type: "address", + name: "coinbase", }, ] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts index 54792ffa12e..38a3806a0cc 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x72425d9d" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "difficulty", type: "uint256", + name: "difficulty", }, ] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts index 101ac59bd58..7ce8741e849 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x86d516e8" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "gaslimit", type: "uint256", + name: "gaslimit", }, ] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts index 84891a0d046..02daf1735db 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0f28c97d" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "timestamp", type: "uint256", + name: "timestamp", }, ] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts index 0f5f3c88fae..30dca5d1fba 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getEthBalance" function. @@ -16,14 +16,14 @@ export type GetEthBalanceParams = { export const FN_SELECTOR = "0x4d2301cc" as const; const FN_INPUTS = [ { - name: "addr", type: "address", + name: "addr", }, ] as const; const FN_OUTPUTS = [ { - name: "balance", type: "uint256", + name: "balance", }, ] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts index 080524bd944..f1a2b78e80e 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x27e86d6e" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "blockHash", type: "bytes32", + name: "blockHash", }, ] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts index d12a1873521..f8dd64f3895 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "aggregate" function. @@ -25,28 +25,28 @@ export type AggregateParams = WithOverrides<{ export const FN_SELECTOR = "0x252dba42" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "calls", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "callData", type: "bytes", + name: "callData", }, ], - name: "calls", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [ { - name: "blockNumber", type: "uint256", + name: "blockNumber", }, { - name: "returnData", type: "bytes[]", + name: "returnData", }, ] as const; @@ -143,23 +143,23 @@ export function aggregate( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.calls] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts index a996711c929..d93589faf77 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "aggregate3" function. @@ -26,38 +26,38 @@ export type Aggregate3Params = WithOverrides<{ export const FN_SELECTOR = "0x82ad56cb" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "calls", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "allowFailure", type: "bool", + name: "allowFailure", }, { - name: "callData", type: "bytes", + name: "callData", }, ], - name: "calls", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "returnData", components: [ { - name: "success", type: "bool", + name: "success", }, { - name: "returnData", type: "bytes", + name: "returnData", }, ], - name: "returnData", - type: "tuple[]", }, ] as const; @@ -154,23 +154,23 @@ export function aggregate3( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.calls] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts index 51477184ea9..c08826f923c 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "aggregate3Value" function. @@ -27,42 +27,42 @@ export type Aggregate3ValueParams = WithOverrides<{ export const FN_SELECTOR = "0x174dea71" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "calls", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "allowFailure", type: "bool", + name: "allowFailure", }, { - name: "value", type: "uint256", + name: "value", }, { - name: "callData", type: "bytes", + name: "callData", }, ], - name: "calls", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "returnData", components: [ { - name: "success", type: "bool", + name: "success", }, { - name: "returnData", type: "bytes", + name: "returnData", }, ], - name: "returnData", - type: "tuple[]", }, ] as const; @@ -159,23 +159,23 @@ export function aggregate3Value( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.calls] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts index eff1237ea72..aaad8b8ba9d 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "blockAndAggregate" function. @@ -25,42 +25,42 @@ export type BlockAndAggregateParams = WithOverrides<{ export const FN_SELECTOR = "0xc3077fa9" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "calls", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "callData", type: "bytes", + name: "callData", }, ], - name: "calls", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [ { - name: "blockNumber", type: "uint256", + name: "blockNumber", }, { - name: "blockHash", type: "bytes32", + name: "blockHash", }, { + type: "tuple[]", + name: "returnData", components: [ { - name: "success", type: "bool", + name: "success", }, { - name: "returnData", type: "bytes", + name: "returnData", }, ], - name: "returnData", - type: "tuple[]", }, ] as const; @@ -159,23 +159,23 @@ export function blockAndAggregate( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.calls] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts index bf87fb34568..2e262064045 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tryAggregate" function. @@ -29,38 +29,38 @@ export type TryAggregateParams = WithOverrides<{ export const FN_SELECTOR = "0xbce38bd7" as const; const FN_INPUTS = [ { - name: "requireSuccess", type: "bool", + name: "requireSuccess", }, { + type: "tuple[]", + name: "calls", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "callData", type: "bytes", + name: "callData", }, ], - name: "calls", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "returnData", components: [ { - name: "success", type: "bool", + name: "success", }, { - name: "returnData", type: "bytes", + name: "returnData", }, ], - name: "returnData", - type: "tuple[]", }, ] as const; @@ -163,23 +163,23 @@ export function tryAggregate( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.requireSuccess, resolvedOptions.calls] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts index 2c750751ccd..148eb873fc5 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tryBlockAndAggregate" function. @@ -29,46 +29,46 @@ export type TryBlockAndAggregateParams = WithOverrides<{ export const FN_SELECTOR = "0x399542e9" as const; const FN_INPUTS = [ { - name: "requireSuccess", type: "bool", + name: "requireSuccess", }, { + type: "tuple[]", + name: "calls", components: [ { - name: "target", type: "address", + name: "target", }, { - name: "callData", type: "bytes", + name: "callData", }, ], - name: "calls", - type: "tuple[]", }, ] as const; const FN_OUTPUTS = [ { - name: "blockNumber", type: "uint256", + name: "blockNumber", }, { - name: "blockHash", type: "bytes32", + name: "blockHash", }, { + type: "tuple[]", + name: "returnData", components: [ { - name: "success", type: "bool", + name: "success", }, { - name: "returnData", type: "bytes", + name: "returnData", }, ], - name: "returnData", - type: "tuple[]", }, ] as const; @@ -175,23 +175,23 @@ export function tryBlockAndAggregate( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.requireSuccess, resolvedOptions.calls] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts index 7f7e59e4970..85a8404f8e8 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackCreated" event. @@ -34,8 +34,8 @@ export type PackCreatedEventFilters = Partial<{ */ export function packCreatedEvent(filters: PackCreatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event PackCreated(uint256 indexed packId, address recipient, uint256 totalPacksCreated)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts index eb67785465c..34e6efaa1fe 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpened" event. @@ -40,8 +40,8 @@ export type PackOpenedEventFilters = Partial<{ */ export function packOpenedEvent(filters: PackOpenedEventFilters = {}) { return prepareEvent({ - filters, signature: "event PackOpened(uint256 indexed packId, address indexed opener, uint256 numOfPacksOpened, (address assetContract, uint8 tokenType, uint256 tokenId, uint256 totalAmount)[] rewardUnitsDistributed)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts index 27908200057..5858c8f0520 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackUpdated" event. @@ -34,8 +34,8 @@ export type PackUpdatedEventFilters = Partial<{ */ export function packUpdatedEvent(filters: PackUpdatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event PackUpdated(uint256 indexed packId, address recipient, uint256 totalPacksCreated)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts index 18d152fdf41..8f713d143a3 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "canUpdatePack" function. @@ -16,8 +16,8 @@ export type CanUpdatePackParams = { export const FN_SELECTOR = "0xb0381b08" as const; const FN_INPUTS = [ { - name: "_key", type: "uint256", + name: "_key", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts index f455965d931..233d0176ef1 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPackContents" function. @@ -16,36 +16,36 @@ export type GetPackContentsParams = { export const FN_SELECTOR = "0x8d4c446a" as const; const FN_INPUTS = [ { - name: "_packId", type: "uint256", + name: "_packId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "contents", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "totalAmount", type: "uint256", + name: "totalAmount", }, ], - name: "contents", - type: "tuple[]", }, { - name: "perUnitAmounts", type: "uint256[]", + name: "perUnitAmounts", }, ] as const; diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts index 6cca3c47cf2..63551a691f3 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTokenCountOfBundle" function. @@ -16,8 +16,8 @@ export type GetTokenCountOfBundleParams = { export const FN_SELECTOR = "0xd0d2fe25" as const; const FN_INPUTS = [ { - name: "_bundleId", type: "uint256", + name: "_bundleId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts index 6129e13d9d4..6d3292d8791 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTokenOfBundle" function. @@ -17,35 +17,35 @@ export type GetTokenOfBundleParams = { export const FN_SELECTOR = "0x1da799c9" as const; const FN_INPUTS = [ { - name: "_bundleId", type: "uint256", + name: "_bundleId", }, { - name: "index", type: "uint256", + name: "index", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "totalAmount", type: "uint256", + name: "totalAmount", }, ], - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts index 5d808e4b42c..9991755461f 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getUriOfBundle" function. @@ -16,8 +16,8 @@ export type GetUriOfBundleParams = { export const FN_SELECTOR = "0x61195e94" as const; const FN_INPUTS = [ { - name: "_bundleId", type: "uint256", + name: "_bundleId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts index c4a1a4dc21d..25f164cd723 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addPackContents" function. @@ -36,48 +36,48 @@ export type AddPackContentsParams = WithOverrides<{ export const FN_SELECTOR = "0xa96b1438" as const; const FN_INPUTS = [ { - name: "_packId", type: "uint256", + name: "_packId", }, { + type: "tuple[]", + name: "_contents", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "totalAmount", type: "uint256", + name: "totalAmount", }, ], - name: "_contents", - type: "tuple[]", }, { - name: "_numOfRewardUnits", type: "uint256[]", + name: "_numOfRewardUnits", }, { - name: "_recipient", type: "address", + name: "_recipient", }, ] as const; const FN_OUTPUTS = [ { - name: "packTotalSupply", type: "uint256", + name: "packTotalSupply", }, { - name: "newSupplyAdded", type: "uint256", + name: "newSupplyAdded", }, ] as const; @@ -188,19 +188,8 @@ export function addPackContents( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -211,5 +200,16 @@ export function addPackContents( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts index be63061314e..b73f6efe6e4 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPack" function. @@ -44,56 +44,56 @@ export type CreatePackParams = WithOverrides<{ export const FN_SELECTOR = "0x092e6075" as const; const FN_INPUTS = [ { + type: "tuple[]", + name: "contents", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "totalAmount", type: "uint256", + name: "totalAmount", }, ], - name: "contents", - type: "tuple[]", }, { - name: "numOfRewardUnits", type: "uint256[]", + name: "numOfRewardUnits", }, { - name: "packUri", type: "string", + name: "packUri", }, { - name: "openStartTimestamp", type: "uint128", + name: "openStartTimestamp", }, { - name: "amountDistributedPerOpen", type: "uint128", + name: "amountDistributedPerOpen", }, { - name: "recipient", type: "address", + name: "recipient", }, ] as const; const FN_OUTPUTS = [ { - name: "packId", type: "uint256", + name: "packId", }, { - name: "packTotalSupply", type: "uint256", + name: "packTotalSupply", }, ] as const; @@ -212,19 +212,8 @@ export function createPack( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -237,5 +226,16 @@ export function createPack( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts index 97ca8cb2c9d..cb086aedfcd 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPack" function. @@ -22,35 +22,35 @@ export type OpenPackParams = WithOverrides<{ export const FN_SELECTOR = "0x914e126a" as const; const FN_INPUTS = [ { - name: "packId", type: "uint256", + name: "packId", }, { - name: "amountToOpen", type: "uint256", + name: "amountToOpen", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "totalAmount", type: "uint256", + name: "totalAmount", }, ], - type: "tuple[]", }, ] as const; @@ -148,23 +148,23 @@ export function openPack( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.packId, resolvedOptions.amountToOpen] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index 1c57f1ecb1b..dc0b6ac9be2 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpenRequested" event. @@ -42,8 +42,8 @@ export function packOpenRequestedEvent( filters: PackOpenRequestedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event PackOpenRequested(address indexed opener, uint256 indexed packId, uint256 amountToOpen, uint256 requestId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index 031826194c5..dac830eb692 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackRandomnessFulfilled" event. @@ -42,8 +42,8 @@ export function packRandomnessFulfilledEvent( filters: PackRandomnessFulfilledEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event PackRandomnessFulfilled(uint256 indexed packId, uint256 indexed requestId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts index 80e8a798a58..cac29e8419e 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "canClaimRewards" function. @@ -16,8 +16,8 @@ export type CanClaimRewardsParams = { export const FN_SELECTOR = "0xa9b47a66" as const; const FN_INPUTS = [ { - name: "_opener", type: "address", + name: "_opener", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts index bdc6de9c6d2..381d4d1006c 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; @@ -7,26 +7,26 @@ export const FN_SELECTOR = "0x372500ab" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "rewardUnits", components: [ { - name: "assetContract", type: "address", + name: "assetContract", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "totalAmount", type: "uint256", + name: "totalAmount", }, ], - name: "rewardUnits", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index ad89f183adb..bc954a62d72 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. @@ -26,16 +26,16 @@ export type OpenPackAndClaimRewardsParams = WithOverrides<{ export const FN_SELECTOR = "0xac296b3f" as const; const FN_INPUTS = [ { - name: "_packId", type: "uint256", + name: "_packId", }, { - name: "_amountToOpen", type: "uint256", + name: "_amountToOpen", }, { - name: "_callBackGasLimit", type: "uint32", + name: "_callBackGasLimit", }, ] as const; const FN_OUTPUTS = [ @@ -153,19 +153,8 @@ export function openPackAndClaimRewards( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -175,5 +164,16 @@ export function openPackAndClaimRewards( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts index ee99c86ea03..01a5c361ce1 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleAdminChanged" event. @@ -48,8 +48,8 @@ export function roleAdminChangedEvent( filters: RoleAdminChangedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts index b6b837ece97..91f566246e0 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleGranted" event. @@ -46,8 +46,8 @@ export type RoleGrantedEventFilters = Partial<{ */ export function roleGrantedEvent(filters: RoleGrantedEventFilters = {}) { return prepareEvent({ - filters, signature: "event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts index 601f4413c5d..91fcab84e65 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleRevoked" event. @@ -46,8 +46,8 @@ export type RoleRevokedEventFilters = Partial<{ */ export function roleRevokedEvent(filters: RoleRevokedEventFilters = {}) { return prepareEvent({ - filters, signature: "event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts index 47d44113063..142c73b479c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleAdmin" function. @@ -16,8 +16,8 @@ export type GetRoleAdminParams = { export const FN_SELECTOR = "0x248a9ca3" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts index f62f3380b91..44c5782708b 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasRole" function. @@ -17,12 +17,12 @@ export type HasRoleParams = { export const FN_SELECTOR = "0x91d14854" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts index 63cc21447cb..d1a4941ec7c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRole" function. @@ -19,12 +19,12 @@ export type GrantRoleParams = WithOverrides<{ export const FN_SELECTOR = "0x2f2ff15d" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function grantRole( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.role, resolvedOptions.account] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts index e24baa2bb0c..c6e5e3be592 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRole" function. @@ -19,12 +19,12 @@ export type RenounceRoleParams = WithOverrides<{ export const FN_SELECTOR = "0x36568abe" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function renounceRole( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.role, resolvedOptions.account] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts index 78c0b88ae38..114846fcd0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRole" function. @@ -19,12 +19,12 @@ export type RevokeRoleParams = WithOverrides<{ export const FN_SELECTOR = "0xd547741f" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function revokeRole( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.role, resolvedOptions.account] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts index ee99c86ea03..01a5c361ce1 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleAdminChanged" event. @@ -48,8 +48,8 @@ export function roleAdminChangedEvent( filters: RoleAdminChangedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts index b6b837ece97..91f566246e0 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleGranted" event. @@ -46,8 +46,8 @@ export type RoleGrantedEventFilters = Partial<{ */ export function roleGrantedEvent(filters: RoleGrantedEventFilters = {}) { return prepareEvent({ - filters, signature: "event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts index 601f4413c5d..91fcab84e65 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleRevoked" event. @@ -46,8 +46,8 @@ export type RoleRevokedEventFilters = Partial<{ */ export function roleRevokedEvent(filters: RoleRevokedEventFilters = {}) { return prepareEvent({ - filters, signature: "event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts index 47d44113063..142c73b479c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleAdmin" function. @@ -16,8 +16,8 @@ export type GetRoleAdminParams = { export const FN_SELECTOR = "0x248a9ca3" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts index d07f9e82b32..c1eed901f0f 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleMember" function. @@ -17,12 +17,12 @@ export type GetRoleMemberParams = { export const FN_SELECTOR = "0x9010d07c" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, { - name: "index", type: "uint256", + name: "index", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts index 2ef53c1b07c..d6255b64f06 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleMemberCount" function. @@ -16,8 +16,8 @@ export type GetRoleMemberCountParams = { export const FN_SELECTOR = "0xca15c873" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts index f62f3380b91..44c5782708b 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasRole" function. @@ -17,12 +17,12 @@ export type HasRoleParams = { export const FN_SELECTOR = "0x91d14854" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts index 63cc21447cb..d1a4941ec7c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRole" function. @@ -19,12 +19,12 @@ export type GrantRoleParams = WithOverrides<{ export const FN_SELECTOR = "0x2f2ff15d" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function grantRole( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.role, resolvedOptions.account] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts index e24baa2bb0c..c6e5e3be592 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRole" function. @@ -19,12 +19,12 @@ export type RenounceRoleParams = WithOverrides<{ export const FN_SELECTOR = "0x36568abe" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function renounceRole( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.role, resolvedOptions.account] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts index 78c0b88ae38..114846fcd0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRole" function. @@ -19,12 +19,12 @@ export type RevokeRoleParams = WithOverrides<{ export const FN_SELECTOR = "0xd547741f" as const; const FN_INPUTS = [ { - name: "role", type: "bytes32", + name: "role", }, { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [] as const; @@ -125,23 +125,23 @@ export function revokeRole( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.role, resolvedOptions.account] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts index 52eae2fe169..c4c449c8056 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -51,44 +51,44 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xe1591634" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_saleRecipient", type: "address", + name: "_saleRecipient", }, { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint128", + name: "_royaltyBps", }, { - name: "_platformFeeBps", type: "uint128", + name: "_platformFeeBps", }, { - name: "_platformFeeRecipient", type: "address", + name: "_platformFeeRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -224,19 +224,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -253,5 +242,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts index 274ea20dd28..9fccd394f82 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -43,36 +43,36 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0x49c5c5b6" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_saleRecipient", type: "address", + name: "_saleRecipient", }, { - name: "_platformFeeRecipient", type: "address", + name: "_platformFeeRecipient", }, { - name: "_platformFeeBps", type: "uint128", + name: "_platformFeeBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -200,19 +200,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -227,5 +216,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts index 52eae2fe169..c4c449c8056 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -51,44 +51,44 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xe1591634" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_saleRecipient", type: "address", + name: "_saleRecipient", }, { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint128", + name: "_royaltyBps", }, { - name: "_platformFeeBps", type: "uint128", + name: "_platformFeeBps", }, { - name: "_platformFeeRecipient", type: "address", + name: "_platformFeeRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -224,19 +224,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -253,5 +242,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts index afd8adc4244..926c5ad6b8c 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -37,24 +37,24 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xaaae5633" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_platformFeeRecipient", type: "address", + name: "_platformFeeRecipient", }, { - name: "_platformFeeBps", type: "uint16", + name: "_platformFeeBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -170,19 +170,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -194,5 +183,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts index 593b1a9ae8a..b5c91d37dd1 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -43,36 +43,36 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0x49c5c5b6" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_saleRecipient", type: "address", + name: "_saleRecipient", }, { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint128", + name: "_royaltyBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -200,19 +200,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -227,5 +216,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts index c91ceb8b30e..dd971b7f2f4 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -39,32 +39,32 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0x754b8fe7" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint256", + name: "_royaltyBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -188,19 +188,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -214,5 +203,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts index 1eecf8ddaf0..898c849c688 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -31,24 +31,24 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xb1a14437" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_payees", type: "address[]", + name: "_payees", }, { - name: "_shares", type: "uint256[]", + name: "_shares", }, ] as const; const FN_OUTPUTS = [] as const; @@ -164,19 +164,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -188,5 +177,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts index e5c2007a36a..8159cb1cf0d 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -51,44 +51,44 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xe1591634" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_primarySaleRecipient", type: "address", + name: "_primarySaleRecipient", }, { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint128", + name: "_royaltyBps", }, { - name: "_platformFeeBps", type: "uint128", + name: "_platformFeeBps", }, { - name: "_platformFeeRecipient", type: "address", + name: "_platformFeeRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -224,19 +224,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -253,5 +242,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts index d7bd411370f..68d91821e86 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -43,36 +43,36 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xdfad80a6" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_primarySaleRecipient", type: "address", + name: "_primarySaleRecipient", }, { - name: "_platformFeeRecipient", type: "address", + name: "_platformFeeRecipient", }, { - name: "_platformFeeBps", type: "uint256", + name: "_platformFeeBps", }, ] as const; const FN_OUTPUTS = [] as const; @@ -200,19 +200,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -227,5 +216,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts index 52eae2fe169..c4c449c8056 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -51,44 +51,44 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0xe1591634" as const; const FN_INPUTS = [ { - name: "_defaultAdmin", type: "address", + name: "_defaultAdmin", }, { - name: "_name", type: "string", + name: "_name", }, { - name: "_symbol", type: "string", + name: "_symbol", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_saleRecipient", type: "address", + name: "_saleRecipient", }, { - name: "_royaltyRecipient", type: "address", + name: "_royaltyRecipient", }, { - name: "_royaltyBps", type: "uint128", + name: "_royaltyBps", }, { - name: "_platformFeeBps", type: "uint128", + name: "_platformFeeBps", }, { - name: "_platformFeeRecipient", type: "address", + name: "_platformFeeRecipient", }, ] as const; const FN_OUTPUTS = [] as const; @@ -224,19 +224,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -253,5 +242,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts index 9e6fdd28aa3..2ce2e181c53 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. @@ -43,36 +43,36 @@ export type InitializeParams = WithOverrides<{ export const FN_SELECTOR = "0x7cf43f8d" as const; const FN_INPUTS = [ { - name: "_name", type: "string", + name: "_name", }, { - name: "_contractURI", type: "string", + name: "_contractURI", }, { - name: "_trustedForwarders", type: "address[]", + name: "_trustedForwarders", }, { - name: "_token", type: "address", + name: "_token", }, { - name: "_initialVotingDelay", type: "uint256", + name: "_initialVotingDelay", }, { - name: "_initialVotingPeriod", type: "uint256", + name: "_initialVotingPeriod", }, { - name: "_initialProposalThreshold", type: "uint256", + name: "_initialProposalThreshold", }, { - name: "_initialVoteQuorumFraction", type: "uint256", + name: "_initialVoteQuorumFraction", }, ] as const; const FN_OUTPUTS = [] as const; @@ -200,19 +200,8 @@ export function initialize( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -227,5 +216,16 @@ export function initialize( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts index 62e10b946de..78ca9f193c6 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "payee" function. @@ -16,8 +16,8 @@ export type PayeeParams = { export const FN_SELECTOR = "0x8b83209b" as const; const FN_INPUTS = [ { - name: "index", type: "uint256", + name: "index", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts index 3a1d7c9f2da..ca0a1d2018b 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x00dbe109" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts index c6de9aba5b8..5b08e87a951 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "releasable" function. @@ -16,8 +16,8 @@ export type ReleasableParams = { export const FN_SELECTOR = "0xa3f8eace" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts index 3563fa67f9d..6e4946af5fd 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "released" function. @@ -16,8 +16,8 @@ export type ReleasedParams = { export const FN_SELECTOR = "0x9852595c" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts index ab616ea8dc4..b8a0402e720 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "shares" function. @@ -16,8 +16,8 @@ export type SharesParams = { export const FN_SELECTOR = "0xce7c2ac2" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts index f83e68fedbb..ee0ae7881a6 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe33b7de3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts index e36396a24c7..878318ebe64 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3a98ef39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts index ae168c8df86..10c3a66ef3a 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts index f8170be5ac4..b3bd48606b0 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "release" function. @@ -18,8 +18,8 @@ export type ReleaseParams = WithOverrides<{ export const FN_SELECTOR = "0x19165587" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function release( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.account] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts index 4dec920df54..ac53dea215b 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "codehashVersion" function. @@ -16,14 +16,14 @@ export type CodehashVersionParams = { export const FN_SELECTOR = "0xd70c0ca7" as const; const FN_INPUTS = [ { - name: "codehash", type: "bytes32", + name: "codehash", }, ] as const; const FN_OUTPUTS = [ { - name: "version", type: "uint16", + name: "version", }, ] as const; diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts index bd2994597f1..1fb37500877 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "activateProgram" function. @@ -18,8 +18,8 @@ export type ActivateProgramParams = WithOverrides<{ export const FN_SELECTOR = "0x58c780c2" as const; const FN_INPUTS = [ { - name: "program", type: "address", + name: "program", }, ] as const; const FN_OUTPUTS = [ @@ -124,23 +124,23 @@ export function activateProgram( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.program] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts index ec91e868b68..619043655dc 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts index bf1c111839f..76b4a890529 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deploy" function. @@ -24,20 +24,20 @@ export type DeployParams = WithOverrides<{ export const FN_SELECTOR = "0xa9a8e4e9" as const; const FN_INPUTS = [ { - name: "bytecode", type: "bytes", + name: "bytecode", }, { - name: "initData", type: "bytes", + name: "initData", }, { - name: "initValue", type: "uint256", + name: "initValue", }, { - name: "salt", type: "bytes32", + name: "salt", }, ] as const; const FN_OUTPUTS = [ @@ -151,19 +151,8 @@ export function deploy( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -174,5 +163,16 @@ export function deploy( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts index ec59487b8e8..46f16ea3875 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x094ec830" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts index 73aa2497ff6..0432d51a0f9 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setAppURI" function. @@ -18,8 +18,8 @@ export type SetAppURIParams = WithOverrides<{ export const FN_SELECTOR = "0xfea18082" as const; const FN_INPUTS = [ { - name: "_uri", type: "string", + name: "_uri", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function setAppURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts index 281d0697df8..bc0db42d912 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ProxyDeployed" event. @@ -40,8 +40,8 @@ export type ProxyDeployedEventFilters = Partial<{ */ export function proxyDeployedEvent(filters: ProxyDeployedEventFilters = {}) { return prepareEvent({ - filters, signature: "event ProxyDeployed(address indexed implementation, address proxy, address indexed deployer)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts index 44cf4fe1793..ecf298f13a1 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ProxyDeployedV2" event. @@ -48,8 +48,8 @@ export function proxyDeployedV2Event( filters: ProxyDeployedV2EventFilters = {}, ) { return prepareEvent({ - filters, signature: "event ProxyDeployedV2(address indexed implementation, address indexed proxy, address indexed deployer, bytes32 inputSalt, bytes data, bytes extraData)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts index ce0d0a2c98e..c7eee5a47d3 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deployProxyByImplementation" function. @@ -23,16 +23,16 @@ export type DeployProxyByImplementationParams = WithOverrides<{ export const FN_SELECTOR = "0x11b804ab" as const; const FN_INPUTS = [ { - name: "implementation", type: "address", + name: "implementation", }, { - name: "data", type: "bytes", + name: "data", }, { - name: "salt", type: "bytes32", + name: "salt", }, ] as const; const FN_OUTPUTS = [ @@ -150,19 +150,8 @@ export function deployProxyByImplementation( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -172,5 +161,16 @@ export function deployProxyByImplementation( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts index cf91f261d41..6918e6fc719 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deployProxyByImplementationV2" function. @@ -24,20 +24,20 @@ export type DeployProxyByImplementationV2Params = WithOverrides<{ export const FN_SELECTOR = "0xd057c8b1" as const; const FN_INPUTS = [ { - name: "implementation", type: "address", + name: "implementation", }, { - name: "data", type: "bytes", + name: "data", }, { - name: "salt", type: "bytes32", + name: "salt", }, { - name: "extraData", type: "bytes", + name: "extraData", }, ] as const; const FN_OUTPUTS = [ @@ -159,19 +159,8 @@ export function deployProxyByImplementationV2( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -182,5 +171,16 @@ export function deployProxyByImplementationV2( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts index 756cc6f3e75..a7581368a99 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ContractPublished" event. @@ -42,8 +42,8 @@ export function contractPublishedEvent( filters: ContractPublishedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event ContractPublished(address indexed operator, address indexed publisher, (string contractId, uint256 publishTimestamp, string publishMetadataUri, bytes32 bytecodeHash, address implementation) publishedContract)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts index d5c0c6d5527..3fdc9a44132 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ContractUnpublished" event. @@ -48,8 +48,8 @@ export function contractUnpublishedEvent( filters: ContractUnpublishedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event ContractUnpublished(address indexed operator, address indexed publisher, string indexed contractId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts index f149393f44b..952bbb39f58 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PublisherProfileUpdated" event. @@ -36,8 +36,8 @@ export function publisherProfileUpdatedEvent( filters: PublisherProfileUpdatedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event PublisherProfileUpdated(address indexed publisher, string prevURI, string newURI)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts index f8d9d8c3329..3ebf22f4d5a 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllPublishedContracts" function. @@ -19,36 +19,36 @@ export type GetAllPublishedContractsParams = { export const FN_SELECTOR = "0xaf8db690" as const; const FN_INPUTS = [ { - name: "publisher", type: "address", + name: "publisher", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "published", components: [ { - name: "contractId", type: "string", + name: "contractId", }, { - name: "publishTimestamp", type: "uint256", + name: "publishTimestamp", }, { - name: "publishMetadataUri", type: "string", + name: "publishMetadataUri", }, { - name: "bytecodeHash", type: "bytes32", + name: "bytecodeHash", }, { - name: "implementation", type: "address", + name: "implementation", }, ], - name: "published", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts index 1779b66b970..f75744abb19 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublishedContract" function. @@ -23,40 +23,40 @@ export type GetPublishedContractParams = { export const FN_SELECTOR = "0x7ec047fa" as const; const FN_INPUTS = [ { - name: "publisher", type: "address", + name: "publisher", }, { - name: "contractId", type: "string", + name: "contractId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple", + name: "published", components: [ { - name: "contractId", type: "string", + name: "contractId", }, { - name: "publishTimestamp", type: "uint256", + name: "publishTimestamp", }, { - name: "publishMetadataUri", type: "string", + name: "publishMetadataUri", }, { - name: "bytecodeHash", type: "bytes32", + name: "bytecodeHash", }, { - name: "implementation", type: "address", + name: "implementation", }, ], - name: "published", - type: "tuple", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts index 6a7f3ed3a73..40b31842870 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublishedContractVersions" function. @@ -23,40 +23,40 @@ export type GetPublishedContractVersionsParams = { export const FN_SELECTOR = "0x80251dac" as const; const FN_INPUTS = [ { - name: "publisher", type: "address", + name: "publisher", }, { - name: "contractId", type: "string", + name: "contractId", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "published", components: [ { - name: "contractId", type: "string", + name: "contractId", }, { - name: "publishTimestamp", type: "uint256", + name: "publishTimestamp", }, { - name: "publishMetadataUri", type: "string", + name: "publishMetadataUri", }, { - name: "bytecodeHash", type: "bytes32", + name: "bytecodeHash", }, { - name: "implementation", type: "address", + name: "implementation", }, ], - name: "published", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts index d5cefe1c3f3..e8506e61a6d 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublishedUriFromCompilerUri" function. @@ -19,14 +19,14 @@ export type GetPublishedUriFromCompilerUriParams = { export const FN_SELECTOR = "0x819e992f" as const; const FN_INPUTS = [ { - name: "compilerMetadataUri", type: "string", + name: "compilerMetadataUri", }, ] as const; const FN_OUTPUTS = [ { - name: "publishedMetadataUris", type: "string[]", + name: "publishedMetadataUris", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts index 10f803b6e41..98a7af736c7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublisherProfileUri" function. @@ -19,14 +19,14 @@ export type GetPublisherProfileUriParams = { export const FN_SELECTOR = "0x4f781675" as const; const FN_INPUTS = [ { - name: "publisher", type: "address", + name: "publisher", }, ] as const; const FN_OUTPUTS = [ { - name: "uri", type: "string", + name: "uri", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts index 8eb1035a5ca..27b37ddbe45 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "publishContract" function. @@ -41,28 +41,28 @@ export type PublishContractParams = WithOverrides<{ export const FN_SELECTOR = "0xd50299e6" as const; const FN_INPUTS = [ { - name: "publisher", type: "address", + name: "publisher", }, { - name: "contractId", type: "string", + name: "contractId", }, { - name: "publishMetadataUri", type: "string", + name: "publishMetadataUri", }, { - name: "compilerMetadataUri", type: "string", + name: "compilerMetadataUri", }, { - name: "bytecodeHash", type: "bytes32", + name: "bytecodeHash", }, { - name: "implementation", type: "address", + name: "implementation", }, ] as const; const FN_OUTPUTS = [] as const; @@ -182,19 +182,8 @@ export function publishContract( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -207,5 +196,16 @@ export function publishContract( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts index aa618eedd09..ed3e71f44a2 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPublisherProfileUri" function. @@ -22,12 +22,12 @@ export type SetPublisherProfileUriParams = WithOverrides<{ export const FN_SELECTOR = "0x6e578e54" as const; const FN_INPUTS = [ { - name: "publisher", type: "address", + name: "publisher", }, { - name: "uri", type: "string", + name: "uri", }, ] as const; const FN_OUTPUTS = [] as const; @@ -134,23 +134,23 @@ export function setPublisherProfileUri( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.publisher, resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts index 9c835cfff23..5c5b15fdc91 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "unpublishContract" function. @@ -25,12 +25,12 @@ export type UnpublishContractParams = WithOverrides<{ export const FN_SELECTOR = "0x06eb56cc" as const; const FN_INPUTS = [ { - name: "publisher", type: "address", + name: "publisher", }, { - name: "contractId", type: "string", + name: "contractId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -136,23 +136,23 @@ export function unpublishContract( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.publisher, resolvedOptions.contractId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts index 89bae55fec4..104a865aaff 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RuleCreated" event. @@ -34,8 +34,8 @@ export type RuleCreatedEventFilters = Partial<{ */ export function ruleCreatedEvent(filters: RuleCreatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event RuleCreated(bytes32 indexed ruleId, (bytes32 ruleId, address token, uint8 tokenType, uint256 tokenId, uint256 balance, uint256 score, uint8 ruleType) rule)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts index d49aa30069a..67e1736ab9b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RuleDeleted" event. @@ -34,7 +34,7 @@ export type RuleDeletedEventFilters = Partial<{ */ export function ruleDeletedEvent(filters: RuleDeletedEventFilters = {}) { return prepareEvent({ - filters, signature: "event RuleDeleted(bytes32 indexed ruleId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts index 3058ceb2afd..03a28920054 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RulesEngineOverriden" event. @@ -36,7 +36,7 @@ export function rulesEngineOverridenEvent( filters: RulesEngineOverridenEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event RulesEngineOverriden(address indexed newRulesEngine)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts index ba836cf5188..a89a1d00220 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts @@ -1,45 +1,46 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x1184aef2" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "rules", components: [ { - name: "ruleId", type: "bytes32", + name: "ruleId", }, { - name: "token", type: "address", + name: "token", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "balance", type: "uint256", + name: "balance", }, { - name: "score", type: "uint256", + name: "score", }, { - name: "ruleType", type: "uint8", + name: "ruleType", }, ], - name: "rules", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts index 5258456d62a..f374d148564 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts @@ -1,15 +1,16 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa7145eb4" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { - name: "rulesEngineAddress", type: "address", + name: "rulesEngineAddress", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts index 118ea4765b4..5e5b14f615f 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getScore" function. @@ -19,14 +19,14 @@ export type GetScoreParams = { export const FN_SELECTOR = "0xd47875d0" as const; const FN_INPUTS = [ { - name: "_tokenOwner", type: "address", + name: "_tokenOwner", }, ] as const; const FN_OUTPUTS = [ { - name: "score", type: "uint256", + name: "score", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts index 708421fe18d..8f2dde241dd 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createRuleMultiplicative" function. @@ -27,32 +27,32 @@ export type CreateRuleMultiplicativeParams = WithOverrides<{ export const FN_SELECTOR = "0x1e2e9cb5" as const; const FN_INPUTS = [ { + type: "tuple", + name: "rule", components: [ { - name: "token", type: "address", + name: "token", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "scorePerOwnedToken", type: "uint256", + name: "scorePerOwnedToken", }, ], - name: "rule", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "ruleId", type: "bytes32", + name: "ruleId", }, ] as const; @@ -155,23 +155,23 @@ export function createRuleMultiplicative( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.rule] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts index ea16c30dc1f..846a085d5b5 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createRuleThreshold" function. @@ -28,36 +28,36 @@ export type CreateRuleThresholdParams = WithOverrides<{ export const FN_SELECTOR = "0x1022a25e" as const; const FN_INPUTS = [ { + type: "tuple", + name: "rule", components: [ { - name: "token", type: "address", + name: "token", }, { - name: "tokenType", type: "uint8", + name: "tokenType", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, { - name: "balance", type: "uint256", + name: "balance", }, { - name: "score", type: "uint256", + name: "score", }, ], - name: "rule", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "ruleId", type: "bytes32", + name: "ruleId", }, ] as const; @@ -156,23 +156,23 @@ export function createRuleThreshold( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.rule] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts index 31f0de9b86c..605a10a3feb 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deleteRule" function. @@ -18,8 +18,8 @@ export type DeleteRuleParams = WithOverrides<{ export const FN_SELECTOR = "0x9d907761" as const; const FN_INPUTS = [ { - name: "ruleId", type: "bytes32", + name: "ruleId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function deleteRule( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.ruleId] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts index b42aa90b0a3..704af13404f 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRulesEngineOverride" function. @@ -21,8 +21,8 @@ export type SetRulesEngineOverrideParams = WithOverrides<{ export const FN_SELECTOR = "0x0eb0adb6" as const; const FN_INPUTS = [ { - name: "_rulesEngineAddress", type: "address", + name: "_rulesEngineAddress", }, ] as const; const FN_OUTPUTS = [] as const; @@ -126,23 +126,23 @@ export function setRulesEngineOverride( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.rulesEngineAddress] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts index 103ba42602c..06a90ad62ff 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RequestExecuted" event. @@ -42,8 +42,8 @@ export function requestExecutedEvent( filters: RequestExecutedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event RequestExecuted(address indexed user, address indexed signer, (uint128 validityStartTimestamp, uint128 validityEndTimestamp, bytes32 uid, bytes data) _req)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts index 416b10cdeb4..fde6a54b1a7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. @@ -26,40 +26,40 @@ export type VerifyParams = { export const FN_SELECTOR = "0xc4376dd7" as const; const FN_INPUTS = [ { + type: "tuple", + name: "req", components: [ { - name: "validityStartTimestamp", type: "uint128", + name: "validityStartTimestamp", }, { - name: "validityEndTimestamp", type: "uint128", + name: "validityEndTimestamp", }, { - name: "uid", type: "bytes32", + name: "uid", }, { - name: "data", type: "bytes", + name: "data", }, ], - name: "req", - type: "tuple", }, { - name: "signature", type: "bytes", + name: "signature", }, ] as const; const FN_OUTPUTS = [ { - name: "success", type: "bool", + name: "success", }, { - name: "signer", type: "address", + name: "signer", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts index 8ca983f087a..db4ca066a73 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFeeInfo" function. @@ -17,22 +17,22 @@ export type GetFeeInfoParams = { export const FN_SELECTOR = "0x85b49ad0" as const; const FN_INPUTS = [ { - name: "_proxy", type: "address", + name: "_proxy", }, { - name: "_type", type: "uint256", + name: "_type", }, ] as const; const FN_OUTPUTS = [ { - name: "recipient", type: "address", + name: "recipient", }, { - name: "bps", type: "uint256", + name: "bps", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts index a7bd17c4176..40dd0fc17f8 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Added" event. @@ -46,8 +46,8 @@ export type AddedEventFilters = Partial<{ */ export function addedEvent(filters: AddedEventFilters = {}) { return prepareEvent({ - filters, signature: "event Added(address indexed deployer, address indexed deployment, uint256 indexed chainId, string metadataUri)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts index 8daf7a56c1b..66fb7bdc924 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Deleted" event. @@ -46,8 +46,8 @@ export type DeletedEventFilters = Partial<{ */ export function deletedEvent(filters: DeletedEventFilters = {}) { return prepareEvent({ - filters, signature: "event Deleted(address indexed deployer, address indexed deployment, uint256 indexed chainId)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts index d180091e31d..546a25e9dc1 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "count" function. @@ -16,14 +16,14 @@ export type CountParams = { export const FN_SELECTOR = "0x05d85eda" as const; const FN_INPUTS = [ { - name: "_deployer", type: "address", + name: "_deployer", }, ] as const; const FN_OUTPUTS = [ { - name: "deploymentCount", type: "uint256", + name: "deploymentCount", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts index d2e648e1b3c..43d29ec079f 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAll" function. @@ -16,28 +16,28 @@ export type GetAllParams = { export const FN_SELECTOR = "0xeb077342" as const; const FN_INPUTS = [ { - name: "_deployer", type: "address", + name: "_deployer", }, ] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "allDeployments", components: [ { - name: "deploymentAddress", type: "address", + name: "deploymentAddress", }, { - name: "chainId", type: "uint256", + name: "chainId", }, { - name: "metadataURI", type: "string", + name: "metadataURI", }, ], - name: "allDeployments", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts index 7fa8bc8d256..b51c3652736 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMetadataUri" function. @@ -20,18 +20,18 @@ export type GetMetadataUriParams = { export const FN_SELECTOR = "0xf4c2012d" as const; const FN_INPUTS = [ { - name: "_chainId", type: "uint256", + name: "_chainId", }, { - name: "_deployment", type: "address", + name: "_deployment", }, ] as const; const FN_OUTPUTS = [ { - name: "metadataUri", type: "string", + name: "metadataUri", }, ] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts index 16f44e82e66..1de66810ea7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "add" function. @@ -27,20 +27,20 @@ export type AddParams = WithOverrides<{ export const FN_SELECTOR = "0x26c5b516" as const; const FN_INPUTS = [ { - name: "_deployer", type: "address", + name: "_deployer", }, { - name: "_deployment", type: "address", + name: "_deployment", }, { - name: "_chainId", type: "uint256", + name: "_chainId", }, { - name: "metadataUri", type: "string", + name: "metadataUri", }, ] as const; const FN_OUTPUTS = [] as const; @@ -150,19 +150,8 @@ export function add( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -173,5 +162,16 @@ export function add( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts index 49949360631..58b3d8ee112 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "remove" function. @@ -23,16 +23,16 @@ export type RemoveParams = WithOverrides<{ export const FN_SELECTOR = "0x59e5fd04" as const; const FN_INPUTS = [ { - name: "_deployer", type: "address", + name: "_deployer", }, { - name: "_deployment", type: "address", + name: "_deployment", }, { - name: "_chainId", type: "uint256", + name: "_chainId", }, ] as const; const FN_OUTPUTS = [] as const; @@ -138,19 +138,8 @@ export function remove( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -160,5 +149,16 @@ export function remove( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts index 0a11a4eda0d..e05dc87b740 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts index ff69d4ffd6b..23912c3e211 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts index 3b6693d9579..9dcc8a6a8fa 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts index 005bdc41676..73284334c06 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. @@ -18,8 +18,8 @@ export type SetContractURIParams = WithOverrides<{ export const FN_SELECTOR = "0x938e3d7b" as const; const FN_INPUTS = [ { - name: "_uri", type: "string", + name: "_uri", }, ] as const; const FN_OUTPUTS = [] as const; @@ -117,23 +117,23 @@ export function setContractURI( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.uri] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts index 17b942605db..a5b2de9ba3d 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactInput" function. @@ -19,18 +19,18 @@ export type QuoteExactInputParams = WithOverrides<{ export const FN_SELECTOR = "0xcdca1753" as const; const FN_INPUTS = [ { - name: "path", type: "bytes", + name: "path", }, { - name: "amountIn", type: "uint256", + name: "amountIn", }, ] as const; const FN_OUTPUTS = [ { - name: "amountOut", type: "uint256", + name: "amountOut", }, ] as const; @@ -130,23 +130,23 @@ export function quoteExactInput( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.path, resolvedOptions.amountIn] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts index d7c41d1dd30..e2f2bd0b25f 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactInputSingle" function. @@ -25,30 +25,30 @@ export type QuoteExactInputSingleParams = WithOverrides<{ export const FN_SELECTOR = "0xf7729d43" as const; const FN_INPUTS = [ { - name: "tokenIn", type: "address", + name: "tokenIn", }, { - name: "tokenOut", type: "address", + name: "tokenOut", }, { - name: "fee", type: "uint24", + name: "fee", }, { - name: "amountIn", type: "uint256", + name: "amountIn", }, { - name: "sqrtPriceLimitX96", type: "uint160", + name: "sqrtPriceLimitX96", }, ] as const; const FN_OUTPUTS = [ { - name: "amountOut", type: "uint256", + name: "amountOut", }, ] as const; @@ -167,19 +167,8 @@ export function quoteExactInputSingle( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -191,5 +180,16 @@ export function quoteExactInputSingle( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts index 256a91b26a4..e70abf27fa9 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactOutput" function. @@ -22,18 +22,18 @@ export type QuoteExactOutputParams = WithOverrides<{ export const FN_SELECTOR = "0x2f80bb1d" as const; const FN_INPUTS = [ { - name: "path", type: "bytes", + name: "path", }, { - name: "amountOut", type: "uint256", + name: "amountOut", }, ] as const; const FN_OUTPUTS = [ { - name: "amountIn", type: "uint256", + name: "amountIn", }, ] as const; @@ -133,23 +133,23 @@ export function quoteExactOutput( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.path, resolvedOptions.amountOut] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts index 664bccb2532..40571bef183 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactOutputSingle" function. @@ -28,30 +28,30 @@ export type QuoteExactOutputSingleParams = WithOverrides<{ export const FN_SELECTOR = "0x30d07f21" as const; const FN_INPUTS = [ { - name: "tokenIn", type: "address", + name: "tokenIn", }, { - name: "tokenOut", type: "address", + name: "tokenOut", }, { - name: "fee", type: "uint24", + name: "fee", }, { - name: "amountOut", type: "uint256", + name: "amountOut", }, { - name: "sqrtPriceLimitX96", type: "uint160", + name: "sqrtPriceLimitX96", }, ] as const; const FN_OUTPUTS = [ { - name: "amountIn", type: "uint256", + name: "amountIn", }, ] as const; @@ -172,19 +172,8 @@ export function quoteExactOutputSingle( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -196,5 +185,16 @@ export function quoteExactOutputSingle( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts index 2122be61c0b..62b9d01cce6 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactInput" function. @@ -28,36 +28,36 @@ export type ExactInputParams = WithOverrides<{ export const FN_SELECTOR = "0xc04b8d59" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "path", type: "bytes", + name: "path", }, { - name: "recipient", type: "address", + name: "recipient", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "amountIn", type: "uint256", + name: "amountIn", }, { - name: "amountOutMinimum", type: "uint256", + name: "amountOutMinimum", }, ], - name: "params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "amountOut", type: "uint256", + name: "amountOut", }, ] as const; @@ -154,23 +154,23 @@ export function exactInput( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts index 16ef0dc642e..7e3abba3449 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactInputSingle" function. @@ -31,48 +31,48 @@ export type ExactInputSingleParams = WithOverrides<{ export const FN_SELECTOR = "0x414bf389" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "tokenIn", type: "address", + name: "tokenIn", }, { - name: "tokenOut", type: "address", + name: "tokenOut", }, { - name: "fee", type: "uint24", + name: "fee", }, { - name: "recipient", type: "address", + name: "recipient", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "amountIn", type: "uint256", + name: "amountIn", }, { - name: "amountOutMinimum", type: "uint256", + name: "amountOutMinimum", }, { - name: "sqrtPriceLimitX96", type: "uint160", + name: "sqrtPriceLimitX96", }, ], - name: "params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "amountOut", type: "uint256", + name: "amountOut", }, ] as const; @@ -169,23 +169,23 @@ export function exactInputSingle( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts index 940aa4c4349..dcbeb08a4a1 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactOutput" function. @@ -28,36 +28,36 @@ export type ExactOutputParams = WithOverrides<{ export const FN_SELECTOR = "0xf28c0498" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "path", type: "bytes", + name: "path", }, { - name: "recipient", type: "address", + name: "recipient", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "amountOut", type: "uint256", + name: "amountOut", }, { - name: "amountInMaximum", type: "uint256", + name: "amountInMaximum", }, ], - name: "params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "amountIn", type: "uint256", + name: "amountIn", }, ] as const; @@ -154,23 +154,23 @@ export function exactOutput( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts index ab60bfb7b4c..da33aaa7b58 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactOutputSingle" function. @@ -31,48 +31,48 @@ export type ExactOutputSingleParams = WithOverrides<{ export const FN_SELECTOR = "0xdb3e2198" as const; const FN_INPUTS = [ { + type: "tuple", + name: "params", components: [ { - name: "tokenIn", type: "address", + name: "tokenIn", }, { - name: "tokenOut", type: "address", + name: "tokenOut", }, { - name: "fee", type: "uint24", + name: "fee", }, { - name: "recipient", type: "address", + name: "recipient", }, { - name: "deadline", type: "uint256", + name: "deadline", }, { - name: "amountOut", type: "uint256", + name: "amountOut", }, { - name: "amountInMaximum", type: "uint256", + name: "amountInMaximum", }, { - name: "sqrtPriceLimitX96", type: "uint160", + name: "sqrtPriceLimitX96", }, ], - name: "params", - type: "tuple", }, ] as const; const FN_OUTPUTS = [ { - name: "amountIn", type: "uint256", + name: "amountIn", }, ] as const; @@ -171,23 +171,23 @@ export function exactOutputSingle( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts index 30f6cb7997e..7ecf70ce4c8 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnerChanged" event. @@ -40,8 +40,8 @@ export type OwnerChangedEventFilters = Partial<{ */ export function ownerChangedEvent(filters: OwnerChangedEventFilters = {}) { return prepareEvent({ - filters, signature: "event OwnerChanged(address indexed oldOwner, address indexed newOwner)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts index 4cd77819ff1..e58a4baf468 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PoolCreated" event. @@ -46,8 +46,8 @@ export type PoolCreatedEventFilters = Partial<{ */ export function poolCreatedEvent(filters: PoolCreatedEventFilters = {}) { return prepareEvent({ - filters, signature: "event PoolCreated(address indexed token0, address indexed token1, uint24 fee, int24 tickLower, int24 tickUpper, uint128 liquidity, address indexed sender)", + filters, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts index feed9aec478..255f43c261a 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "feeAmountTickSpacing" function. @@ -16,8 +16,8 @@ export type FeeAmountTickSpacingParams = { export const FN_SELECTOR = "0x22afcccb" as const; const FN_INPUTS = [ { - name: "fee", type: "uint24", + name: "fee", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts index a176b876892..0ba8694755b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPool" function. @@ -18,22 +18,22 @@ export type GetPoolParams = { export const FN_SELECTOR = "0x1698ee82" as const; const FN_INPUTS = [ { - name: "tokenA", type: "address", + name: "tokenA", }, { - name: "tokenB", type: "address", + name: "tokenB", }, { - name: "fee", type: "uint24", + name: "fee", }, ] as const; const FN_OUTPUTS = [ { - name: "pool", type: "address", + name: "pool", }, ] as const; diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts index c4a193d970e..5c788ce980c 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts index 3a0e4d3e1bb..9fb6af4ed9a 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPool" function. @@ -20,22 +20,22 @@ export type CreatePoolParams = WithOverrides<{ export const FN_SELECTOR = "0xa1671295" as const; const FN_INPUTS = [ { - name: "tokenA", type: "address", + name: "tokenA", }, { - name: "tokenB", type: "address", + name: "tokenB", }, { - name: "fee", type: "uint24", + name: "fee", }, ] as const; const FN_OUTPUTS = [ { - name: "pool", type: "address", + name: "pool", }, ] as const; @@ -142,19 +142,8 @@ export function createPool( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -164,5 +153,16 @@ export function createPool( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts index c0f8917eedb..c8e4e71ccd4 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "enableFeeAmount" function. @@ -22,12 +22,12 @@ export type EnableFeeAmountParams = WithOverrides<{ export const FN_SELECTOR = "0x8a7c195f" as const; const FN_INPUTS = [ { - name: "fee", type: "uint24", + name: "fee", }, { - name: "tickSpacing", type: "int24", + name: "tickSpacing", }, ] as const; const FN_OUTPUTS = [] as const; @@ -128,23 +128,23 @@ export function enableFeeAmount( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.fee, resolvedOptions.tickSpacing] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts index 95cdc0516de..6e4c1ba930b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setOwner" function. @@ -18,8 +18,8 @@ export type SetOwnerParams = WithOverrides<{ export const FN_SELECTOR = "0x13af4035" as const; const FN_INPUTS = [ { - name: "newOwner", type: "address", + name: "newOwner", }, ] as const; const FN_OUTPUTS = [] as const; @@ -115,23 +115,23 @@ export function setOwner( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.newOwner] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts index b62fc51aefe..f4a9b84da2c 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exists" function. @@ -16,8 +16,8 @@ export type ExistsParams = { export const FN_SELECTOR = "0x4f558e79" as const; const FN_INPUTS = [ { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts index f4660917967..e108e47b49f 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMany" function. @@ -17,18 +17,18 @@ export type GetManyParams = { export const FN_SELECTOR = "0x1bd8cc1a" as const; const FN_INPUTS = [ { - name: "keys", type: "string[]", + name: "keys", }, { - name: "tokenId", type: "uint256", + name: "tokenId", }, ] as const; const FN_OUTPUTS = [ { - name: "values", type: "string[]", + name: "values", }, ] as const; diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts index 78b61ec5e6f..1f4ff5195b1 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "namehash" function. @@ -16,14 +16,14 @@ export type NamehashParams = { export const FN_SELECTOR = "0x276fabb1" as const; const FN_INPUTS = [ { - name: "labels", type: "string[]", + name: "labels", }, ] as const; const FN_OUTPUTS = [ { - name: "hash", type: "uint256", + name: "hash", }, ] as const; diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts index b6e9564a151..b86c1c4bd8a 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "reverseNameOf" function. @@ -16,14 +16,14 @@ export type ReverseNameOfParams = { export const FN_SELECTOR = "0xbebec6b4" as const; const FN_INPUTS = [ { - name: "addr", type: "address", + name: "addr", }, ] as const; const FN_OUTPUTS = [ { - name: "reverseUri", type: "string", + name: "reverseUri", }, ] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts index 060fe07c78a..ec04f2d479a 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xdeaaa7cc" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts index 1a0672fb8cc..6734c8b2303 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xdd4e2ba5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts index 6f22db94aec..4325be6c282 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts @@ -1,53 +1,54 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcceb68f5" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { + type: "tuple[]", + name: "allProposals", components: [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, { - name: "proposer", type: "address", + name: "proposer", }, { - name: "targets", type: "address[]", + name: "targets", }, { - name: "values", type: "uint256[]", + name: "values", }, { - name: "signatures", type: "string[]", + name: "signatures", }, { - name: "calldatas", type: "bytes[]", + name: "calldatas", }, { - name: "startBlock", type: "uint256", + name: "startBlock", }, { - name: "endBlock", type: "uint256", + name: "endBlock", }, { - name: "description", type: "string", + name: "description", }, ], - name: "allProposals", - type: "tuple[]", }, ] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts index 9a0da285da8..c2b66c0be2a 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getVotes" function. @@ -20,12 +20,12 @@ export type GetVotesParams = { export const FN_SELECTOR = "0xeb9019d4" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, { - name: "blockNumber", type: "uint256", + name: "blockNumber", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts index dfbae849b8b..f8eca80d4bf 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getVotesWithParams" function. @@ -21,16 +21,16 @@ export type GetVotesWithParamsParams = { export const FN_SELECTOR = "0x9a802a6d" as const; const FN_INPUTS = [ { - name: "account", type: "address", + name: "account", }, { - name: "blockNumber", type: "uint256", + name: "blockNumber", }, { - name: "params", type: "bytes", + name: "params", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts index eacb9d77023..5815f1c8684 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasVoted" function. @@ -20,12 +20,12 @@ export type HasVotedParams = { export const FN_SELECTOR = "0x43859632" as const; const FN_INPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, { - name: "account", type: "address", + name: "account", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts index 5259840fe3c..87e81f3c2ec 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hashProposal" function. @@ -25,20 +25,20 @@ export type HashProposalParams = { export const FN_SELECTOR = "0xc59057e4" as const; const FN_INPUTS = [ { - name: "targets", type: "address[]", + name: "targets", }, { - name: "values", type: "uint256[]", + name: "values", }, { - name: "calldatas", type: "bytes[]", + name: "calldatas", }, { - name: "descriptionHash", type: "bytes32", + name: "descriptionHash", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts index aa55ad0e79c..e0640658526 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposalDeadline" function. @@ -19,8 +19,8 @@ export type ProposalDeadlineParams = { export const FN_SELECTOR = "0xc01f9e37" as const; const FN_INPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts index d1b77a0eeca..a8d1ccb5c76 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x5977e0f2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts index ecdd310f479..593f248d154 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposalSnapshot" function. @@ -19,8 +19,8 @@ export type ProposalSnapshotParams = { export const FN_SELECTOR = "0x2d63f693" as const; const FN_INPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts index ced5cabd45f..098c4dc79c8 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb58131b0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts index 9220e63ab34..5bc8c234e58 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposalVotes" function. @@ -19,22 +19,22 @@ export type ProposalVotesParams = { export const FN_SELECTOR = "0x544ffc9c" as const; const FN_INPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, ] as const; const FN_OUTPUTS = [ { - name: "againstVotes", type: "uint256", + name: "againstVotes", }, { - name: "forVotes", type: "uint256", + name: "forVotes", }, { - name: "abstainVotes", type: "uint256", + name: "abstainVotes", }, ] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts index 04fe41b8e1b..3c89313b550 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposals" function. @@ -16,30 +16,30 @@ export type ProposalsParams = { export const FN_SELECTOR = "0x013cf08b" as const; const FN_INPUTS = [ { - name: "key", type: "uint256", + name: "key", }, ] as const; const FN_OUTPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, { - name: "proposer", type: "address", + name: "proposer", }, { - name: "startBlock", type: "uint256", + name: "startBlock", }, { - name: "endBlock", type: "uint256", + name: "endBlock", }, { - name: "description", type: "string", + name: "description", }, ] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts index 8ca849b0c87..b2de58c41b0 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quorum" function. @@ -19,8 +19,8 @@ export type QuorumParams = { export const FN_SELECTOR = "0xf8ce560a" as const; const FN_INPUTS = [ { - name: "blockNumber", type: "uint256", + name: "blockNumber", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts index cf3126a06d1..56636d20aee 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x97c3d334" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts index 57a47c9faa2..15bcb254830 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "state" function. @@ -19,8 +19,8 @@ export type StateParams = { export const FN_SELECTOR = "0x3e4f49e6" as const; const FN_INPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, ] as const; const FN_OUTPUTS = [ diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts index 60c0d33089b..02e70e2d6c7 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts index 51689a20a6c..eff242b13e6 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3932abb1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts index 5b96e7a33aa..35de8cb92c0 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x02a251a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts index dab01bb13e5..f7c42629976 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVote" function. @@ -22,12 +22,12 @@ export type CastVoteParams = WithOverrides<{ export const FN_SELECTOR = "0x56781388" as const; const FN_INPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, { - name: "support", type: "uint8", + name: "support", }, ] as const; const FN_OUTPUTS = [ @@ -130,23 +130,23 @@ export function castVote( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.proposalId, resolvedOptions.support] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts index e09620b20f8..6322bdf5e39 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteBySig" function. @@ -25,24 +25,24 @@ export type CastVoteBySigParams = WithOverrides<{ export const FN_SELECTOR = "0x3bccf4fd" as const; const FN_INPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, { - name: "support", type: "uint8", + name: "support", }, { - name: "v", type: "uint8", + name: "v", }, { - name: "r", type: "bytes32", + name: "r", }, { - name: "s", type: "bytes32", + name: "s", }, ] as const; const FN_OUTPUTS = [ @@ -162,19 +162,8 @@ export function castVoteBySig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -186,5 +175,16 @@ export function castVoteBySig( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts index 48027e963a1..4d5af34b63c 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteWithReason" function. @@ -23,16 +23,16 @@ export type CastVoteWithReasonParams = WithOverrides<{ export const FN_SELECTOR = "0x7b3c71d3" as const; const FN_INPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, { - name: "support", type: "uint8", + name: "support", }, { - name: "reason", type: "string", + name: "reason", }, ] as const; const FN_OUTPUTS = [ @@ -146,19 +146,8 @@ export function castVoteWithReason( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -168,5 +157,16 @@ export function castVoteWithReason( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts index 622e146f4e5..0c625832619 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteWithReasonAndParams" function. @@ -24,20 +24,20 @@ export type CastVoteWithReasonAndParamsParams = WithOverrides<{ export const FN_SELECTOR = "0x5f398a14" as const; const FN_INPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, { - name: "support", type: "uint8", + name: "support", }, { - name: "reason", type: "string", + name: "reason", }, { - name: "params", type: "bytes", + name: "params", }, ] as const; const FN_OUTPUTS = [ @@ -159,19 +159,8 @@ export function castVoteWithReasonAndParams( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -182,5 +171,16 @@ export function castVoteWithReasonAndParams( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts index 055e6ebb49f..20122e5859d 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteWithReasonAndParamsBySig" function. @@ -27,32 +27,32 @@ export type CastVoteWithReasonAndParamsBySigParams = WithOverrides<{ export const FN_SELECTOR = "0x03420181" as const; const FN_INPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, { - name: "support", type: "uint8", + name: "support", }, { - name: "reason", type: "string", + name: "reason", }, { - name: "params", type: "bytes", + name: "params", }, { - name: "v", type: "uint8", + name: "v", }, { - name: "r", type: "bytes32", + name: "r", }, { - name: "s", type: "bytes32", + name: "s", }, ] as const; const FN_OUTPUTS = [ @@ -186,19 +186,8 @@ export function castVoteWithReasonAndParamsBySig( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -212,5 +201,16 @@ export function castVoteWithReasonAndParamsBySig( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts index 74443dd4c8f..4f94b043506 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "execute" function. @@ -27,20 +27,20 @@ export type ExecuteParams = WithOverrides<{ export const FN_SELECTOR = "0x2656227d" as const; const FN_INPUTS = [ { - name: "targets", type: "address[]", + name: "targets", }, { - name: "values", type: "uint256[]", + name: "values", }, { - name: "calldatas", type: "bytes[]", + name: "calldatas", }, { - name: "descriptionHash", type: "bytes32", + name: "descriptionHash", }, ] as const; const FN_OUTPUTS = [ @@ -154,19 +154,8 @@ export function execute( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -177,5 +166,16 @@ export function execute( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts index 85ecd849904..abc8a1f168c 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "propose" function. @@ -27,26 +27,26 @@ export type ProposeParams = WithOverrides<{ export const FN_SELECTOR = "0x7d5e81e2" as const; const FN_INPUTS = [ { - name: "targets", type: "address[]", + name: "targets", }, { - name: "values", type: "uint256[]", + name: "values", }, { - name: "calldatas", type: "bytes[]", + name: "calldatas", }, { - name: "description", type: "string", + name: "description", }, ] as const; const FN_OUTPUTS = [ { - name: "proposalId", type: "uint256", + name: "proposalId", }, ] as const; @@ -155,19 +155,8 @@ export function propose( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -178,5 +167,16 @@ export function propose( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts index 2097326cb98..edd2ad5a3f3 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "relay" function. @@ -20,16 +20,16 @@ export type RelayParams = WithOverrides<{ export const FN_SELECTOR = "0xc28bc2fa" as const; const FN_INPUTS = [ { - name: "target", type: "address", + name: "target", }, { - name: "value", type: "uint256", + name: "value", }, { - name: "data", type: "bytes", + name: "data", }, ] as const; const FN_OUTPUTS = [] as const; @@ -135,19 +135,8 @@ export function relay( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [ @@ -157,5 +146,16 @@ export function relay( ] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts index d0456bd84d2..9eac196fd77 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setProposalThreshold" function. @@ -21,8 +21,8 @@ export type SetProposalThresholdParams = WithOverrides<{ export const FN_SELECTOR = "0xece40cc1" as const; const FN_INPUTS = [ { - name: "newProposalThreshold", type: "uint256", + name: "newProposalThreshold", }, ] as const; const FN_OUTPUTS = [] as const; @@ -124,23 +124,23 @@ export function setProposalThreshold( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.newProposalThreshold] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts index 32a50d073d2..313d949b8c2 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setVotingDelay" function. @@ -21,8 +21,8 @@ export type SetVotingDelayParams = WithOverrides<{ export const FN_SELECTOR = "0x70b0f660" as const; const FN_INPUTS = [ { - name: "newVotingDelay", type: "uint256", + name: "newVotingDelay", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setVotingDelay( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.newVotingDelay] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts index eae17976887..d74fc333fcb 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setVotingPeriod" function. @@ -21,8 +21,8 @@ export type SetVotingPeriodParams = WithOverrides<{ export const FN_SELECTOR = "0xea0217cf" as const; const FN_INPUTS = [ { - name: "newVotingPeriod", type: "uint256", + name: "newVotingPeriod", }, ] as const; const FN_OUTPUTS = [] as const; @@ -120,23 +120,23 @@ export function setVotingPeriod( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.newVotingPeriod] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts index 3431c12a84b..819963e4608 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateQuorumNumerator" function. @@ -21,8 +21,8 @@ export type UpdateQuorumNumeratorParams = WithOverrides<{ export const FN_SELECTOR = "0x06f3f9e6" as const; const FN_INPUTS = [ { - name: "newQuorumNumerator", type: "uint256", + name: "newQuorumNumerator", }, ] as const; const FN_OUTPUTS = [] as const; @@ -124,23 +124,23 @@ export function updateQuorumNumerator( }); return prepareContractCall({ - accessList: async () => (await asyncOptions()).overrides?.accessList, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, contract: options.contract, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - nonce: async () => (await asyncOptions()).overrides?.nonce, params: async () => { const resolvedOptions = await asyncOptions(); return [resolvedOptions.newQuorumNumerator] as const; }, value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, }); } diff --git a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts index 68fc917edd2..48964fd99a3 100644 --- a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts +++ b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ContractDeployed" event. @@ -48,8 +48,8 @@ export function contractDeployedEvent( filters: ContractDeployedEventFilters = {}, ) { return prepareEvent({ - filters, signature: "event ContractDeployed(address indexed deployerAddress, bytes32 indexed bytecodeHash, address indexed contractAddress)", + filters, }); } From 9ed4e642ae0d77d9438d451bf0bc7a2b7a7510b9 Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Tue, 15 Jul 2025 07:27:26 +0000 Subject: [PATCH 12/32] Update ABI and deployment --- .../abis/assets/ERC20AssetEntrypoint.json | 5 +- .../generate/abis/assets/RewardLocker.json | 6 +- packages/thirdweb/src/assets/constants.ts | 4 +- .../events/AssetRewardClaimed.ts | 24 ++++++++ .../{getRewardPosition.ts => getReward.ts} | 60 +++++++++---------- .../write/{claimRewards.ts => claimReward.ts} | 52 ++++++++-------- ...RewardsCollected.ts => RewardCollected.ts} | 16 ++--- .../{collectRewards.ts => collectReward.ts} | 60 +++++++++---------- .../RewardLocker/write/lockPosition.ts | 24 ++++---- 9 files changed, 137 insertions(+), 114 deletions(-) create mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetRewardClaimed.ts rename packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/{getRewardPosition.ts => getReward.ts} (57%) rename packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/{claimRewards.ts => claimReward.ts} (67%) rename packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/{RewardsCollected.ts => RewardCollected.ts} (59%) rename packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/{collectRewards.ts => collectReward.ts} (65%) diff --git a/packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json b/packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json index af7e9d1dad5..b38edcbff47 100644 --- a/packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json +++ b/packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json @@ -3,7 +3,7 @@ "function addImplementation((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, bool isDefault)", "function buyAsset(address asset, (address recipient, address referrer, address tokenIn, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes hookData) params) payable returns (uint256 amountIn, uint256 amountOut)", "function cancelOwnershipHandover() payable", - "function claimRewards(address asset)", + "function claimReward(address asset)", "function completeOwnershipHandover(address pendingOwner) payable", "function createAsset(address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) createParams) returns (address asset)", "function createAssetById(bytes32 contractId, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) returns (address asset)", @@ -12,8 +12,8 @@ "function distributeAsset(address asset, (uint256 amount, address recipient)[] contents) payable", "function getAirdrop() view returns (address airdrop)", "function getImplementation(bytes32 contractId) view returns ((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config)", + "function getReward(address asset) view returns ((address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps))", "function getRewardLocker() view returns (address rewardLocker)", - "function getRewardPosition(address asset) view returns ((address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps))", "function getRouter() view returns (address router)", "function guardSalt(bytes32 salt, address creator, bytes contractInitData, bytes hookInitData) view returns (bytes32)", "function initialize(address owner, address router, address rewardLocker, address airdrop)", @@ -34,6 +34,7 @@ "event AirdropUpdated(address airdrop)", "event AssetCreated(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", "event AssetDistributed(address asset, uint256 recipientCount, uint256 totalAmount)", + "event AssetRewardClaimed(address asset, address claimer)", "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes createHookData)", "event Initialized(uint64 version)", "event OwnershipHandoverCanceled(address indexed pendingOwner)", diff --git a/packages/thirdweb/scripts/generate/abis/assets/RewardLocker.json b/packages/thirdweb/scripts/generate/abis/assets/RewardLocker.json index 4d66d45475b..8de59c3cb79 100644 --- a/packages/thirdweb/scripts/generate/abis/assets/RewardLocker.json +++ b/packages/thirdweb/scripts/generate/abis/assets/RewardLocker.json @@ -1,16 +1,16 @@ [ "constructor(address _feeManager, address _v3PositionManager, address _v4PositionManager)", - "function collectRewards(address owner, address asset) returns (address token0, address token1, uint256 amount0, uint256 amount1)", + "function collectReward(address owner, address asset) returns (address token0, address token1, uint256 amount0, uint256 amount1)", "function feeManager() view returns (address)", "function lockPosition(address asset, address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps)", "function positions(address owner, address asset) view returns (address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps)", "function v3PositionManager() view returns (address)", "function v4PositionManager() view returns (address)", "event PositionLocked(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, address recipient, address referrer)", - "event RewardsCollected(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, uint256 amount0, uint256 amount1)", + "event RewardCollected(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, uint256 amount0, uint256 amount1)", "error InvalidPosition()", "error InvalidPositionManager()", "error InvalidReferrerBps()", "error InvalidRewardRecipient()", "error TokenAlreadyLocked()" -] +] \ No newline at end of file diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index 47d2c9e2d69..f50fa2b0b2c 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -8,10 +8,10 @@ export const DEFAULT_SALT = "0x"; export const IMPLEMENTATIONS: Record> = { 8453: { - AssetEntrypointERC20: "0xe7caeE8a2df994cE00b575eE56A3c9DecB95028D", + AssetEntrypointERC20: "0x412c90c39CbBD6A2fFDbe9bF9Aa6Ad87717f487a", }, 84532: { - AssetEntrypointERC20: "0xa34ed67f2a327D8E87E3dFBcc7b4927df7C418ef", + AssetEntrypointERC20: "0xF4d4dE479533Ee95B2b1EC10B682D4BC363E6A97", }, }; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetRewardClaimed.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetRewardClaimed.ts new file mode 100644 index 00000000000..214656ea89d --- /dev/null +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetRewardClaimed.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the AssetRewardClaimed event. + * @returns The prepared event object. + * @extension ASSETS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { assetRewardClaimedEvent } from "thirdweb/extensions/assets"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * assetRewardClaimedEvent() + * ], + * }); + * ``` + */ +export function assetRewardClaimedEvent() { + return prepareEvent({ + signature: "event AssetRewardClaimed(address asset, address claimer)", + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardPosition.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.ts similarity index 57% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardPosition.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.ts index d4ac51a2f52..608e593b41f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardPosition.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.ts @@ -7,13 +7,13 @@ import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "getRewardPosition" function. + * Represents the parameters for the "getReward" function. */ -export type GetRewardPositionParams = { +export type GetRewardParams = { asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; }; -export const FN_SELECTOR = "0x61d74a29" as const; +export const FN_SELECTOR = "0xc00007b0" as const; const FN_INPUTS = [ { type: "address", @@ -49,17 +49,17 @@ const FN_OUTPUTS = [ ] as const; /** - * Checks if the `getRewardPosition` method is supported by the given contract. + * Checks if the `getReward` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `getRewardPosition` method is supported. + * @returns A boolean indicating if the `getReward` method is supported. * @extension ASSETS * @example * ```ts - * import { isGetRewardPositionSupported } from "thirdweb/extensions/assets"; - * const supported = isGetRewardPositionSupported(["0x..."]); + * import { isGetRewardSupported } from "thirdweb/extensions/assets"; + * const supported = isGetRewardSupported(["0x..."]); * ``` */ -export function isGetRewardPositionSupported(availableSelectors: string[]) { +export function isGetRewardSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -67,79 +67,77 @@ export function isGetRewardPositionSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "getRewardPosition" function. - * @param options - The options for the getRewardPosition function. + * Encodes the parameters for the "getReward" function. + * @param options - The options for the getReward function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodeGetRewardPositionParams } from "thirdweb/extensions/assets"; - * const result = encodeGetRewardPositionParams({ + * import { encodeGetRewardParams } from "thirdweb/extensions/assets"; + * const result = encodeGetRewardParams({ * asset: ..., * }); * ``` */ -export function encodeGetRewardPositionParams( - options: GetRewardPositionParams, -) { +export function encodeGetRewardParams(options: GetRewardParams) { return encodeAbiParameters(FN_INPUTS, [options.asset]); } /** - * Encodes the "getRewardPosition" function into a Hex string with its parameters. - * @param options - The options for the getRewardPosition function. + * Encodes the "getReward" function into a Hex string with its parameters. + * @param options - The options for the getReward function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodeGetRewardPosition } from "thirdweb/extensions/assets"; - * const result = encodeGetRewardPosition({ + * import { encodeGetReward } from "thirdweb/extensions/assets"; + * const result = encodeGetReward({ * asset: ..., * }); * ``` */ -export function encodeGetRewardPosition(options: GetRewardPositionParams) { +export function encodeGetReward(options: GetRewardParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeGetRewardPositionParams(options).slice( + encodeGetRewardParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Decodes the result of the getRewardPosition function call. + * Decodes the result of the getReward function call. * @param result - The hexadecimal result to decode. * @returns The decoded result as per the FN_OUTPUTS definition. * @extension ASSETS * @example * ```ts - * import { decodeGetRewardPositionResult } from "thirdweb/extensions/assets"; - * const result = decodeGetRewardPositionResultResult("..."); + * import { decodeGetRewardResult } from "thirdweb/extensions/assets"; + * const result = decodeGetRewardResultResult("..."); * ``` */ -export function decodeGetRewardPositionResult(result: Hex) { +export function decodeGetRewardResult(result: Hex) { return decodeAbiParameters(FN_OUTPUTS, result)[0]; } /** - * Calls the "getRewardPosition" function on the contract. - * @param options - The options for the getRewardPosition function. + * Calls the "getReward" function on the contract. + * @param options - The options for the getReward function. * @returns The parsed result of the function call. * @extension ASSETS * @example * ```ts - * import { getRewardPosition } from "thirdweb/extensions/assets"; + * import { getReward } from "thirdweb/extensions/assets"; * - * const result = await getRewardPosition({ + * const result = await getReward({ * contract, * asset: ..., * }); * * ``` */ -export async function getRewardPosition( - options: BaseTransactionOptions, +export async function getReward( + options: BaseTransactionOptions, ) { return readContract({ contract: options.contract, diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimRewards.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimReward.ts similarity index 67% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimRewards.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimReward.ts index 794f0c1f7b7..0362086ed0e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimReward.ts @@ -9,13 +9,13 @@ import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "claimRewards" function. + * Represents the parameters for the "claimReward" function. */ -export type ClaimRewardsParams = WithOverrides<{ +export type ClaimRewardParams = WithOverrides<{ asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; }>; -export const FN_SELECTOR = "0xef5cfb8c" as const; +export const FN_SELECTOR = "0xd279c191" as const; const FN_INPUTS = [ { type: "address", @@ -25,18 +25,18 @@ const FN_INPUTS = [ const FN_OUTPUTS = [] as const; /** - * Checks if the `claimRewards` method is supported by the given contract. + * Checks if the `claimReward` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `claimRewards` method is supported. + * @returns A boolean indicating if the `claimReward` method is supported. * @extension ASSETS * @example * ```ts - * import { isClaimRewardsSupported } from "thirdweb/extensions/assets"; + * import { isClaimRewardSupported } from "thirdweb/extensions/assets"; * - * const supported = isClaimRewardsSupported(["0x..."]); + * const supported = isClaimRewardSupported(["0x..."]); * ``` */ -export function isClaimRewardsSupported(availableSelectors: string[]) { +export function isClaimRewardSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -44,55 +44,55 @@ export function isClaimRewardsSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "claimRewards" function. - * @param options - The options for the claimRewards function. + * Encodes the parameters for the "claimReward" function. + * @param options - The options for the claimReward function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodeClaimRewardsParams } from "thirdweb/extensions/assets"; - * const result = encodeClaimRewardsParams({ + * import { encodeClaimRewardParams } from "thirdweb/extensions/assets"; + * const result = encodeClaimRewardParams({ * asset: ..., * }); * ``` */ -export function encodeClaimRewardsParams(options: ClaimRewardsParams) { +export function encodeClaimRewardParams(options: ClaimRewardParams) { return encodeAbiParameters(FN_INPUTS, [options.asset]); } /** - * Encodes the "claimRewards" function into a Hex string with its parameters. - * @param options - The options for the claimRewards function. + * Encodes the "claimReward" function into a Hex string with its parameters. + * @param options - The options for the claimReward function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodeClaimRewards } from "thirdweb/extensions/assets"; - * const result = encodeClaimRewards({ + * import { encodeClaimReward } from "thirdweb/extensions/assets"; + * const result = encodeClaimReward({ * asset: ..., * }); * ``` */ -export function encodeClaimRewards(options: ClaimRewardsParams) { +export function encodeClaimReward(options: ClaimRewardParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeClaimRewardsParams(options).slice( + encodeClaimRewardParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "claimRewards" function on the contract. - * @param options - The options for the "claimRewards" function. + * Prepares a transaction to call the "claimReward" function on the contract. + * @param options - The options for the "claimReward" function. * @returns A prepared transaction object. * @extension ASSETS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { claimRewards } from "thirdweb/extensions/assets"; + * import { claimReward } from "thirdweb/extensions/assets"; * - * const transaction = claimRewards({ + * const transaction = claimReward({ * contract, * asset: ..., * overrides: { @@ -104,11 +104,11 @@ export function encodeClaimRewards(options: ClaimRewardsParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function claimRewards( +export function claimReward( options: BaseTransactionOptions< - | ClaimRewardsParams + | ClaimRewardParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardsCollected.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts similarity index 59% rename from packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardsCollected.ts rename to packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts index 4022252e4bb..cd14273ff7e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardsCollected.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts @@ -2,9 +2,9 @@ import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; /** - * Represents the filters for the "RewardsCollected" event. + * Represents the filters for the "RewardCollected" event. */ -export type RewardsCollectedEventFilters = Partial<{ +export type RewardCollectedEventFilters = Partial<{ owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner"; @@ -18,19 +18,19 @@ export type RewardsCollectedEventFilters = Partial<{ }>; /** - * Creates an event object for the RewardsCollected event. + * Creates an event object for the RewardCollected event. * @param filters - Optional filters to apply to the event. * @returns The prepared event object. * @extension ASSETS * @example * ```ts * import { getContractEvents } from "thirdweb"; - * import { rewardsCollectedEvent } from "thirdweb/extensions/assets"; + * import { rewardCollectedEvent } from "thirdweb/extensions/assets"; * * const events = await getContractEvents({ * contract, * events: [ - * rewardsCollectedEvent({ + * rewardCollectedEvent({ * owner: ..., * asset: ..., * }) @@ -38,12 +38,12 @@ export type RewardsCollectedEventFilters = Partial<{ * }); * ``` */ -export function rewardsCollectedEvent( - filters: RewardsCollectedEventFilters = {}, +export function rewardCollectedEvent( + filters: RewardCollectedEventFilters = {}, ) { return prepareEvent({ signature: - "event RewardsCollected(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, uint256 amount0, uint256 amount1)", + "event RewardCollected(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, uint256 amount0, uint256 amount1)", filters, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectRewards.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts similarity index 65% rename from packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectRewards.ts rename to packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts index ae7a0993275..13d69cc10d5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectRewards.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts @@ -9,22 +9,22 @@ import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "collectRewards" function. + * Represents the parameters for the "collectReward" function. */ -export type CollectRewardsParams = WithOverrides<{ - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "_asset" }>; +export type CollectRewardParams = WithOverrides<{ + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; }>; -export const FN_SELECTOR = "0x195da960" as const; +export const FN_SELECTOR = "0x7bb87377" as const; const FN_INPUTS = [ { type: "address", - name: "_owner", + name: "owner", }, { type: "address", - name: "_asset", + name: "asset", }, ] as const; const FN_OUTPUTS = [ @@ -47,18 +47,18 @@ const FN_OUTPUTS = [ ] as const; /** - * Checks if the `collectRewards` method is supported by the given contract. + * Checks if the `collectReward` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `collectRewards` method is supported. + * @returns A boolean indicating if the `collectReward` method is supported. * @extension ASSETS * @example * ```ts - * import { isCollectRewardsSupported } from "thirdweb/extensions/assets"; + * import { isCollectRewardSupported } from "thirdweb/extensions/assets"; * - * const supported = isCollectRewardsSupported(["0x..."]); + * const supported = isCollectRewardSupported(["0x..."]); * ``` */ -export function isCollectRewardsSupported(availableSelectors: string[]) { +export function isCollectRewardSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -66,57 +66,57 @@ export function isCollectRewardsSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "collectRewards" function. - * @param options - The options for the collectRewards function. + * Encodes the parameters for the "collectReward" function. + * @param options - The options for the collectReward function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodeCollectRewardsParams } from "thirdweb/extensions/assets"; - * const result = encodeCollectRewardsParams({ + * import { encodeCollectRewardParams } from "thirdweb/extensions/assets"; + * const result = encodeCollectRewardParams({ * owner: ..., * asset: ..., * }); * ``` */ -export function encodeCollectRewardsParams(options: CollectRewardsParams) { +export function encodeCollectRewardParams(options: CollectRewardParams) { return encodeAbiParameters(FN_INPUTS, [options.owner, options.asset]); } /** - * Encodes the "collectRewards" function into a Hex string with its parameters. - * @param options - The options for the collectRewards function. + * Encodes the "collectReward" function into a Hex string with its parameters. + * @param options - The options for the collectReward function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodeCollectRewards } from "thirdweb/extensions/assets"; - * const result = encodeCollectRewards({ + * import { encodeCollectReward } from "thirdweb/extensions/assets"; + * const result = encodeCollectReward({ * owner: ..., * asset: ..., * }); * ``` */ -export function encodeCollectRewards(options: CollectRewardsParams) { +export function encodeCollectReward(options: CollectRewardParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeCollectRewardsParams(options).slice( + encodeCollectRewardParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "collectRewards" function on the contract. - * @param options - The options for the "collectRewards" function. + * Prepares a transaction to call the "collectReward" function on the contract. + * @param options - The options for the "collectReward" function. * @returns A prepared transaction object. * @extension ASSETS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { collectRewards } from "thirdweb/extensions/assets"; + * import { collectReward } from "thirdweb/extensions/assets"; * - * const transaction = collectRewards({ + * const transaction = collectReward({ * contract, * owner: ..., * asset: ..., @@ -129,11 +129,11 @@ export function encodeCollectRewards(options: CollectRewardsParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function collectRewards( +export function collectReward( options: BaseTransactionOptions< - | CollectRewardsParams + | CollectRewardParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts index 4b4fa53c5d6..c64436a0278 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts @@ -12,20 +12,20 @@ import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; * Represents the parameters for the "lockPosition" function. */ export type LockPositionParams = WithOverrides<{ - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "_asset" }>; + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; positionManager: AbiParameterToPrimitiveType<{ type: "address"; - name: "_positionManager"; + name: "positionManager"; }>; - tokenId: AbiParameterToPrimitiveType<{ type: "uint256"; name: "_tokenId" }>; + tokenId: AbiParameterToPrimitiveType<{ type: "uint256"; name: "tokenId" }>; recipient: AbiParameterToPrimitiveType<{ type: "address"; - name: "_recipient"; + name: "recipient"; }>; - referrer: AbiParameterToPrimitiveType<{ type: "address"; name: "_referrer" }>; + referrer: AbiParameterToPrimitiveType<{ type: "address"; name: "referrer" }>; referrerBps: AbiParameterToPrimitiveType<{ type: "uint16"; - name: "_referrerBps"; + name: "referrerBps"; }>; }>; @@ -33,27 +33,27 @@ export const FN_SELECTOR = "0x2cde40c2" as const; const FN_INPUTS = [ { type: "address", - name: "_asset", + name: "asset", }, { type: "address", - name: "_positionManager", + name: "positionManager", }, { type: "uint256", - name: "_tokenId", + name: "tokenId", }, { type: "address", - name: "_recipient", + name: "recipient", }, { type: "address", - name: "_referrer", + name: "referrer", }, { type: "uint16", - name: "_referrerBps", + name: "referrerBps", }, ] as const; const FN_OUTPUTS = [] as const; From 6500b3d164fd16726ac6f826014d13234441c9e4 Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Tue, 15 Jul 2025 21:30:01 +0530 Subject: [PATCH 13/32] Fix knip lint --- packages/thirdweb/src/assets/constants.ts | 1 - packages/thirdweb/src/exports/assets.ts | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index f50fa2b0b2c..051ede838ee 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -4,7 +4,6 @@ export const DEFAULT_REFERRER_REWARD_BPS = 5000; // 50% export const DEFAULT_INFRA_ADMIN = "0x1a472863cf21d5aa27f417df9140400324c48f22"; export const DEFAULT_FEE_RECIPIENT = "0x1Af20C6B23373350aD464700B5965CE4B0D2aD94"; -export const DEFAULT_SALT = "0x"; export const IMPLEMENTATIONS: Record> = { 8453: { diff --git a/packages/thirdweb/src/exports/assets.ts b/packages/thirdweb/src/exports/assets.ts index 8235d844fcf..16262c6719e 100644 --- a/packages/thirdweb/src/exports/assets.ts +++ b/packages/thirdweb/src/exports/assets.ts @@ -1,13 +1,21 @@ +export { + DEFAULT_FEE_RECIPIENT, + DEFAULT_INFRA_ADMIN, +} from "../assets/constants.js"; export { createToken } from "../assets/create-token.js"; export { createTokenByImplementationConfig } from "../assets/create-token-by-impl-config.js"; +export { deployInfraProxy } from "../assets/deploy-infra-proxy.js"; export { distributeToken } from "../assets/distribute-token.js"; export { getDeployedEntrypointERC20 } from "../assets/get-entrypoint-erc20.js"; +export { getOrDeployERC20AssetImpl } from "../assets/get-erc20-asset-impl.js"; +export { getInitCodeHashERC1967 } from "../assets/get-initcode-hash-1967.js"; export { isRouterEnabled } from "../assets/is-router-enabled.js"; export type { - CreateTokenOptions, CreateTokenByImplementationConfigOptions, + CreateTokenOptions, DistributeContent, MarketConfig, PoolConfig, TokenParams, } from "../assets/types.js"; +export { getInitBytecodeWithSalt } from "../utils/any-evm/get-init-bytecode-with-salt.js"; From cad9f8023ea9d8e642c724046de8be56ce8709db Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Tue, 15 Jul 2025 21:36:16 +0530 Subject: [PATCH 14/32] fix build --- packages/thirdweb/src/assets/constants.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index 051ede838ee..f50fa2b0b2c 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -4,6 +4,7 @@ export const DEFAULT_REFERRER_REWARD_BPS = 5000; // 50% export const DEFAULT_INFRA_ADMIN = "0x1a472863cf21d5aa27f417df9140400324c48f22"; export const DEFAULT_FEE_RECIPIENT = "0x1Af20C6B23373350aD464700B5965CE4B0D2aD94"; +export const DEFAULT_SALT = "0x"; export const IMPLEMENTATIONS: Record> = { 8453: { From 795ecd70056ad4082ae325d48e1dfa5f36053f8d Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Wed, 16 Jul 2025 00:17:50 +0530 Subject: [PATCH 15/32] export getReward, run format --- .../src/assets/create-token-by-impl-config.ts | 13 +++++++++++-- .../thirdweb/src/assets/get-entrypoint-erc20.ts | 4 +--- packages/thirdweb/src/assets/types.ts | 8 +++++--- packages/thirdweb/src/exports/assets.ts | 1 + 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/packages/thirdweb/src/assets/create-token-by-impl-config.ts b/packages/thirdweb/src/assets/create-token-by-impl-config.ts index 23921c8d4d2..7c6ecf62239 100644 --- a/packages/thirdweb/src/assets/create-token-by-impl-config.ts +++ b/packages/thirdweb/src/assets/create-token-by-impl-config.ts @@ -24,8 +24,17 @@ import { } from "./token-utils.js"; import type { CreateTokenByImplementationConfigOptions } from "./types.js"; -export async function createTokenByImplementationConfig(options: CreateTokenByImplementationConfigOptions) { - const { client, chain, account, params, implementationAddress, launchConfig } = options; +export async function createTokenByImplementationConfig( + options: CreateTokenByImplementationConfigOptions, +) { + const { + client, + chain, + account, + params, + implementationAddress, + launchConfig, + } = options; const creator = params.owner || account.address; diff --git a/packages/thirdweb/src/assets/get-entrypoint-erc20.ts b/packages/thirdweb/src/assets/get-entrypoint-erc20.ts index b95d28397bc..b5c411f26c6 100644 --- a/packages/thirdweb/src/assets/get-entrypoint-erc20.ts +++ b/packages/thirdweb/src/assets/get-entrypoint-erc20.ts @@ -3,9 +3,7 @@ import type { ClientAndChain, ClientAndChainAndAccount, } from "../utils/types.js"; -import { - IMPLEMENTATIONS, -} from "./constants.js"; +import { IMPLEMENTATIONS } from "./constants.js"; export async function getOrDeployEntrypointERC20( options: ClientAndChainAndAccount, diff --git a/packages/thirdweb/src/assets/types.ts b/packages/thirdweb/src/assets/types.ts index 8953c67e7ee..7828ce4bae3 100644 --- a/packages/thirdweb/src/assets/types.ts +++ b/packages/thirdweb/src/assets/types.ts @@ -52,6 +52,8 @@ export type CreateTokenOptions = ClientAndChainAndAccount & { referrerAddress?: string; }; -export type CreateTokenByImplementationConfigOptions = ClientAndChainAndAccount & CreateTokenOptions & { - implementationAddress: string; -}; +export type CreateTokenByImplementationConfigOptions = + ClientAndChainAndAccount & + CreateTokenOptions & { + implementationAddress: string; + }; diff --git a/packages/thirdweb/src/exports/assets.ts b/packages/thirdweb/src/exports/assets.ts index 16262c6719e..a2cbef1ae7a 100644 --- a/packages/thirdweb/src/exports/assets.ts +++ b/packages/thirdweb/src/exports/assets.ts @@ -19,3 +19,4 @@ export type { TokenParams, } from "../assets/types.js"; export { getInitBytecodeWithSalt } from "../utils/any-evm/get-init-bytecode-with-salt.js"; +export { getReward } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.js"; From e1f153098f782786c28e9a4a2c8e512b8e760e1b Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Wed, 16 Jul 2025 18:48:26 +0000 Subject: [PATCH 16/32] Update addresses --- packages/thirdweb/src/assets/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index f50fa2b0b2c..5fc104e3b73 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -8,10 +8,10 @@ export const DEFAULT_SALT = "0x"; export const IMPLEMENTATIONS: Record> = { 8453: { - AssetEntrypointERC20: "0x412c90c39CbBD6A2fFDbe9bF9Aa6Ad87717f487a", + AssetEntrypointERC20: "0x366933D1D583E19845CCEAc9fB104eF96710D575", }, 84532: { - AssetEntrypointERC20: "0xF4d4dE479533Ee95B2b1EC10B682D4BC363E6A97", + AssetEntrypointERC20: "0x4936a2aCa1840245845fC1536B827A02ea81dD0f", }, }; From 09ca5c6341fb3e0ad00ef383867475b5df6895b6 Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Thu, 17 Jul 2025 03:48:47 +0000 Subject: [PATCH 17/32] Update contract --- packages/thirdweb/src/assets/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index 5fc104e3b73..741bb048511 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -8,10 +8,10 @@ export const DEFAULT_SALT = "0x"; export const IMPLEMENTATIONS: Record> = { 8453: { - AssetEntrypointERC20: "0x366933D1D583E19845CCEAc9fB104eF96710D575", + AssetEntrypointERC20: "0xf27e8A456D3Fa6AA6ffc10Cf13361a682B5ed8C3", }, 84532: { - AssetEntrypointERC20: "0x4936a2aCa1840245845fC1536B827A02ea81dD0f", + AssetEntrypointERC20: "0x518aC4beE28eebfa3818978E69137CDA78d0C73b", }, }; From 8dc959c78d9fe5c3a6ff3bc1aa9bf23a703cd72d Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Fri, 18 Jul 2025 02:53:10 +0000 Subject: [PATCH 18/32] Update entrypoint contract --- packages/thirdweb/src/assets/constants.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/assets/constants.ts index 741bb048511..57016215d32 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/assets/constants.ts @@ -1,6 +1,6 @@ -export const DEFAULT_MAX_SUPPLY_ERC20 = 10_000_000_000n; +export const DEFAULT_MAX_SUPPLY_ERC20 = 1_000_000_000n; export const DEFAULT_POOL_INITIAL_TICK = 230200; -export const DEFAULT_REFERRER_REWARD_BPS = 5000; // 50% +export const DEFAULT_REFERRER_REWARD_BPS = 1250; // 12.50% export const DEFAULT_INFRA_ADMIN = "0x1a472863cf21d5aa27f417df9140400324c48f22"; export const DEFAULT_FEE_RECIPIENT = "0x1Af20C6B23373350aD464700B5965CE4B0D2aD94"; @@ -8,10 +8,10 @@ export const DEFAULT_SALT = "0x"; export const IMPLEMENTATIONS: Record> = { 8453: { - AssetEntrypointERC20: "0xf27e8A456D3Fa6AA6ffc10Cf13361a682B5ed8C3", + AssetEntrypointERC20: "0x42e3a6eB0e96641Bd6e0604D5C6Bb96db874A942", }, 84532: { - AssetEntrypointERC20: "0x518aC4beE28eebfa3818978E69137CDA78d0C73b", + AssetEntrypointERC20: "0xcB8ab50D2E7E2e2f46a2BF440e60375b28A4b82f", }, }; From 97291743553999e9574978bfed57c4005d351903 Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Tue, 22 Jul 2025 21:26:26 +0530 Subject: [PATCH 19/32] pnpm run fix --- packages/thirdweb/src/exports/assets.ts | 2 +- .../airdrop/__generated__/Airdrop/events/OwnerUpdated.ts | 2 +- .../airdrop/__generated__/Airdrop/read/eip712Domain.ts | 5 ++--- .../airdrop/__generated__/Airdrop/read/isClaimed.ts | 4 ++-- .../extensions/airdrop/__generated__/Airdrop/read/owner.ts | 5 ++--- .../airdrop/__generated__/Airdrop/read/tokenConditionId.ts | 4 ++-- .../airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/airdropERC1155.ts | 4 ++-- .../Airdrop/write/airdropERC1155WithSignature.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/airdropERC20.ts | 4 ++-- .../__generated__/Airdrop/write/airdropERC20WithSignature.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/airdropERC721.ts | 4 ++-- .../Airdrop/write/airdropERC721WithSignature.ts | 4 ++-- .../__generated__/Airdrop/write/airdropNativeToken.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/claimERC1155.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/claimERC20.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/claimERC721.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/initialize.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/setMerkleRoot.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/setOwner.ts | 4 ++-- .../AssetInfraDeployer/events/AssetInfraDeployed.ts | 2 +- .../write/deployInfraProxyDeterministic.ts | 4 ++-- .../assets/__generated__/ERC20Asset/events/Approval.ts | 2 +- .../ERC20Asset/events/OwnershipHandoverCanceled.ts | 2 +- .../ERC20Asset/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/ERC20Asset/events/OwnershipTransferred.ts | 2 +- .../assets/__generated__/ERC20Asset/events/Transfer.ts | 2 +- .../assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts | 5 ++--- .../assets/__generated__/ERC20Asset/read/allowance.ts | 4 ++-- .../assets/__generated__/ERC20Asset/read/balanceOf.ts | 4 ++-- .../assets/__generated__/ERC20Asset/read/contractURI.ts | 5 ++--- .../assets/__generated__/ERC20Asset/read/decimals.ts | 5 ++--- .../extensions/assets/__generated__/ERC20Asset/read/name.ts | 5 ++--- .../assets/__generated__/ERC20Asset/read/nonces.ts | 4 ++-- .../extensions/assets/__generated__/ERC20Asset/read/owner.ts | 5 ++--- .../ERC20Asset/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../__generated__/ERC20Asset/read/supportsInterface.ts | 4 ++-- .../assets/__generated__/ERC20Asset/read/symbol.ts | 5 ++--- .../assets/__generated__/ERC20Asset/read/totalSupply.ts | 5 ++--- .../assets/__generated__/ERC20Asset/write/approve.ts | 4 ++-- .../extensions/assets/__generated__/ERC20Asset/write/burn.ts | 4 ++-- .../assets/__generated__/ERC20Asset/write/burnFrom.ts | 4 ++-- .../ERC20Asset/write/cancelOwnershipHandover.ts | 2 +- .../ERC20Asset/write/completeOwnershipHandover.ts | 4 ++-- .../assets/__generated__/ERC20Asset/write/initialize.ts | 4 ++-- .../assets/__generated__/ERC20Asset/write/permit.ts | 4 ++-- .../__generated__/ERC20Asset/write/renounceOwnership.ts | 2 +- .../ERC20Asset/write/requestOwnershipHandover.ts | 2 +- .../assets/__generated__/ERC20Asset/write/setContractURI.ts | 4 ++-- .../assets/__generated__/ERC20Asset/write/transfer.ts | 4 ++-- .../assets/__generated__/ERC20Asset/write/transferFrom.ts | 4 ++-- .../__generated__/ERC20Asset/write/transferOwnership.ts | 4 ++-- .../ERC20AssetEntrypoint/events/AssetCreated.ts | 2 +- .../ERC20AssetEntrypoint/events/ImplementationAdded.ts | 2 +- .../ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../ERC20AssetEntrypoint/events/OwnershipTransferred.ts | 2 +- .../__generated__/ERC20AssetEntrypoint/events/Upgraded.ts | 2 +- .../ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts | 4 ++-- .../__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts | 5 ++--- .../ERC20AssetEntrypoint/read/getImplementation.ts | 4 ++-- .../__generated__/ERC20AssetEntrypoint/read/getReward.ts | 4 ++-- .../ERC20AssetEntrypoint/read/getRewardLocker.ts | 5 ++--- .../__generated__/ERC20AssetEntrypoint/read/getRouter.ts | 5 ++--- .../__generated__/ERC20AssetEntrypoint/read/guardSalt.ts | 4 ++-- .../assets/__generated__/ERC20AssetEntrypoint/read/owner.ts | 5 ++--- .../ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../ERC20AssetEntrypoint/read/predictAssetAddress.ts | 4 ++-- .../ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts | 4 ++-- .../__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts | 5 ++--- .../ERC20AssetEntrypoint/write/addImplementation.ts | 4 ++-- .../__generated__/ERC20AssetEntrypoint/write/buyAsset.ts | 4 ++-- .../ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts | 2 +- .../__generated__/ERC20AssetEntrypoint/write/claimReward.ts | 4 ++-- .../ERC20AssetEntrypoint/write/completeOwnershipHandover.ts | 4 ++-- .../__generated__/ERC20AssetEntrypoint/write/createAsset.ts | 4 ++-- .../ERC20AssetEntrypoint/write/createAssetById.ts | 4 ++-- .../write/createAssetByImplementationConfig.ts | 4 ++-- .../ERC20AssetEntrypoint/write/distributeAsset.ts | 4 ++-- .../__generated__/ERC20AssetEntrypoint/write/initialize.ts | 4 ++-- .../__generated__/ERC20AssetEntrypoint/write/listAsset.ts | 4 ++-- .../ERC20AssetEntrypoint/write/renounceOwnership.ts | 2 +- .../ERC20AssetEntrypoint/write/requestOwnershipHandover.ts | 2 +- .../__generated__/ERC20AssetEntrypoint/write/sellAsset.ts | 4 ++-- .../__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts | 4 ++-- .../ERC20AssetEntrypoint/write/setRewardLocker.ts | 4 ++-- .../__generated__/ERC20AssetEntrypoint/write/setRouter.ts | 4 ++-- .../ERC20AssetEntrypoint/write/transferOwnership.ts | 4 ++-- .../ERC20AssetEntrypoint/write/upgradeToAndCall.ts | 4 ++-- .../__generated__/FeeManager/events/FeeConfigUpdated.ts | 2 +- .../FeeManager/events/FeeConfigUpdatedBySignature.ts | 2 +- .../FeeManager/events/OwnershipHandoverCanceled.ts | 2 +- .../FeeManager/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/FeeManager/events/OwnershipTransferred.ts | 2 +- .../assets/__generated__/FeeManager/events/RolesUpdated.ts | 2 +- .../assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts | 5 ++--- .../assets/__generated__/FeeManager/read/calculateFee.ts | 4 ++-- .../assets/__generated__/FeeManager/read/domainSeparator.ts | 5 ++--- .../assets/__generated__/FeeManager/read/eip712Domain.ts | 5 ++--- .../assets/__generated__/FeeManager/read/feeConfigs.ts | 4 ++-- .../assets/__generated__/FeeManager/read/feeRecipient.ts | 5 ++--- .../assets/__generated__/FeeManager/read/getFeeConfig.ts | 4 ++-- .../assets/__generated__/FeeManager/read/hasAllRoles.ts | 4 ++-- .../assets/__generated__/FeeManager/read/hasAnyRole.ts | 4 ++-- .../extensions/assets/__generated__/FeeManager/read/owner.ts | 5 ++--- .../FeeManager/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../assets/__generated__/FeeManager/read/rolesOf.ts | 4 ++-- .../assets/__generated__/FeeManager/read/usedNonces.ts | 4 ++-- .../FeeManager/write/cancelOwnershipHandover.ts | 2 +- .../FeeManager/write/completeOwnershipHandover.ts | 4 ++-- .../assets/__generated__/FeeManager/write/grantRoles.ts | 4 ++-- .../__generated__/FeeManager/write/renounceOwnership.ts | 2 +- .../assets/__generated__/FeeManager/write/renounceRoles.ts | 4 ++-- .../FeeManager/write/requestOwnershipHandover.ts | 2 +- .../assets/__generated__/FeeManager/write/revokeRoles.ts | 4 ++-- .../assets/__generated__/FeeManager/write/setFeeConfig.ts | 4 ++-- .../FeeManager/write/setFeeConfigBySignature.ts | 4 ++-- .../assets/__generated__/FeeManager/write/setFeeRecipient.ts | 4 ++-- .../__generated__/FeeManager/write/setTargetFeeConfig.ts | 4 ++-- .../__generated__/FeeManager/write/transferOwnership.ts | 4 ++-- .../__generated__/RewardLocker/events/PositionLocked.ts | 2 +- .../__generated__/RewardLocker/events/RewardCollected.ts | 2 +- .../assets/__generated__/RewardLocker/read/feeManager.ts | 5 ++--- .../assets/__generated__/RewardLocker/read/positions.ts | 4 ++-- .../__generated__/RewardLocker/read/v3PositionManager.ts | 5 ++--- .../__generated__/RewardLocker/read/v4PositionManager.ts | 5 ++--- .../assets/__generated__/RewardLocker/write/collectReward.ts | 4 ++-- .../assets/__generated__/RewardLocker/write/lockPosition.ts | 4 ++-- .../__generated__/Router/events/OwnershipHandoverCanceled.ts | 2 +- .../Router/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/Router/events/OwnershipTransferred.ts | 2 +- .../assets/__generated__/Router/events/SwapExecuted.ts | 2 +- .../assets/__generated__/Router/events/Upgraded.ts | 2 +- .../assets/__generated__/Router/read/NATIVE_TOKEN.ts | 5 ++--- .../src/extensions/assets/__generated__/Router/read/owner.ts | 5 ++--- .../__generated__/Router/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../assets/__generated__/Router/read/proxiableUUID.ts | 5 ++--- .../__generated__/Router/write/cancelOwnershipHandover.ts | 2 +- .../__generated__/Router/write/completeOwnershipHandover.ts | 4 ++-- .../assets/__generated__/Router/write/createMarket.ts | 4 ++-- .../assets/__generated__/Router/write/createPool.ts | 4 ++-- .../assets/__generated__/Router/write/disableAdapter.ts | 4 ++-- .../assets/__generated__/Router/write/enableAdapter.ts | 4 ++-- .../assets/__generated__/Router/write/initialize.ts | 4 ++-- .../assets/__generated__/Router/write/renounceOwnership.ts | 2 +- .../__generated__/Router/write/requestOwnershipHandover.ts | 2 +- .../src/extensions/assets/__generated__/Router/write/swap.ts | 4 ++-- .../assets/__generated__/Router/write/transferOwnership.ts | 4 ++-- .../assets/__generated__/Router/write/upgradeToAndCall.ts | 4 ++-- .../IClaimConditionsSinglePhase/write/setClaimConditions.ts | 4 ++-- .../__generated__/IContractMetadata/read/contractURI.ts | 5 ++--- .../common/__generated__/IContractMetadata/read/name.ts | 5 ++--- .../common/__generated__/IContractMetadata/read/symbol.ts | 5 ++--- .../__generated__/IContractMetadata/write/setContractURI.ts | 4 ++-- .../common/__generated__/IMulticall/write/multicall.ts | 4 ++-- .../common/__generated__/IOwnable/events/OwnerUpdated.ts | 2 +- .../extensions/common/__generated__/IOwnable/read/owner.ts | 5 ++--- .../common/__generated__/IOwnable/write/setOwner.ts | 4 ++-- .../IPlatformFee/events/PlatformFeeInfoUpdated.ts | 2 +- .../__generated__/IPlatformFee/read/getPlatformFeeInfo.ts | 5 ++--- .../__generated__/IPlatformFee/write/setPlatformFeeInfo.ts | 4 ++-- .../IPrimarySale/events/PrimarySaleRecipientUpdated.ts | 2 +- .../__generated__/IPrimarySale/read/primarySaleRecipient.ts | 5 ++--- .../IPrimarySale/write/setPrimarySaleRecipient.ts | 4 ++-- .../common/__generated__/IRoyalty/events/DefaultRoyalty.ts | 2 +- .../common/__generated__/IRoyalty/events/RoyaltyForToken.ts | 2 +- .../__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts | 5 ++--- .../__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts | 4 ++-- .../common/__generated__/IRoyalty/read/royaltyInfo.ts | 4 ++-- .../common/__generated__/IRoyalty/read/supportsInterface.ts | 4 ++-- .../__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts | 4 ++-- .../__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts | 4 ++-- .../IRoyaltyPayments/events/RoyaltyEngineUpdated.ts | 2 +- .../__generated__/IRoyaltyPayments/read/supportsInterface.ts | 4 ++-- .../__generated__/IRoyaltyPayments/write/getRoyalty.ts | 4 ++-- .../__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts | 4 ++-- .../__generated__/IExtensionManager/read/getAllExtensions.ts | 5 ++--- .../__generated__/IExtensionManager/write/addExtension.ts | 4 ++-- .../__generated__/IExtensionManager/write/removeExtension.ts | 4 ++-- .../extensions/ens/__generated__/AddressResolver/read/ABI.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/addr.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/contenthash.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/name.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/pubkey.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/text.ts | 4 ++-- .../src/extensions/ens/__generated__/L2Resolver/read/name.ts | 4 ++-- .../ens/__generated__/UniversalResolver/read/resolve.ts | 4 ++-- .../ens/__generated__/UniversalResolver/read/reverse.ts | 4 ++-- .../__generated__/BatchMintMetadata/read/getBaseURICount.ts | 5 ++--- .../BatchMintMetadata/read/getBatchIdAtIndex.ts | 4 ++-- .../erc1155/__generated__/DropERC1155/read/verifyClaim.ts | 4 ++-- .../__generated__/DropERC1155/write/freezeBatchBaseURI.ts | 4 ++-- .../__generated__/DropERC1155/write/setMaxTotalSupply.ts | 4 ++-- .../DropERC1155/write/setSaleRecipientForToken.ts | 4 ++-- .../__generated__/DropERC1155/write/updateBatchBaseURI.ts | 4 ++-- .../__generated__/IAirdropERC1155/events/AirdropFailed.ts | 2 +- .../__generated__/IAirdropERC1155/write/airdropERC1155.ts | 4 ++-- .../IAirdropERC1155Claimable/events/TokensClaimed.ts | 2 +- .../__generated__/IAirdropERC1155Claimable/write/claim.ts | 4 ++-- .../erc1155/__generated__/IBurnableERC1155/write/burn.ts | 4 ++-- .../__generated__/IBurnableERC1155/write/burnBatch.ts | 4 ++-- .../__generated__/IClaimableERC1155/events/TokensClaimed.ts | 2 +- .../erc1155/__generated__/IClaimableERC1155/write/claim.ts | 4 ++-- .../__generated__/IDrop1155/events/ClaimConditionsUpdated.ts | 2 +- .../erc1155/__generated__/IDrop1155/events/TokensClaimed.ts | 2 +- .../erc1155/__generated__/IDrop1155/read/claimCondition.ts | 4 ++-- .../IDrop1155/read/getActiveClaimConditionId.ts | 4 ++-- .../__generated__/IDrop1155/read/getClaimConditionById.ts | 4 ++-- .../erc1155/__generated__/IDrop1155/write/claim.ts | 4 ++-- .../__generated__/IDrop1155/write/setClaimConditions.ts | 4 ++-- .../IDropSinglePhase1155/events/ClaimConditionUpdated.ts | 2 +- .../IDropSinglePhase1155/events/TokensClaimed.ts | 2 +- .../IDropSinglePhase1155/read/claimCondition.ts | 4 ++-- .../__generated__/IDropSinglePhase1155/write/claim.ts | 4 ++-- .../IDropSinglePhase1155/write/setClaimConditions.ts | 4 ++-- .../erc1155/__generated__/IERC1155/events/ApprovalForAll.ts | 2 +- .../erc1155/__generated__/IERC1155/events/TransferBatch.ts | 2 +- .../erc1155/__generated__/IERC1155/events/TransferSingle.ts | 2 +- .../extensions/erc1155/__generated__/IERC1155/events/URI.ts | 2 +- .../erc1155/__generated__/IERC1155/read/balanceOf.ts | 4 ++-- .../erc1155/__generated__/IERC1155/read/balanceOfBatch.ts | 4 ++-- .../erc1155/__generated__/IERC1155/read/isApprovedForAll.ts | 4 ++-- .../erc1155/__generated__/IERC1155/read/totalSupply.ts | 4 ++-- .../extensions/erc1155/__generated__/IERC1155/read/uri.ts | 4 ++-- .../__generated__/IERC1155/write/safeBatchTransferFrom.ts | 4 ++-- .../erc1155/__generated__/IERC1155/write/safeTransferFrom.ts | 4 ++-- .../__generated__/IERC1155/write/setApprovalForAll.ts | 4 ++-- .../IERC1155Enumerable/read/nextTokenIdToMint.ts | 5 ++--- .../__generated__/IERC1155Receiver/read/supportsInterface.ts | 4 ++-- .../IERC1155Receiver/write/onERC1155BatchReceived.ts | 4 ++-- .../IERC1155Receiver/write/onERC1155Received.ts | 4 ++-- .../__generated__/IEditionStake/write/depositRewardTokens.ts | 4 ++-- .../IEditionStake/write/withdrawRewardTokens.ts | 4 ++-- .../__generated__/ILazyMint/events/TokensLazyMinted.ts | 2 +- .../erc1155/__generated__/ILazyMint/write/lazyMint.ts | 4 ++-- .../__generated__/IMintableERC1155/events/TokensMinted.ts | 2 +- .../erc1155/__generated__/IMintableERC1155/write/mintTo.ts | 4 ++-- .../__generated__/INFTMetadata/read/supportsInterface.ts | 4 ++-- .../__generated__/INFTMetadata/write/freezeMetadata.ts | 2 +- .../erc1155/__generated__/INFTMetadata/write/setTokenURI.ts | 4 ++-- .../erc1155/__generated__/IPack/events/PackCreated.ts | 2 +- .../erc1155/__generated__/IPack/events/PackOpened.ts | 2 +- .../erc1155/__generated__/IPack/events/PackUpdated.ts | 2 +- .../erc1155/__generated__/IPack/write/createPack.ts | 4 ++-- .../extensions/erc1155/__generated__/IPack/write/openPack.ts | 4 ++-- .../__generated__/IPackVRFDirect/events/PackOpenRequested.ts | 2 +- .../IPackVRFDirect/events/PackRandomnessFulfilled.ts | 2 +- .../__generated__/IPackVRFDirect/read/canClaimRewards.ts | 4 ++-- .../__generated__/IPackVRFDirect/write/claimRewards.ts | 2 +- .../IPackVRFDirect/write/openPackAndClaimRewards.ts | 4 ++-- .../events/TokensMintedWithSignature.ts | 2 +- .../__generated__/ISignatureMintERC1155/read/verify.ts | 4 ++-- .../ISignatureMintERC1155/write/mintWithSignature.ts | 4 ++-- .../__generated__/IStaking1155/events/RewardsClaimed.ts | 2 +- .../__generated__/IStaking1155/events/TokensStaked.ts | 2 +- .../__generated__/IStaking1155/events/TokensWithdrawn.ts | 2 +- .../IStaking1155/events/UpdatedRewardsPerUnitTime.ts | 2 +- .../__generated__/IStaking1155/events/UpdatedTimeUnit.ts | 2 +- .../erc1155/__generated__/IStaking1155/read/getStakeInfo.ts | 4 ++-- .../__generated__/IStaking1155/read/getStakeInfoForToken.ts | 4 ++-- .../erc1155/__generated__/IStaking1155/write/claimRewards.ts | 4 ++-- .../erc1155/__generated__/IStaking1155/write/stake.ts | 4 ++-- .../erc1155/__generated__/IStaking1155/write/withdraw.ts | 4 ++-- .../erc1155/__generated__/Zora1155/read/nextTokenId.ts | 5 ++--- .../__generated__/isValidSignature/read/isValidSignature.ts | 4 ++-- .../erc165/__generated__/IERC165/read/supportsInterface.ts | 4 ++-- .../__generated__/IERC1822Proxiable/read/proxiableUUID.ts | 5 ++--- .../erc20/__generated__/DropERC20/read/verifyClaim.ts | 4 ++-- .../__generated__/IAirdropERC20/events/AirdropFailed.ts | 2 +- .../erc20/__generated__/IAirdropERC20/write/airdropERC20.ts | 4 ++-- .../IAirdropERC20Claimable/events/TokensClaimed.ts | 2 +- .../__generated__/IAirdropERC20Claimable/write/claim.ts | 4 ++-- .../erc20/__generated__/IBurnableERC20/write/burn.ts | 4 ++-- .../erc20/__generated__/IBurnableERC20/write/burnFrom.ts | 4 ++-- .../erc20/__generated__/IDropERC20/events/TokensClaimed.ts | 2 +- .../erc20/__generated__/IDropERC20/read/claimCondition.ts | 5 ++--- .../IDropERC20/read/getActiveClaimConditionId.ts | 5 ++--- .../__generated__/IDropERC20/read/getClaimConditionById.ts | 4 ++-- .../extensions/erc20/__generated__/IDropERC20/write/claim.ts | 4 ++-- .../__generated__/IDropERC20/write/setClaimConditions.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/events/Approval.ts | 2 +- .../extensions/erc20/__generated__/IERC20/events/Transfer.ts | 2 +- .../extensions/erc20/__generated__/IERC20/read/allowance.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/read/balanceOf.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/read/decimals.ts | 5 ++--- .../erc20/__generated__/IERC20/read/totalSupply.ts | 5 ++--- .../extensions/erc20/__generated__/IERC20/write/approve.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/write/transfer.ts | 4 ++-- .../erc20/__generated__/IERC20/write/transferFrom.ts | 4 ++-- .../__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts | 5 ++--- .../erc20/__generated__/IERC20Permit/read/nonces.ts | 4 ++-- .../erc20/__generated__/IERC20Permit/write/permit.ts | 4 ++-- .../__generated__/IMintableERC20/events/TokensMinted.ts | 2 +- .../erc20/__generated__/IMintableERC20/write/mintTo.ts | 4 ++-- .../ISignatureMintERC20/events/TokensMintedWithSignature.ts | 2 +- .../erc20/__generated__/ISignatureMintERC20/read/verify.ts | 4 ++-- .../ISignatureMintERC20/write/mintWithSignature.ts | 4 ++-- .../erc20/__generated__/IStaking20/events/RewardsClaimed.ts | 2 +- .../erc20/__generated__/IStaking20/events/TokensStaked.ts | 2 +- .../erc20/__generated__/IStaking20/events/TokensWithdrawn.ts | 2 +- .../erc20/__generated__/IStaking20/read/getStakeInfo.ts | 4 ++-- .../erc20/__generated__/IStaking20/write/claimRewards.ts | 2 +- .../extensions/erc20/__generated__/IStaking20/write/stake.ts | 4 ++-- .../erc20/__generated__/IStaking20/write/withdraw.ts | 4 ++-- .../__generated__/ITokenStake/write/depositRewardTokens.ts | 4 ++-- .../__generated__/ITokenStake/write/withdrawRewardTokens.ts | 4 ++-- .../erc20/__generated__/IVotes/events/DelegateChanged.ts | 2 +- .../__generated__/IVotes/events/DelegateVotesChanged.ts | 2 +- .../extensions/erc20/__generated__/IVotes/read/delegates.ts | 4 ++-- .../erc20/__generated__/IVotes/read/getPastTotalSupply.ts | 4 ++-- .../erc20/__generated__/IVotes/read/getPastVotes.ts | 4 ++-- .../extensions/erc20/__generated__/IVotes/read/getVotes.ts | 4 ++-- .../extensions/erc20/__generated__/IVotes/write/delegate.ts | 4 ++-- .../erc20/__generated__/IVotes/write/delegateBySig.ts | 4 ++-- .../extensions/erc20/__generated__/IWETH/write/deposit.ts | 2 +- .../extensions/erc20/__generated__/IWETH/write/transfer.ts | 4 ++-- .../extensions/erc20/__generated__/IWETH/write/withdraw.ts | 4 ++-- .../__generated__/IERC2771Context/read/isTrustedForwarder.ts | 4 ++-- .../erc2981/__generated__/IERC2981/read/royaltyInfo.ts | 4 ++-- .../erc4337/__generated__/IAccount/write/validateUserOp.ts | 4 ++-- .../__generated__/IAccountFactory/events/AccountCreated.ts | 2 +- .../__generated__/IAccountFactory/events/SignerAdded.ts | 2 +- .../__generated__/IAccountFactory/events/SignerRemoved.ts | 2 +- .../IAccountFactory/read/accountImplementation.ts | 5 ++--- .../__generated__/IAccountFactory/read/getAccounts.ts | 4 ++-- .../IAccountFactory/read/getAccountsOfSigner.ts | 4 ++-- .../erc4337/__generated__/IAccountFactory/read/getAddress.ts | 4 ++-- .../__generated__/IAccountFactory/read/getAllAccounts.ts | 5 ++--- .../__generated__/IAccountFactory/read/isRegistered.ts | 4 ++-- .../__generated__/IAccountFactory/read/totalAccounts.ts | 5 ++--- .../__generated__/IAccountFactory/write/createAccount.ts | 4 ++-- .../__generated__/IAccountFactory/write/onSignerAdded.ts | 4 ++-- .../__generated__/IAccountFactory/write/onSignerRemoved.ts | 4 ++-- .../__generated__/IAccountPermissions/events/AdminUpdated.ts | 2 +- .../IAccountPermissions/events/SignerPermissionsUpdated.ts | 2 +- .../IAccountPermissions/read/getAllActiveSigners.ts | 5 ++--- .../__generated__/IAccountPermissions/read/getAllAdmins.ts | 5 ++--- .../__generated__/IAccountPermissions/read/getAllSigners.ts | 5 ++--- .../IAccountPermissions/read/getPermissionsForSigner.ts | 4 ++-- .../__generated__/IAccountPermissions/read/isActiveSigner.ts | 4 ++-- .../__generated__/IAccountPermissions/read/isAdmin.ts | 4 ++-- .../read/verifySignerPermissionRequest.ts | 4 ++-- .../IAccountPermissions/write/setPermissionsForSigner.ts | 4 ++-- .../__generated__/IEntryPoint/events/AccountDeployed.ts | 2 +- .../erc4337/__generated__/IEntryPoint/events/Deposited.ts | 2 +- .../IEntryPoint/events/SignatureAggregatorChanged.ts | 2 +- .../erc4337/__generated__/IEntryPoint/events/StakeLocked.ts | 2 +- .../__generated__/IEntryPoint/events/StakeUnlocked.ts | 2 +- .../__generated__/IEntryPoint/events/StakeWithdrawn.ts | 2 +- .../__generated__/IEntryPoint/events/UserOperationEvent.ts | 2 +- .../IEntryPoint/events/UserOperationRevertReason.ts | 2 +- .../erc4337/__generated__/IEntryPoint/events/Withdrawn.ts | 2 +- .../erc4337/__generated__/IEntryPoint/read/balanceOf.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/read/getNonce.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/addStake.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/depositTo.ts | 4 ++-- .../__generated__/IEntryPoint/write/getSenderAddress.ts | 4 ++-- .../__generated__/IEntryPoint/write/handleAggregatedOps.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/handleOps.ts | 4 ++-- .../__generated__/IEntryPoint/write/incrementNonce.ts | 4 ++-- .../__generated__/IEntryPoint/write/simulateHandleOp.ts | 4 ++-- .../__generated__/IEntryPoint/write/simulateValidation.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/unlockStake.ts | 2 +- .../erc4337/__generated__/IEntryPoint/write/withdrawStake.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/withdrawTo.ts | 4 ++-- .../IEntryPoint_v07/events/PostOpRevertReason.ts | 2 +- .../__generated__/IEntryPoint_v07/read/getUserOpHash.ts | 4 ++-- .../erc4337/__generated__/IPaymaster/write/postOp.ts | 4 ++-- .../IPaymaster/write/validatePaymasterUserOp.ts | 4 ++-- .../erc4626/__generated__/IERC4626/events/Deposit.ts | 2 +- .../erc4626/__generated__/IERC4626/events/Withdraw.ts | 2 +- .../extensions/erc4626/__generated__/IERC4626/read/asset.ts | 5 ++--- .../erc4626/__generated__/IERC4626/read/convertToAssets.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/convertToShares.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxDeposit.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxMint.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxRedeem.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxWithdraw.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewDeposit.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewMint.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewRedeem.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewWithdraw.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/totalAssets.ts | 5 ++--- .../erc4626/__generated__/IERC4626/write/deposit.ts | 4 ++-- .../extensions/erc4626/__generated__/IERC4626/write/mint.ts | 4 ++-- .../erc4626/__generated__/IERC4626/write/redeem.ts | 4 ++-- .../erc4626/__generated__/IERC4626/write/withdraw.ts | 4 ++-- .../__generated__/IERC6551Account/read/isValidSigner.ts | 4 ++-- .../erc6551/__generated__/IERC6551Account/read/state.ts | 5 ++--- .../erc6551/__generated__/IERC6551Account/read/token.ts | 5 ++--- .../erc721/__generated__/DropERC721/read/verifyClaim.ts | 4 ++-- .../__generated__/DropERC721/write/freezeBatchBaseURI.ts | 4 ++-- .../__generated__/DropERC721/write/setMaxTotalSupply.ts | 4 ++-- .../__generated__/DropERC721/write/updateBatchBaseURI.ts | 4 ++-- .../__generated__/IAirdropERC721/events/AirdropFailed.ts | 2 +- .../__generated__/IAirdropERC721/write/airdropERC721.ts | 4 ++-- .../IAirdropERC721Claimable/events/TokensClaimed.ts | 2 +- .../__generated__/IAirdropERC721Claimable/write/claim.ts | 4 ++-- .../__generated__/IBatchMintMetadata/read/getBaseURICount.ts | 5 ++--- .../IBatchMintMetadata/read/getBatchIdAtIndex.ts | 4 ++-- .../erc721/__generated__/IBurnableERC721/write/burn.ts | 4 ++-- .../__generated__/IClaimableERC721/events/TokensClaimed.ts | 2 +- .../erc721/__generated__/IClaimableERC721/write/claim.ts | 4 ++-- .../__generated__/IDelayedReveal/events/TokenURIRevealed.ts | 2 +- .../__generated__/IDelayedReveal/read/encryptDecrypt.ts | 4 ++-- .../__generated__/IDelayedReveal/read/encryptedData.ts | 4 ++-- .../erc721/__generated__/IDelayedReveal/write/reveal.ts | 4 ++-- .../erc721/__generated__/IDrop/events/TokensClaimed.ts | 2 +- .../erc721/__generated__/IDrop/read/baseURIIndices.ts | 4 ++-- .../erc721/__generated__/IDrop/read/claimCondition.ts | 5 ++--- .../__generated__/IDrop/read/getActiveClaimConditionId.ts | 5 ++--- .../erc721/__generated__/IDrop/read/getClaimConditionById.ts | 4 ++-- .../erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts | 5 ++--- .../src/extensions/erc721/__generated__/IDrop/write/claim.ts | 4 ++-- .../erc721/__generated__/IDrop/write/setClaimConditions.ts | 4 ++-- .../__generated__/IDropSinglePhase/events/TokensClaimed.ts | 2 +- .../__generated__/IDropSinglePhase/read/claimCondition.ts | 5 ++--- .../erc721/__generated__/IDropSinglePhase/write/claim.ts | 4 ++-- .../IDropSinglePhase/write/setClaimConditions.ts | 4 ++-- .../erc721/__generated__/IERC721A/events/Approval.ts | 2 +- .../erc721/__generated__/IERC721A/events/ApprovalForAll.ts | 2 +- .../erc721/__generated__/IERC721A/events/Transfer.ts | 2 +- .../erc721/__generated__/IERC721A/read/balanceOf.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/getApproved.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/isApprovedForAll.ts | 4 ++-- .../extensions/erc721/__generated__/IERC721A/read/name.ts | 5 ++--- .../extensions/erc721/__generated__/IERC721A/read/ownerOf.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/startTokenId.ts | 5 ++--- .../extensions/erc721/__generated__/IERC721A/read/symbol.ts | 5 ++--- .../erc721/__generated__/IERC721A/read/tokenURI.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/totalSupply.ts | 5 ++--- .../erc721/__generated__/IERC721A/write/approve.ts | 4 ++-- .../erc721/__generated__/IERC721A/write/safeTransferFrom.ts | 4 ++-- .../erc721/__generated__/IERC721A/write/setApprovalForAll.ts | 4 ++-- .../erc721/__generated__/IERC721A/write/transferFrom.ts | 4 ++-- .../IERC721AQueryable/events/ConsecutiveTransfer.ts | 2 +- .../__generated__/IERC721AQueryable/read/tokensOfOwner.ts | 4 ++-- .../__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts | 4 ++-- .../IERC721Enumerable/read/nextTokenIdToMint.ts | 5 ++--- .../__generated__/IERC721Enumerable/read/tokenByIndex.ts | 4 ++-- .../IERC721Enumerable/read/tokenOfOwnerByIndex.ts | 4 ++-- .../__generated__/IERC721Receiver/write/onERC721Received.ts | 4 ++-- .../__generated__/ILazyMint/events/TokensLazyMinted.ts | 2 +- .../erc721/__generated__/ILazyMint/write/lazyMint.ts | 4 ++-- .../__generated__/IMintableERC721/events/TokensMinted.ts | 2 +- .../erc721/__generated__/IMintableERC721/write/mintTo.ts | 4 ++-- .../__generated__/INFTMetadata/read/supportsInterface.ts | 4 ++-- .../__generated__/INFTMetadata/write/freezeMetadata.ts | 2 +- .../erc721/__generated__/INFTMetadata/write/setTokenURI.ts | 4 ++-- .../__generated__/INFTStake/write/depositRewardTokens.ts | 4 ++-- .../__generated__/INFTStake/write/withdrawRewardTokens.ts | 4 ++-- .../__generated__/ISharedMetadata/read/sharedMetadata.ts | 5 ++--- .../__generated__/ISharedMetadata/write/setSharedMetadata.ts | 4 ++-- .../ISharedMetadataBatch/events/SharedMetadataDeleted.ts | 2 +- .../ISharedMetadataBatch/events/SharedMetadataUpdated.ts | 2 +- .../ISharedMetadataBatch/read/getAllSharedMetadata.ts | 5 ++--- .../ISharedMetadataBatch/write/deleteSharedMetadata.ts | 4 ++-- .../ISharedMetadataBatch/write/setSharedMetadata.ts | 4 ++-- .../ISignatureMintERC721/events/TokensMintedWithSignature.ts | 2 +- .../erc721/__generated__/ISignatureMintERC721/read/verify.ts | 4 ++-- .../ISignatureMintERC721/write/mintWithSignature.ts | 4 ++-- .../events/TokensMintedWithSignature.ts | 2 +- .../__generated__/ISignatureMintERC721_v2/read/verify.ts | 4 ++-- .../ISignatureMintERC721_v2/write/mintWithSignature.ts | 4 ++-- .../__generated__/IStaking721/events/RewardsClaimed.ts | 2 +- .../erc721/__generated__/IStaking721/events/TokensStaked.ts | 2 +- .../__generated__/IStaking721/events/TokensWithdrawn.ts | 2 +- .../erc721/__generated__/IStaking721/read/getStakeInfo.ts | 4 ++-- .../erc721/__generated__/IStaking721/write/claimRewards.ts | 2 +- .../erc721/__generated__/IStaking721/write/stake.ts | 4 ++-- .../erc721/__generated__/IStaking721/write/withdraw.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/events/TokensMinted.ts | 2 +- .../LoyaltyCard/events/TokensMintedWithSignature.ts | 2 +- .../__generated__/LoyaltyCard/read/nextTokenIdToMint.ts | 5 ++--- .../__generated__/LoyaltyCard/read/supportsInterface.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/read/tokenURI.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/read/totalMinted.ts | 5 ++--- .../erc721/__generated__/LoyaltyCard/write/cancel.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/write/initialize.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/write/mintTo.ts | 4 ++-- .../__generated__/LoyaltyCard/write/mintWithSignature.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/write/revoke.ts | 4 ++-- .../erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts | 2 +- .../erc721/__generated__/Multiwrap/events/TokensWrapped.ts | 2 +- .../erc721/__generated__/Multiwrap/read/contractType.ts | 5 ++--- .../erc721/__generated__/Multiwrap/read/contractVersion.ts | 5 ++--- .../__generated__/Multiwrap/read/getWrappedContents.ts | 4 ++-- .../erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts | 5 ++--- .../erc721/__generated__/Multiwrap/read/supportsInterface.ts | 4 ++-- .../erc721/__generated__/Multiwrap/read/tokenURI.ts | 4 ++-- .../erc721/__generated__/Multiwrap/write/initialize.ts | 4 ++-- .../erc721/__generated__/Multiwrap/write/unwrap.ts | 4 ++-- .../extensions/erc721/__generated__/Multiwrap/write/wrap.ts | 4 ++-- .../__generated__/IRouterState/read/getAllExtensions.ts | 5 ++--- .../erc7579/__generated__/IERC7579Account/read/accountId.ts | 5 ++--- .../__generated__/IERC7579Account/read/isModuleInstalled.ts | 4 ++-- .../__generated__/IERC7579Account/read/isValidSignature.ts | 4 ++-- .../IERC7579Account/read/supportsExecutionMode.ts | 4 ++-- .../__generated__/IERC7579Account/read/supportsModule.ts | 4 ++-- .../erc7579/__generated__/IERC7579Account/write/execute.ts | 4 ++-- .../IERC7579Account/write/executeFromExecutor.ts | 4 ++-- .../__generated__/IERC7579Account/write/installModule.ts | 4 ++-- .../__generated__/IERC7579Account/write/uninstallModule.ts | 4 ++-- .../ModularAccountFactory/events/OwnershipTransferred.ts | 2 +- .../__generated__/ModularAccountFactory/events/Upgraded.ts | 2 +- .../ModularAccountFactory/read/accountImplementation.ts | 5 ++--- .../__generated__/ModularAccountFactory/read/entrypoint.ts | 5 ++--- .../__generated__/ModularAccountFactory/read/getAddress.ts | 4 ++-- .../ModularAccountFactory/read/implementation.ts | 5 ++--- .../__generated__/ModularAccountFactory/read/owner.ts | 5 ++--- .../__generated__/ModularAccountFactory/write/addStake.ts | 4 ++-- .../ModularAccountFactory/write/createAccountWithModules.ts | 4 ++-- .../ModularAccountFactory/write/renounceOwnership.ts | 2 +- .../ModularAccountFactory/write/transferOwnership.ts | 4 ++-- .../__generated__/ModularAccountFactory/write/unlockStake.ts | 2 +- .../__generated__/ModularAccountFactory/write/upgradeTo.ts | 4 ++-- .../__generated__/ModularAccountFactory/write/withdraw.ts | 4 ++-- .../ModularAccountFactory/write/withdrawStake.ts | 4 ++-- .../erc7702/__generated__/MinimalAccount/events/Executed.ts | 2 +- .../__generated__/MinimalAccount/events/SessionCreated.ts | 2 +- .../__generated__/MinimalAccount/read/eip712Domain.ts | 5 ++--- .../MinimalAccount/read/getCallPoliciesForSigner.ts | 4 ++-- .../MinimalAccount/read/getSessionExpirationForSigner.ts | 4 ++-- .../MinimalAccount/read/getSessionStateForSigner.ts | 4 ++-- .../MinimalAccount/read/getTransferPoliciesForSigner.ts | 4 ++-- .../__generated__/MinimalAccount/read/isWildcardSigner.ts | 4 ++-- .../MinimalAccount/write/createSessionWithSig.ts | 4 ++-- .../erc7702/__generated__/MinimalAccount/write/execute.ts | 4 ++-- .../__generated__/MinimalAccount/write/executeWithSig.ts | 4 ++-- .../farcaster/__generated__/IBundler/read/idGateway.ts | 5 ++--- .../farcaster/__generated__/IBundler/read/keyGateway.ts | 5 ++--- .../farcaster/__generated__/IBundler/read/price.ts | 4 ++-- .../farcaster/__generated__/IBundler/write/register.ts | 4 ++-- .../__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts | 5 ++--- .../farcaster/__generated__/IIdGateway/read/idRegistry.ts | 5 ++--- .../farcaster/__generated__/IIdGateway/read/price.ts | 4 ++-- .../__generated__/IIdGateway/read/storageRegistry.ts | 5 ++--- .../farcaster/__generated__/IIdGateway/write/register.ts | 4 ++-- .../farcaster/__generated__/IIdGateway/write/registerFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/events/AdminReset.ts | 2 +- .../IIdRegistry/events/ChangeRecoveryAddress.ts | 2 +- .../farcaster/__generated__/IIdRegistry/events/Recover.ts | 2 +- .../farcaster/__generated__/IIdRegistry/events/Register.ts | 2 +- .../farcaster/__generated__/IIdRegistry/events/Transfer.ts | 2 +- .../IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts | 5 ++--- .../read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts | 5 ++--- .../__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/custodyOf.ts | 4 ++-- .../__generated__/IIdRegistry/read/gatewayFrozen.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/idCounter.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/idGateway.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/idOf.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/read/recoveryOf.ts | 4 ++-- .../__generated__/IIdRegistry/read/verifyFidSignature.ts | 4 ++-- .../__generated__/IIdRegistry/write/changeRecoveryAddress.ts | 4 ++-- .../IIdRegistry/write/changeRecoveryAddressFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/recover.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/recoverFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/transfer.ts | 4 ++-- .../IIdRegistry/write/transferAndChangeRecovery.ts | 4 ++-- .../IIdRegistry/write/transferAndChangeRecoveryFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/transferFor.ts | 4 ++-- .../farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts | 5 ++--- .../farcaster/__generated__/IKeyGateway/read/keyRegistry.ts | 5 ++--- .../farcaster/__generated__/IKeyGateway/read/nonces.ts | 4 ++-- .../farcaster/__generated__/IKeyGateway/write/add.ts | 4 ++-- .../farcaster/__generated__/IKeyGateway/write/addFor.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/events/Add.ts | 2 +- .../__generated__/IKeyRegistry/events/AdminReset.ts | 2 +- .../farcaster/__generated__/IKeyRegistry/events/Remove.ts | 2 +- .../__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts | 5 ++--- .../__generated__/IKeyRegistry/read/gatewayFrozen.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/idRegistry.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/keyAt.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/read/keyGateway.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/keysOf.ts | 4 ++-- .../__generated__/IKeyRegistry/read/maxKeysPerFid.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/totalKeys.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/write/remove.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/write/removeFor.ts | 4 ++-- .../IStorageRegistry/read/deprecationTimestamp.ts | 5 ++--- .../__generated__/IStorageRegistry/read/maxUnits.ts | 5 ++--- .../farcaster/__generated__/IStorageRegistry/read/price.ts | 4 ++-- .../__generated__/IStorageRegistry/read/rentedUnits.ts | 5 ++--- .../__generated__/IStorageRegistry/read/unitPrice.ts | 5 ++--- .../__generated__/IStorageRegistry/read/usdUnitPrice.ts | 5 ++--- .../__generated__/IStorageRegistry/write/batchRent.ts | 4 ++-- .../farcaster/__generated__/IStorageRegistry/write/rent.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowData.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowTimestamp.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowTokenId.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowerCount.ts | 5 ++--- .../__generated__/FollowNFT/read/getFollowerProfileId.ts | 4 ++-- .../FollowNFT/read/getOriginalFollowTimestamp.ts | 4 ++-- .../FollowNFT/read/getProfileIdAllowedToRecover.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/isFollowing.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/mintTimestampOf.ts | 4 ++-- .../lens/__generated__/LensHandle/read/getHandle.ts | 4 ++-- .../LensHandle/read/getHandleTokenURIContract.ts | 5 ++--- .../lens/__generated__/LensHandle/read/getLocalName.ts | 4 ++-- .../lens/__generated__/LensHandle/read/getTokenId.ts | 4 ++-- .../src/extensions/lens/__generated__/LensHub/read/exists.ts | 4 ++-- .../lens/__generated__/LensHub/read/getContentURI.ts | 4 ++-- .../extensions/lens/__generated__/LensHub/read/getProfile.ts | 4 ++-- .../__generated__/LensHub/read/getProfileIdByHandleHash.ts | 4 ++-- .../lens/__generated__/LensHub/read/getPublication.ts | 4 ++-- .../lens/__generated__/LensHub/read/mintTimestampOf.ts | 4 ++-- .../src/extensions/lens/__generated__/LensHub/read/nonces.ts | 4 ++-- .../lens/__generated__/LensHub/read/tokenDataOf.ts | 4 ++-- .../lens/__generated__/ModuleRegistry/read/getModuleTypes.ts | 4 ++-- .../ModuleRegistry/read/isErc20CurrencyRegistered.ts | 4 ++-- .../__generated__/ModuleRegistry/read/isModuleRegistered.ts | 4 ++-- .../ModuleRegistry/read/isModuleRegisteredAs.ts | 4 ++-- .../TokenHandleRegistry/read/getDefaultHandle.ts | 4 ++-- .../lens/__generated__/TokenHandleRegistry/read/nonces.ts | 4 ++-- .../lens/__generated__/TokenHandleRegistry/read/resolve.ts | 4 ++-- .../IDirectListings/events/BuyerApprovedForListing.ts | 2 +- .../__generated__/IDirectListings/events/CancelledListing.ts | 2 +- .../IDirectListings/events/CurrencyApprovedForListing.ts | 2 +- .../__generated__/IDirectListings/events/NewListing.ts | 2 +- .../__generated__/IDirectListings/events/NewSale.ts | 2 +- .../__generated__/IDirectListings/events/UpdatedListing.ts | 2 +- .../IDirectListings/read/currencyPriceForListing.ts | 4 ++-- .../__generated__/IDirectListings/read/getAllListings.ts | 4 ++-- .../IDirectListings/read/getAllValidListings.ts | 4 ++-- .../__generated__/IDirectListings/read/getListing.ts | 4 ++-- .../IDirectListings/read/isBuyerApprovedForListing.ts | 4 ++-- .../IDirectListings/read/isCurrencyApprovedForListing.ts | 4 ++-- .../__generated__/IDirectListings/read/totalListings.ts | 5 ++--- .../IDirectListings/write/approveBuyerForListing.ts | 4 ++-- .../IDirectListings/write/approveCurrencyForListing.ts | 4 ++-- .../__generated__/IDirectListings/write/buyFromListing.ts | 4 ++-- .../__generated__/IDirectListings/write/cancelListing.ts | 4 ++-- .../__generated__/IDirectListings/write/createListing.ts | 4 ++-- .../__generated__/IDirectListings/write/updateListing.ts | 4 ++-- .../__generated__/IEnglishAuctions/events/AuctionClosed.ts | 2 +- .../IEnglishAuctions/events/CancelledAuction.ts | 2 +- .../__generated__/IEnglishAuctions/events/NewAuction.ts | 2 +- .../__generated__/IEnglishAuctions/events/NewBid.ts | 2 +- .../__generated__/IEnglishAuctions/read/getAllAuctions.ts | 4 ++-- .../IEnglishAuctions/read/getAllValidAuctions.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/getAuction.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/getWinningBid.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/isAuctionExpired.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/isNewWinningBid.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/totalAuctions.ts | 5 ++--- .../__generated__/IEnglishAuctions/write/bidInAuction.ts | 4 ++-- .../__generated__/IEnglishAuctions/write/cancelAuction.ts | 4 ++-- .../IEnglishAuctions/write/collectAuctionPayout.ts | 4 ++-- .../IEnglishAuctions/write/collectAuctionTokens.ts | 4 ++-- .../__generated__/IEnglishAuctions/write/createAuction.ts | 4 ++-- .../__generated__/IMarketplace/events/AuctionClosed.ts | 2 +- .../__generated__/IMarketplace/events/ListingAdded.ts | 2 +- .../__generated__/IMarketplace/events/ListingRemoved.ts | 2 +- .../__generated__/IMarketplace/events/ListingUpdated.ts | 2 +- .../__generated__/IMarketplace/events/NewOffer.ts | 2 +- .../marketplace/__generated__/IMarketplace/events/NewSale.ts | 2 +- .../IMarketplace/events/PlatformFeeInfoUpdated.ts | 2 +- .../__generated__/IMarketplace/read/contractType.ts | 5 ++--- .../__generated__/IMarketplace/read/contractURI.ts | 5 ++--- .../__generated__/IMarketplace/read/contractVersion.ts | 5 ++--- .../__generated__/IMarketplace/read/getPlatformFeeInfo.ts | 5 ++--- .../__generated__/IMarketplace/write/acceptOffer.ts | 4 ++-- .../marketplace/__generated__/IMarketplace/write/buy.ts | 4 ++-- .../__generated__/IMarketplace/write/cancelDirectListing.ts | 4 ++-- .../__generated__/IMarketplace/write/closeAuction.ts | 4 ++-- .../__generated__/IMarketplace/write/createListing.ts | 4 ++-- .../marketplace/__generated__/IMarketplace/write/offer.ts | 4 ++-- .../__generated__/IMarketplace/write/setContractURI.ts | 4 ++-- .../__generated__/IMarketplace/write/setPlatformFeeInfo.ts | 4 ++-- .../__generated__/IMarketplace/write/updateListing.ts | 4 ++-- .../__generated__/IOffers/events/AcceptedOffer.ts | 2 +- .../__generated__/IOffers/events/CancelledOffer.ts | 2 +- .../marketplace/__generated__/IOffers/events/NewOffer.ts | 2 +- .../marketplace/__generated__/IOffers/read/getAllOffers.ts | 4 ++-- .../__generated__/IOffers/read/getAllValidOffers.ts | 4 ++-- .../marketplace/__generated__/IOffers/read/getOffer.ts | 4 ++-- .../marketplace/__generated__/IOffers/read/totalOffers.ts | 5 ++--- .../marketplace/__generated__/IOffers/write/acceptOffer.ts | 4 ++-- .../marketplace/__generated__/IOffers/write/cancelOffer.ts | 4 ++-- .../marketplace/__generated__/IOffers/write/makeOffer.ts | 4 ++-- .../BatchMetadataERC1155/read/encodeBytesOnInstall.ts | 5 ++--- .../BatchMetadataERC1155/read/getAllMetadataBatches.ts | 5 ++--- .../__generated__/BatchMetadataERC1155/read/getBatchIndex.ts | 4 ++-- .../BatchMetadataERC1155/read/getMetadataBatch.ts | 4 ++-- .../BatchMetadataERC1155/read/getModuleConfig.ts | 5 ++--- .../__generated__/BatchMetadataERC1155/write/setBaseURI.ts | 4 ++-- .../BatchMetadataERC1155/write/uploadMetadata.ts | 4 ++-- .../BatchMetadataERC721/read/encodeBytesOnInstall.ts | 5 ++--- .../BatchMetadataERC721/read/getAllMetadataBatches.ts | 5 ++--- .../__generated__/BatchMetadataERC721/read/getBatchIndex.ts | 4 ++-- .../BatchMetadataERC721/read/getMetadataBatch.ts | 4 ++-- .../BatchMetadataERC721/read/getModuleConfig.ts | 5 ++--- .../__generated__/BatchMetadataERC721/write/setBaseURI.ts | 4 ++-- .../BatchMetadataERC721/write/uploadMetadata.ts | 4 ++-- .../modules/__generated__/ClaimableERC1155/module/install.ts | 4 ++-- .../ClaimableERC1155/read/getClaimConditionByTokenId.ts | 4 ++-- .../__generated__/ClaimableERC1155/read/getSaleConfig.ts | 5 ++--- .../ClaimableERC1155/write/setClaimConditionByTokenId.ts | 4 ++-- .../__generated__/ClaimableERC1155/write/setSaleConfig.ts | 4 ++-- .../modules/__generated__/ClaimableERC20/module/install.ts | 4 ++-- .../__generated__/ClaimableERC20/read/getClaimCondition.ts | 5 ++--- .../__generated__/ClaimableERC20/read/getSaleConfig.ts | 5 ++--- .../__generated__/ClaimableERC20/write/setClaimCondition.ts | 4 ++-- .../__generated__/ClaimableERC20/write/setSaleConfig.ts | 4 ++-- .../modules/__generated__/ClaimableERC721/module/install.ts | 4 ++-- .../__generated__/ClaimableERC721/read/getClaimCondition.ts | 5 ++--- .../__generated__/ClaimableERC721/read/getSaleConfig.ts | 5 ++--- .../__generated__/ClaimableERC721/write/setClaimCondition.ts | 4 ++-- .../__generated__/ClaimableERC721/write/setSaleConfig.ts | 4 ++-- .../modules/__generated__/ERC1155Core/write/burn.ts | 4 ++-- .../modules/__generated__/ERC1155Core/write/initialize.ts | 4 ++-- .../modules/__generated__/ERC1155Core/write/mint.ts | 4 ++-- .../__generated__/ERC1155Core/write/mintWithSignature.ts | 4 ++-- .../extensions/modules/__generated__/ERC20Core/write/burn.ts | 4 ++-- .../modules/__generated__/ERC20Core/write/initialize.ts | 4 ++-- .../extensions/modules/__generated__/ERC20Core/write/mint.ts | 4 ++-- .../__generated__/ERC20Core/write/mintWithSignature.ts | 4 ++-- .../modules/__generated__/ERC721Core/read/totalMinted.ts | 5 ++--- .../modules/__generated__/ERC721Core/write/burn.ts | 4 ++-- .../modules/__generated__/ERC721Core/write/initialize.ts | 4 ++-- .../modules/__generated__/ERC721Core/write/mint.ts | 4 ++-- .../__generated__/ERC721Core/write/mintWithSignature.ts | 4 ++-- .../__generated__/IModularCore/read/getInstalledModules.ts | 5 ++--- .../IModularCore/read/getSupportedCallbackFunctions.ts | 5 ++--- .../__generated__/IModularCore/read/supportsInterface.ts | 4 ++-- .../__generated__/IModularCore/write/installModule.ts | 4 ++-- .../__generated__/IModularCore/write/uninstallModule.ts | 4 ++-- .../modules/__generated__/IModule/read/getModuleConfig.ts | 5 ++--- .../modules/__generated__/MintableERC1155/module/install.ts | 4 ++-- .../__generated__/MintableERC1155/read/getSaleConfig.ts | 5 ++--- .../__generated__/MintableERC1155/write/setSaleConfig.ts | 4 ++-- .../__generated__/MintableERC1155/write/setTokenURI.ts | 4 ++-- .../modules/__generated__/MintableERC20/module/install.ts | 4 ++-- .../__generated__/MintableERC20/read/getSaleConfig.ts | 5 ++--- .../__generated__/MintableERC20/write/setSaleConfig.ts | 4 ++-- .../__generated__/MintableERC721/events/NewMetadataBatch.ts | 2 +- .../modules/__generated__/MintableERC721/module/install.ts | 4 ++-- .../__generated__/MintableERC721/read/getSaleConfig.ts | 5 ++--- .../__generated__/MintableERC721/write/setSaleConfig.ts | 4 ++-- .../OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts | 5 ++--- .../OpenEditionMetadataERC721/read/onTokenURI.ts | 4 ++-- .../OpenEditionMetadataERC721/write/setSharedMetadata.ts | 4 ++-- .../OwnableRoles/events/OwnershipHandoverCanceled.ts | 2 +- .../OwnableRoles/events/OwnershipHandoverRequested.ts | 2 +- .../OwnableRoles/events/OwnershipTransferred.ts | 2 +- .../__generated__/OwnableRoles/events/RolesUpdated.ts | 2 +- .../modules/__generated__/OwnableRoles/read/hasAllRoles.ts | 4 ++-- .../modules/__generated__/OwnableRoles/read/hasAnyRole.ts | 4 ++-- .../modules/__generated__/OwnableRoles/read/owner.ts | 5 ++--- .../OwnableRoles/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../modules/__generated__/OwnableRoles/read/rolesOf.ts | 4 ++-- .../OwnableRoles/write/cancelOwnershipHandover.ts | 2 +- .../OwnableRoles/write/completeOwnershipHandover.ts | 4 ++-- .../modules/__generated__/OwnableRoles/write/grantRoles.ts | 4 ++-- .../__generated__/OwnableRoles/write/renounceOwnership.ts | 2 +- .../__generated__/OwnableRoles/write/renounceRoles.ts | 4 ++-- .../OwnableRoles/write/requestOwnershipHandover.ts | 2 +- .../modules/__generated__/OwnableRoles/write/revokeRoles.ts | 4 ++-- .../__generated__/OwnableRoles/write/transferOwnership.ts | 4 ++-- .../RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts | 2 +- .../RoyaltyERC1155/events/TokenRoyaltyUpdated.ts | 2 +- .../modules/__generated__/RoyaltyERC1155/module/install.ts | 4 ++-- .../RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts | 5 ++--- .../RoyaltyERC1155/read/getRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC1155/read/getTransferValidationFunction.ts | 5 ++--- .../RoyaltyERC1155/read/getTransferValidator.ts | 5 ++--- .../modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts | 4 ++-- .../RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts | 4 ++-- .../RoyaltyERC1155/write/setRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC1155/write/setTransferValidator.ts | 4 ++-- .../RoyaltyERC721/events/DefaultRoyaltyUpdated.ts | 2 +- .../RoyaltyERC721/events/TokenRoyaltyUpdated.ts | 2 +- .../modules/__generated__/RoyaltyERC721/module/install.ts | 4 ++-- .../RoyaltyERC721/read/getDefaultRoyaltyInfo.ts | 5 ++--- .../RoyaltyERC721/read/getRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC721/read/getTransferValidationFunction.ts | 5 ++--- .../__generated__/RoyaltyERC721/read/getTransferValidator.ts | 5 ++--- .../modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts | 4 ++-- .../RoyaltyERC721/write/setDefaultRoyaltyInfo.ts | 4 ++-- .../RoyaltyERC721/write/setRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC721/write/setTransferValidator.ts | 4 ++-- .../__generated__/SequentialTokenIdERC1155/module/install.ts | 4 ++-- .../SequentialTokenIdERC1155/read/getModuleConfig.ts | 5 ++--- .../SequentialTokenIdERC1155/read/getNextTokenId.ts | 5 ++--- .../SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts | 4 ++-- .../TransferableERC1155/read/encodeBytesOnInstall.ts | 5 ++--- .../TransferableERC1155/read/isTransferEnabled.ts | 5 ++--- .../TransferableERC1155/read/isTransferEnabledFor.ts | 4 ++-- .../TransferableERC1155/write/setTransferable.ts | 4 ++-- .../TransferableERC1155/write/setTransferableFor.ts | 4 ++-- .../TransferableERC20/read/encodeBytesOnInstall.ts | 5 ++--- .../TransferableERC20/read/isTransferEnabled.ts | 5 ++--- .../TransferableERC20/read/isTransferEnabledFor.ts | 4 ++-- .../__generated__/TransferableERC20/write/setTransferable.ts | 4 ++-- .../TransferableERC20/write/setTransferableFor.ts | 4 ++-- .../TransferableERC721/read/encodeBytesOnInstall.ts | 5 ++--- .../TransferableERC721/read/isTransferEnabled.ts | 5 ++--- .../TransferableERC721/read/isTransferEnabledFor.ts | 4 ++-- .../TransferableERC721/write/setTransferable.ts | 4 ++-- .../TransferableERC721/write/setTransferableFor.ts | 4 ++-- .../multicall3/__generated__/IMulticall3/read/getBasefee.ts | 5 ++--- .../__generated__/IMulticall3/read/getBlockHash.ts | 4 ++-- .../__generated__/IMulticall3/read/getBlockNumber.ts | 5 ++--- .../multicall3/__generated__/IMulticall3/read/getChainId.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockCoinbase.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockDifficulty.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockGasLimit.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockTimestamp.ts | 5 ++--- .../__generated__/IMulticall3/read/getEthBalance.ts | 4 ++-- .../__generated__/IMulticall3/read/getLastBlockHash.ts | 5 ++--- .../multicall3/__generated__/IMulticall3/write/aggregate.ts | 4 ++-- .../multicall3/__generated__/IMulticall3/write/aggregate3.ts | 4 ++-- .../__generated__/IMulticall3/write/aggregate3Value.ts | 4 ++-- .../__generated__/IMulticall3/write/blockAndAggregate.ts | 4 ++-- .../__generated__/IMulticall3/write/tryAggregate.ts | 4 ++-- .../__generated__/IMulticall3/write/tryBlockAndAggregate.ts | 4 ++-- .../pack/__generated__/IPack/events/PackCreated.ts | 2 +- .../extensions/pack/__generated__/IPack/events/PackOpened.ts | 2 +- .../pack/__generated__/IPack/events/PackUpdated.ts | 2 +- .../pack/__generated__/IPack/read/canUpdatePack.ts | 4 ++-- .../pack/__generated__/IPack/read/getPackContents.ts | 4 ++-- .../pack/__generated__/IPack/read/getTokenCountOfBundle.ts | 4 ++-- .../pack/__generated__/IPack/read/getTokenOfBundle.ts | 4 ++-- .../pack/__generated__/IPack/read/getUriOfBundle.ts | 4 ++-- .../pack/__generated__/IPack/write/addPackContents.ts | 4 ++-- .../extensions/pack/__generated__/IPack/write/createPack.ts | 4 ++-- .../extensions/pack/__generated__/IPack/write/openPack.ts | 4 ++-- .../__generated__/IPackVRFDirect/events/PackOpenRequested.ts | 2 +- .../IPackVRFDirect/events/PackRandomnessFulfilled.ts | 2 +- .../__generated__/IPackVRFDirect/read/canClaimRewards.ts | 4 ++-- .../pack/__generated__/IPackVRFDirect/write/claimRewards.ts | 2 +- .../IPackVRFDirect/write/openPackAndClaimRewards.ts | 4 ++-- .../__generated__/IPermissions/events/RoleAdminChanged.ts | 2 +- .../__generated__/IPermissions/events/RoleGranted.ts | 2 +- .../__generated__/IPermissions/events/RoleRevoked.ts | 2 +- .../__generated__/IPermissions/read/getRoleAdmin.ts | 4 ++-- .../permissions/__generated__/IPermissions/read/hasRole.ts | 4 ++-- .../__generated__/IPermissions/write/grantRole.ts | 4 ++-- .../__generated__/IPermissions/write/renounceRole.ts | 4 ++-- .../__generated__/IPermissions/write/revokeRole.ts | 4 ++-- .../IPermissionsEnumerable/events/RoleAdminChanged.ts | 2 +- .../IPermissionsEnumerable/events/RoleGranted.ts | 2 +- .../IPermissionsEnumerable/events/RoleRevoked.ts | 2 +- .../IPermissionsEnumerable/read/getRoleAdmin.ts | 4 ++-- .../IPermissionsEnumerable/read/getRoleMember.ts | 4 ++-- .../IPermissionsEnumerable/read/getRoleMemberCount.ts | 4 ++-- .../__generated__/IPermissionsEnumerable/read/hasRole.ts | 4 ++-- .../__generated__/IPermissionsEnumerable/write/grantRole.ts | 4 ++-- .../IPermissionsEnumerable/write/renounceRole.ts | 4 ++-- .../__generated__/IPermissionsEnumerable/write/revokeRole.ts | 4 ++-- .../prebuilts/__generated__/DropERC1155/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/DropERC20/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/DropERC721/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/Marketplace/write/initialize.ts | 4 ++-- .../__generated__/OpenEditionERC721/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/Pack/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/Split/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/TokenERC1155/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/TokenERC20/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/TokenERC721/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/VoteERC20/write/initialize.ts | 4 ++-- .../src/extensions/split/__generated__/Split/read/payee.ts | 4 ++-- .../extensions/split/__generated__/Split/read/payeeCount.ts | 5 ++--- .../extensions/split/__generated__/Split/read/releasable.ts | 4 ++-- .../extensions/split/__generated__/Split/read/released.ts | 4 ++-- .../src/extensions/split/__generated__/Split/read/shares.ts | 4 ++-- .../split/__generated__/Split/read/totalReleased.ts | 5 ++--- .../extensions/split/__generated__/Split/read/totalShares.ts | 5 ++--- .../extensions/split/__generated__/Split/write/distribute.ts | 2 +- .../extensions/split/__generated__/Split/write/release.ts | 4 ++-- .../stylus/__generated__/IArbWasm/read/codehashVersion.ts | 4 ++-- .../stylus/__generated__/IArbWasm/write/activateProgram.ts | 4 ++-- .../IStylusConstructor/write/stylus_constructor.ts | 2 +- .../stylus/__generated__/IStylusDeployer/write/deploy.ts | 4 ++-- .../extensions/thirdweb/__generated__/IAppURI/read/appURI.ts | 5 ++--- .../thirdweb/__generated__/IAppURI/write/setAppURI.ts | 4 ++-- .../__generated__/IContractFactory/events/ProxyDeployed.ts | 2 +- .../__generated__/IContractFactory/events/ProxyDeployedV2.ts | 2 +- .../IContractFactory/write/deployProxyByImplementation.ts | 4 ++-- .../IContractFactory/write/deployProxyByImplementationV2.ts | 4 ++-- .../IContractPublisher/events/ContractPublished.ts | 2 +- .../IContractPublisher/events/ContractUnpublished.ts | 2 +- .../IContractPublisher/events/PublisherProfileUpdated.ts | 2 +- .../IContractPublisher/read/getAllPublishedContracts.ts | 4 ++-- .../IContractPublisher/read/getPublishedContract.ts | 4 ++-- .../IContractPublisher/read/getPublishedContractVersions.ts | 4 ++-- .../read/getPublishedUriFromCompilerUri.ts | 4 ++-- .../IContractPublisher/read/getPublisherProfileUri.ts | 4 ++-- .../IContractPublisher/write/publishContract.ts | 4 ++-- .../IContractPublisher/write/setPublisherProfileUri.ts | 4 ++-- .../IContractPublisher/write/unpublishContract.ts | 4 ++-- .../__generated__/IRulesEngine/events/RuleCreated.ts | 2 +- .../__generated__/IRulesEngine/events/RuleDeleted.ts | 2 +- .../IRulesEngine/events/RulesEngineOverriden.ts | 2 +- .../thirdweb/__generated__/IRulesEngine/read/getAllRules.ts | 5 ++--- .../IRulesEngine/read/getRulesEngineOverride.ts | 5 ++--- .../thirdweb/__generated__/IRulesEngine/read/getScore.ts | 4 ++-- .../IRulesEngine/write/createRuleMultiplicative.ts | 4 ++-- .../__generated__/IRulesEngine/write/createRuleThreshold.ts | 4 ++-- .../thirdweb/__generated__/IRulesEngine/write/deleteRule.ts | 4 ++-- .../IRulesEngine/write/setRulesEngineOverride.ts | 4 ++-- .../__generated__/ISignatureAction/events/RequestExecuted.ts | 2 +- .../thirdweb/__generated__/ISignatureAction/read/verify.ts | 4 ++-- .../thirdweb/__generated__/ITWFee/read/getFeeInfo.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/events/Added.ts | 2 +- .../__generated__/ITWMultichainRegistry/events/Deleted.ts | 2 +- .../__generated__/ITWMultichainRegistry/read/count.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/read/getAll.ts | 4 ++-- .../ITWMultichainRegistry/read/getMetadataUri.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/write/add.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/write/remove.ts | 4 ++-- .../__generated__/IThirdwebContract/read/contractType.ts | 5 ++--- .../__generated__/IThirdwebContract/read/contractURI.ts | 5 ++--- .../__generated__/IThirdwebContract/read/contractVersion.ts | 5 ++--- .../__generated__/IThirdwebContract/write/setContractURI.ts | 4 ++-- .../uniswap/__generated__/IQuoter/write/quoteExactInput.ts | 4 ++-- .../__generated__/IQuoter/write/quoteExactInputSingle.ts | 4 ++-- .../uniswap/__generated__/IQuoter/write/quoteExactOutput.ts | 4 ++-- .../__generated__/IQuoter/write/quoteExactOutputSingle.ts | 4 ++-- .../uniswap/__generated__/ISwapRouter/write/exactInput.ts | 4 ++-- .../__generated__/ISwapRouter/write/exactInputSingle.ts | 4 ++-- .../uniswap/__generated__/ISwapRouter/write/exactOutput.ts | 4 ++-- .../__generated__/ISwapRouter/write/exactOutputSingle.ts | 4 ++-- .../__generated__/IUniswapV3Factory/events/OwnerChanged.ts | 2 +- .../__generated__/IUniswapV3Factory/events/PoolCreated.ts | 2 +- .../IUniswapV3Factory/read/feeAmountTickSpacing.ts | 4 ++-- .../uniswap/__generated__/IUniswapV3Factory/read/getPool.ts | 4 ++-- .../uniswap/__generated__/IUniswapV3Factory/read/owner.ts | 5 ++--- .../__generated__/IUniswapV3Factory/write/createPool.ts | 4 ++-- .../__generated__/IUniswapV3Factory/write/enableFeeAmount.ts | 4 ++-- .../__generated__/IUniswapV3Factory/write/setOwner.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/exists.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/getMany.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/namehash.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/reverseNameOf.ts | 4 ++-- .../vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts | 5 ++--- .../vote/__generated__/Vote/read/getAllProposals.ts | 5 ++--- .../src/extensions/vote/__generated__/Vote/read/getVotes.ts | 4 ++-- .../vote/__generated__/Vote/read/getVotesWithParams.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/hasVoted.ts | 4 ++-- .../extensions/vote/__generated__/Vote/read/hashProposal.ts | 4 ++-- .../vote/__generated__/Vote/read/proposalDeadline.ts | 4 ++-- .../extensions/vote/__generated__/Vote/read/proposalIndex.ts | 5 ++--- .../vote/__generated__/Vote/read/proposalSnapshot.ts | 4 ++-- .../vote/__generated__/Vote/read/proposalThreshold.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/proposalVotes.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/proposals.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/quorum.ts | 4 ++-- .../vote/__generated__/Vote/read/quorumDenominator.ts | 5 ++--- .../src/extensions/vote/__generated__/Vote/read/state.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/token.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/votingDelay.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/votingPeriod.ts | 5 ++--- .../src/extensions/vote/__generated__/Vote/write/castVote.ts | 4 ++-- .../vote/__generated__/Vote/write/castVoteBySig.ts | 4 ++-- .../vote/__generated__/Vote/write/castVoteWithReason.ts | 4 ++-- .../__generated__/Vote/write/castVoteWithReasonAndParams.ts | 4 ++-- .../Vote/write/castVoteWithReasonAndParamsBySig.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/write/execute.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/write/propose.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/write/relay.ts | 4 ++-- .../vote/__generated__/Vote/write/setProposalThreshold.ts | 4 ++-- .../vote/__generated__/Vote/write/setVotingDelay.ts | 4 ++-- .../vote/__generated__/Vote/write/setVotingPeriod.ts | 4 ++-- .../vote/__generated__/Vote/write/updateQuorumNumerator.ts | 4 ++-- .../ContractDeployer/events/ContractDeployed.ts | 2 +- 971 files changed, 1740 insertions(+), 1909 deletions(-) diff --git a/packages/thirdweb/src/exports/assets.ts b/packages/thirdweb/src/exports/assets.ts index a2cbef1ae7a..93ed3352279 100644 --- a/packages/thirdweb/src/exports/assets.ts +++ b/packages/thirdweb/src/exports/assets.ts @@ -18,5 +18,5 @@ export type { PoolConfig, TokenParams, } from "../assets/types.js"; -export { getInitBytecodeWithSalt } from "../utils/any-evm/get-init-bytecode-with-salt.js"; export { getReward } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.js"; +export { getInitBytecodeWithSalt } from "../utils/any-evm/get-init-bytecode-with-salt.js"; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts index f256c499527..15223a95af0 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnerUpdated" event. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts index 0f3e6933df7..24655af712b 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts index 4ead09e35b3..46b4bcdfdd2 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isClaimed" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts index eee9df78552..eb5900f0f41 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts index fa0dfaf9998..c2ce62b7098 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenConditionId" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts index cf0f7ee9db1..5d50983fac2 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenMerkleRoot" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts index e7d492f3570..e05aab2b4a4 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC1155" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts index f3dfb2d6509..eae334d39f6 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC1155WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts index fa9bd57d7f7..c3be854e05e 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC20" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts index 23bf45ea43f..072a582ec09 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC20WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts index 0ee231575e2..18da4c5fe0d 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC721" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts index 303a8d546b6..a2c687402e0 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC721WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts index 0f24fc95697..4d8b5529030 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropNativeToken" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts index 80eb7e26bc7..16dc6eba70d 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimERC1155" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts index ba5895a0c69..6b9a8eec9ba 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimERC20" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts index c14bfa26737..acc2fcc4d1b 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimERC721" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts index f835779317c..e53174e9118 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts index a9efda55328..c0c704d7b6d 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setMerkleRoot" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts index b432dc441f4..ac3e96fb68e 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts index 9eabdaeaaa7..d4dbe662838 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AssetInfraDeployed" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts index 437686f8a5b..2b4baa04753 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deployInfraProxyDeterministic" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts index c163264f500..3d729a7e69a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts index 2ab8996b8d3..326928983b5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts index a498506409a..b7e8608233d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts index b1be6e750e1..b97cc481307 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts index 966872e8e8e..2f6ca48ee78 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts index 9d4decaf62a..6b073808cd4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts index 8ce23927dd8..1c00e9783a2 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts index 94ad6c49f8c..a790fc735fe 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts index b6823beee40..cf11c8dc22b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts index 5df67764e49..cc115a55974 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts index 6fd19af5893..42242a61796 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts index 4594b063bd0..e72a50e7432 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts index 9903177bd12..9a497818fa5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts index 5625095f262..48ca2e48867 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts index 0ae59f66e8f..5a0be932b41 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts index 717ca59cb9e..25119f40b19 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts index 1ae861539a0..17426e76558 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts index 9795cbcb955..5b5ece681a5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts index 636d1cb5503..3ffb92d60dc 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts index fd9bdeb8ac7..39fa7c6d344 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts index a1e60004b43..89b15b8c239 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts index c4bf81966fe..b4cdc7364a8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts index 4787e7cf6f3..7a44c4e8018 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts index 472b88b0954..e619caed7a4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts index 7b8b575e3b4..6b9b9db57a4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts index e0744619fae..5826bb0ee25 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts index 432d7cc92dd..b8ea8d16edd 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts index ec9cf538807..1da41ddcc7b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts index ae3ed16352b..97d4537e18b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts index 36f0df68e14..52e932c37eb 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.ts index 96c1d21407b..ac7610bb3b8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AssetCreated" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/ImplementationAdded.ts index ea39ab990d0..c399fba1348 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/ImplementationAdded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/ImplementationAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ImplementationAdded" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts index 2ab8996b8d3..326928983b5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts index a498506409a..b7e8608233d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts index b1be6e750e1..b97cc481307 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Upgraded.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Upgraded.ts index 5ab5634fb24..0869e1f4557 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts index d800984ead2..7e208cf9b3b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "decodeOwnerFromInitData" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts index 658c082cc3e..d69fe4f40ca 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd25f82a0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getImplementation.ts index 5e705cc3f3d..d052841976b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getImplementation.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getImplementation.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getImplementation" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.ts index 608e593b41f..fa276412de3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getReward" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardLocker.ts index dbe2181ab56..1a5d7085181 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardLocker.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardLocker.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb0188df2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.ts index f90e6da4cde..6599cf64ec8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb0f479a1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts index 3d9bda9fed2..4299c978eb8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "guardSalt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts index 9903177bd12..9a497818fa5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts index 5625095f262..48ca2e48867 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts index 79e47ec49be..7549a513757 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "predictAssetAddress" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts index 779c4909a3a..2e8b5fa5534 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "predictAssetAddressByConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts index fd62cd8e007..a056bb26e0d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/addImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/addImplementation.ts index 1928273a182..78c5a64e132 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/addImplementation.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/addImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addImplementation" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/buyAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/buyAsset.ts index 390056c69ad..0f1092909ad 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/buyAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/buyAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "buyAsset" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts index a1e60004b43..89b15b8c239 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimReward.ts index 0362086ed0e..1398704dfb8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimReward.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimReward" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts index c4bf81966fe..b4cdc7364a8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.ts index 3ab09e5350e..710f8a59151 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAsset" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetById.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetById.ts index 5c79d94b26a..c0af4b9621a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetById.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetById.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAssetById" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts index 4c3c7c73308..69481353ce3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAssetByImplementationConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.ts index 49d845a11d2..212da9f5c79 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "distributeAsset" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/initialize.ts index 9b4ed568539..8f97709f1ef 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts index ff12a1e5de2..68b67e5b8e9 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "listAsset" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts index 7b8b575e3b4..6b9b9db57a4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts index e0744619fae..5826bb0ee25 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/sellAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/sellAsset.ts index df1ea6b0785..7f4d53080d1 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/sellAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/sellAsset.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "sellAsset" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts index 98ea672ed10..5045baddf45 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setAirdrop" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRewardLocker.ts index 159899d75b1..26f1da040b3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRewardLocker.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRewardLocker.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRewardLocker" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRouter.ts index 5245d9c150d..d9c4892d9d7 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRouter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRouter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRouter" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts index 36f0df68e14..52e932c37eb 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts index 63e1152f422..673b1ef2dec 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts index 5128c83b16d..ce7b1c6f4df 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "FeeConfigUpdated" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts index d32666975bc..ac6938b7351 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "FeeConfigUpdatedBySignature" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts index 2ab8996b8d3..326928983b5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts index a498506409a..b7e8608233d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts index b1be6e750e1..b97cc481307 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts index 67aa23f71ff..8af28f86cda 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts index 449bf58bc2a..d97a44b8e6a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x99ba5936" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts index 325ff4c94df..5e88bc93e4f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "calculateFee" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts index 2d3a7ff9ee3..ba2ff26a9e3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xf698da25" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts index 652bbb76ec8..421de432c4d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts index 616184e5f1f..74d6941aef1 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "feeConfigs" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts index fe9c0c425b3..bb5a72deae6 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x46904840" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts index b8de65828ce..d281419863f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts index 05ec4d41cb2..818afa6bdad 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts index 11e595201f3..95991a7c780 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts index 9903177bd12..9a497818fa5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts index 5625095f262..48ca2e48867 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts index e64c25fe267..0a4a956a84e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts index b84a31b53b7..99db4913098 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "usedNonces" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts index a1e60004b43..89b15b8c239 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts index c4bf81966fe..b4cdc7364a8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts index b2469579e29..84020071e34 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts index 7b8b575e3b4..6b9b9db57a4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts index fa83b586359..c25e20d6c27 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts index e0744619fae..5826bb0ee25 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts index c6450bfcd50..345883da046 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts index fdf708570f0..8b10233558e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts index dac81287896..f8e2b8c1f86 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeConfigBySignature" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts index df6cb2b220c..9ddc0013590 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeRecipient" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts index abd3a0e6f54..21e8e3afa73 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTargetFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts index 36f0df68e14..52e932c37eb 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts index 1081dc5be42..65d0888d40d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PositionLocked" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts index cd14273ff7e..4eed15b8769 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardCollected" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts index 8a54aadd7b9..c7f3d8dcf25 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd0fb0203" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts index 4aebc340c58..4caa2d5af46 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "positions" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts index 6ffae04260c..f277a7a5649 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x39406c50" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts index 9af4367be8e..1c38c7fdc73 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe2f4dd43" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts index 13d69cc10d5..4a18acd4268 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "collectReward" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts index c64436a0278..03af4e56211 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "lockPosition" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts index 2ab8996b8d3..326928983b5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts index a498506409a..b7e8608233d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts index b1be6e750e1..b97cc481307 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts index a5e453c7717..f9dc48bab16 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SwapExecuted" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts index 5ab5634fb24..0869e1f4557 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts index b7a3a2b4481..32f5330401f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x31f7d964" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts index 9903177bd12..9a497818fa5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts index 5625095f262..48ca2e48867 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts index fd62cd8e007..a056bb26e0d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts index a1e60004b43..89b15b8c239 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts index c4bf81966fe..b4cdc7364a8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts index bece8074748..da24e172a44 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createMarket" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts index 099fc89f3d8..c6f2e21345f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPool" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts index e337f719658..e77b5424a89 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "disableAdapter" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts index a8eac8c28d5..eeaaed700cf 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "enableAdapter" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts index 3c12ac4ee92..dbe972101c4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts index 7b8b575e3b4..6b9b9db57a4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts index e0744619fae..5826bb0ee25 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts index 4d51ce7fe8e..d0db081529a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "swap" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts index 36f0df68e14..52e932c37eb 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts index 63e1152f422..673b1ef2dec 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts index 56c279e35ce..4566ae533d4 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts index 2ea7753de27..d50373e8312 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts index 3ffea0690fc..1b93894ecfe 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts index bb275da2f18..3ded3f5529b 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts index da4fc19dbd4..f7240e15589 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts index 191addedb4a..d88bb911cfe 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "multicall" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts index b4114846977..08af112996e 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnerUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts index 91c7d953571..e7d18e25f94 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts index ccd898be5ea..5e69d08ca21 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts index 2db6b4f4412..dbe8285a417 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts index 8a762797f05..8ea7d761d26 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts index 4dd68636156..efa7ad2fe4d 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts index 435c2f003e0..ad050c4dd3a 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PrimarySaleRecipientUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts index d5bc32a66fd..56a38752334 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x079fe40e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts index 1700a8c5103..66173a2a58e 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPrimarySaleRecipient" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts index bda5d833de1..3ddbd97fa3b 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DefaultRoyalty" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts index 4dea19eac28..55dc7b798a4 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoyaltyForToken" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts index 35b885df948..586f785dd19 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts index df38082ccab..aa5aa6ebb79 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts index 9b63a90861b..7d580f21ede 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts index 2ac55df9cbf..407137179d0 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts index d50f9564b26..fdce2d9c969 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts index 7ea6f0a96e3..148ebb62fa3 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts index 4de63a5df08..9fe313c9645 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoyaltyEngineUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts index 2ac55df9cbf..407137179d0 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts index a2f63658455..8c871ee8dc9 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "getRoyalty" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts index 6b3ae0a2749..668627644da 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyEngine" function. diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts index e3a8808253c..6b40fa433e9 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts index 6ad5e011e49..d1966acff79 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addExtension" function. diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts index 34a7822686b..6374a15b117 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "removeExtension" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts index 73082960b11..bf73a866568 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ABI" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts index bad6f8ddea0..83af7231f72 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "addr" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts index dc86243a44a..ebb71e668dd 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "contenthash" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts index 660beaf8001..2de03b0c45e 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "name" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts index 26356b9a164..6ce678c089c 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "pubkey" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts index 48245cd713c..3faa66e172e 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "text" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts index 578f2a95426..63713f86a03 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "name" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts index 3fe798c55dd..9695a690140 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "resolve" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts index 6fe4e4d1c1f..f84f14b8d2d 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "reverse" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts index c676d387afb..73f45348e7c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts index 0c3088f8948..813a7ef5345 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts index b4467275ef2..b90d560ba70 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts index 6684c87c397..fe5b329335e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts index 55a70ef2392..f14b243d535 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts index 5076f66c719..81f578628a1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleRecipientForToken" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts index 0c718deff5a..be277b363a4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts index 2762fcdd17d..14dd8c83769 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts index df9e69cfcfb..660ef2ad7d5 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC1155" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts index fa7b986927c..959e9340680 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts index 7ec6e819a8d..9ec1ee4692a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts index f36a7e6d858..95abdf2729c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts index 630fd7070d8..32bc00e804b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burnBatch" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts index fa7b986927c..959e9340680 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts index daeeb9564ec..644c3576dd3 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts index 777715966d4..ee38633afc3 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ClaimConditionsUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts index e1accf0d244..02f82ec5124 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts index 64dd8ca345d..deec1d69026 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "claimCondition" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts index 1684879b155..dcff83944d7 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getActiveClaimConditionId" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts index 7da28e54495..df3813b2551 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts index 8c3db1e8d27..d00ef37b669 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts index 36b0884c34c..8874dae7893 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts index 21040cdf986..298f234735b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ClaimConditionUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts index fa7b986927c..959e9340680 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts index 04b44c4486c..36b144c74be 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "claimCondition" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts index 8c3db1e8d27..d00ef37b669 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts index 043ca48332c..4b83811da0d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts index 96daa76e1c0..b78452a80a4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ApprovalForAll" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts index e293e23488c..fe5cb14013f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TransferBatch" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts index 43726f4eeea..2f0cdab107a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TransferSingle" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts index 4993d85f7ee..3888a8693f8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "URI" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts index 06edf5575c1..a9de58c8de5 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts index ecfeac7aa8a..8929fab3b89 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOfBatch" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts index ae49f338a36..3a13e7d4011 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isApprovedForAll" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts index 293d69ec291..99962350074 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "totalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts index 16c6c93fc3b..1d746a402a6 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "uri" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts index 69941c9ab48..21f4d03cbc7 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "safeBatchTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts index 31dc293f5dc..990d55e78c4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "safeTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts index 4d62b4b8e95..540376e8822 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setApprovalForAll" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts index 19dddf43c7c..edf264b16d5 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts index 0a0627687ed..28cca2da663 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts index b21c1c5e90d..72454a87201 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onERC1155BatchReceived" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts index cb3d27032ac..16eff631963 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onERC1155Received" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts index 4f7225de3d2..a721d8b21df 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts index aab127edc73..f50c34dc977 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts index dd2a413af02..0b35913b5bb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensLazyMinted" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts index 5a175f1a89f..5326d8c783b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "lazyMint" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts index 45a4d431a21..1639017dea7 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts index b28be8d3f50..fa194b737b1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts index 0a0627687ed..28cca2da663 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts index 0ce21caab41..003e54a53cc 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts index 3d42dad88ac..ada2b7be565 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts index a2f1c1da7bb..c6376f6f324 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackCreated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts index aa6b44b5de6..e1882226a08 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpened" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts index 7b9a4ae3ada..5353551e981 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts index 651159cc31f..d937bb002f9 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPack" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts index b76754ccb3e..ab20ae3048d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPack" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index 1700b14ae6d..877c44e06ab 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpenRequested" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index 973a8afa50d..de793650734 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackRandomnessFulfilled" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts index dad4ba854e1..95900c4c2c0 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "canClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts index f27ff5f2568..4b53484ee6f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index a062fe62999..d9b0f36898b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts index ca1f6d20821..3a3d4ab049f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts index 09bb704a2ca..16cec785cf1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts index 6a85a154053..4906fe81e4b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts index 3caf37ca828..1359ef370de 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts index 57cc777cc94..91cac84cb8e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts index 93b50de0267..ac580fa73c8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts index cc60bb803ec..17da59ab8da 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UpdatedRewardsPerUnitTime" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts index 1bdc0e9edab..036d3d395a8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UpdatedTimeUnit" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts index 381a97e4ac0..c94902fa163 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts index 95246a9bf77..dc4bb9a4ae9 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts index 72773f0c947..b8423f58cae 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts index 4640d2664d8..15711543ef4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts index 261bf72277e..fc36cb2fea8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts index a1c7ae20ebc..9761a5cdbfa 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x75794a3c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts index b276e41eaab..41c64799da0 100644 --- a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isValidSignature" function. diff --git a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts index da351e0658d..bcf99543c0f 100644 --- a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts index e3d2a786c0f..e2032fab9d0 100644 --- a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts index 5033086ff1f..05b834d34c8 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts index cd60467baae..06d69c5ff16 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts index 9499d363326..fe3bb8cc142 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC20" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts index 980f90c08d6..e79f0240b1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts index 315fd89acb6..1b5c24e72ab 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts index 14e6c3521f6..02facd11679 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts index 0a39df5ef61..15628bef1f9 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts index 32ae497829f..03b681a438e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts index 543ca00aeb3..f2bb82075e1 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts index 8874f1f8b77..d05c49e0642 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts index a0bff681c08..66dc374e9ff 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts index 2c1aabd1066..502154ae933 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts index dbfd5398c08..62a00d474bf 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts index 83c90ba1373..8057c658b1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts index 392798f0938..c52084bf3e2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts index 90f936573ff..a301bde7d16 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts index 05bfa99e8b9..28fc473b542 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts index e713101a8f2..7c6f025f370 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts index a40ddadb5ea..315fc80ca09 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts index c3071082e4e..05f8b87f866 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts index bb688023945..f9e725775a4 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts index 84e581ee5d0..8f1a555dafe 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts index f3088be371b..77488bf42f4 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts index 0785785f1cf..a5729c91c33 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts index 196dae6e56c..a7374999c2f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts index 6b64f961507..03ecfce9d0f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts index e0db2221abd..f0b38100c6b 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts index edb03b78b32..167e6b98602 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts index 3d910a7024d..b252d8b1851 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts index 42821808bda..b239f00a27d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts index b727ca0d9b2..51fc2b438ba 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts index 481bb8eb721..7462592d148 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts index bdcc3f2ca69..2ac66e20af2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts index 6e8274dfa05..ac575a71b1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts index 57d0a77dff7..1704b169c28 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts index 408f9cd07a8..a102e7e40db 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts index c1c69ea396d..e351237d2eb 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts index 0c3048d17f9..8b3baff39b1 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts index 6fdc7ac02c8..b685e6934d6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts index 6ac50c18b65..8d2d1ad0f4f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DelegateChanged" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts index 3dee0b93a04..679716ea9ea 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DelegateVotesChanged" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts index c571722679d..08ea92ba0b3 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "delegates" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts index e3441230e1e..7a9fef8ca2a 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPastTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts index ae46edb8b0c..efa3696035e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPastVotes" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts index cff1749bd6b..9f60ad99262 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getVotes" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts index 7cef71ff61a..8c871e9055c 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "delegate" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts index d4ccd48cc5a..3d4a8db0d50 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "delegateBySig" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts index 71983157230..08a9dede108 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts index bb688023945..f9e725775a4 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts index c1c69ea396d..e351237d2eb 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts index 64ca336631f..f48fb6279b8 100644 --- a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts +++ b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTrustedForwarder" function. diff --git a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts index af103446eff..edbd43bb8c8 100644 --- a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts index 61732d4c768..b2894032e80 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "validateUserOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts index 9704d1c60fa..a16bc9a83cc 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AccountCreated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts index 29ba1977797..5da6ede6ac7 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignerAdded" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts index ee49f539f23..82619ea12e0 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignerRemoved" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts index 88b5f01391a..31f9d6e64c0 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts index e442c9ebe15..a26c296a7f2 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAccounts" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts index f0bac129833..846406de80f 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAccountsOfSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts index 07d3c8f0a19..0174ca08356 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAddress" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts index 49004ff07df..93cf2387dff 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x08e93d0a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts index 4213342788a..6d3eae1caf1 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isRegistered" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts index d13cf94c6b5..213525ca085 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x58451f97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts index d71e0c7bbee..b03c26c972f 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAccount" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts index 58b1f104269..8799cb8bd6d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onSignerAdded" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts index eeb95bb3887..378b00d4ce7 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onSignerRemoved" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts index 3c4cdb022dc..8da029f6d0e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AdminUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts index 49b12b5e7ca..a74536a6f7a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignerPermissionsUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts index b25927d7f3e..10a3a03b5de 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8b52d723" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts index 340e8e2b338..4a99bfd8fea 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe9523c97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts index 473f22cee70..8637d17d40e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd42f2f35" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts index 6f91832c4d4..554ab0b1511 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPermissionsForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts index f70ae69ae27..2f4acb5c7e3 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isActiveSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts index 421e3fb9b05..2e40f43ff8e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isAdmin" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts index 13c9660d679..4dd893869dd 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifySignerPermissionRequest" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts index 0dfecdfe3e3..acad573f066 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPermissionsForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts index aefeda70d1f..57c092662d1 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AccountDeployed" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts index 979246b3a32..786675249ff 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Deposited" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts index 408f596d1b3..c159efd99ae 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignatureAggregatorChanged" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts index cdb5cb7718a..64432e3e52a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "StakeLocked" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts index 2c2a521b3e8..3db5b217e5d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "StakeUnlocked" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts index d6baaadd015..fdca4a373fe 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "StakeWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts index e7361b8f242..34ab121fe48 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UserOperationEvent" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts index 651ba8f699d..ea97112e335 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UserOperationRevertReason" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts index ba6086ca941..7b4e4b377a5 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Withdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts index b7ff3081b0c..32ad1790b30 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts index ef2dd86df6b..df61606924e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getDepositInfo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts index 4047aff1316..129766b56b2 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getNonce" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts index 035be155152..75572b4e566 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getUserOpHash" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts index 9dadba06162..5385bd8265e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addStake" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts index b401e7ffe20..29803f6389d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositTo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts index 824cf867b60..b651367ee8d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "getSenderAddress" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts index 5ec1fb8864c..164d965aa5e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "handleAggregatedOps" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts index 5021df6b320..142b42768d8 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "handleOps" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts index 66aeaeb26ac..f41500266dc 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "incrementNonce" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts index 8ad17a56ed6..45436f31447 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "simulateHandleOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts index be82ffcd830..c1098fde254 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "simulateValidation" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts index c136fb4c701..3506e68345a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts index 10668f3080d..37db0a31e12 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawStake" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts index 8d0e04b7655..b34a439bdee 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawTo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts index b8d5ff51605..d9a94db53db 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PostOpRevertReason" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts index deff206f64d..ec9af361efd 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getUserOpHash" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts index cdb00c1cd44..1c7b385cc5c 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "postOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts index ce0e1b226f6..f1259034401 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "validatePaymasterUserOp" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts index dc44d6e24ab..f18b212a278 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Deposit" event. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts index 702a6b214e0..b9024da0879 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Withdraw" event. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts index c6aa2cf4a8f..c4280dffdde 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x38d52e0f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts index a336a3ba71d..aae1a9b0279 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "convertToAssets" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts index 19adbec5d30..0ea83b5498f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "convertToShares" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts index c381e4e07ce..58b4e09281a 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxDeposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts index 31d838daa75..5006143bc59 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxMint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts index c87d5ca24be..aeeb693fc77 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxRedeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts index 5d2194959f1..7ba38dd8844 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxWithdraw" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts index 55bd138d5c8..0f99cea3c14 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewDeposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts index 1c77082a6d4..443c34fb41f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewMint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts index d22c9fc5c1c..8e36a4bb59f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewRedeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts index 0b48678535b..9c250aad3bb 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewWithdraw" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts index 13444d4de6f..e16ab10ad0a 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x01e1d114" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts index f987f82b52f..cb7b09695dd 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts index 21674a7ae44..76b3e11984f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts index df351f6ff7b..fbaf5e7bff3 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "redeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts index f9d36616418..be29d49c712 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts index f48782ca657..ce17d6bf523 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isValidSigner" function. diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts index 366fa324ff1..4a94d5ca5f4 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc19d93fb" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts index 5b0fd38dc2d..17140290a66 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts index d6fbe26258f..939294b1b13 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts index 5a98dee8f1b..d859f4ba0c7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts index fef30ba5b5b..587749a9ef9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts index 80e7ca4d58c..bc8960627ce 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts index f4caa50a316..a5a0941adff 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts index 2f96fcc6574..401d92112b7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC721" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts index 6713f907a04..e508430c74a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts index c8242f26ff7..1b8c9c154f4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts index 05c14805732..28715bb477e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts index 0c742164d79..4b7f34da2c5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts index 1f66b6a3b03..a8e4728f254 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts index 96d8aeb4491..97c65f0ee9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts index b6d15533e0c..1ddcb4ea94c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts index 80887b4834b..2e2af10afbf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokenURIRevealed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts index 72fec8c3c7a..0cf4e15cb47 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "encryptDecrypt" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts index 6c8d4a2dca7..b650d93ec60 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "encryptedData" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts index d458a71158e..7a15be4a4a9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "reveal" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts index f9323d3861e..04c54d35afd 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts index 15d51107b1f..1f867c8cdca 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "baseURIIndices" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts index bdd2144fb09..536b5046012 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts index 5e4f78b73ee..05fc620d047 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts index 4c03e0387d5..f89b83a2294 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts index 409a4030ce4..a3a6212cb9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xacd083f8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts index bd199d831e0..1c30efb8cb0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts index 59a01bbc213..12d2073a0ee 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts index 96d8aeb4491..97c65f0ee9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts index 60f4078f4d2..88327db4387 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts index bd199d831e0..1c30efb8cb0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts index d07fd8efc8e..a24b8c898b3 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts index c1f8b0cb939..e60cc1a073c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts index da4f0dfc8d7..585bd7da021 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ApprovalForAll" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts index b0d19bab766..83c0e99117b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts index 0a97dbe010d..95ba9ffd8ac 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts index e6e6c742b20..62c67865417 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getApproved" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts index 48aae344fd6..ef646d5aeb4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isApprovedForAll" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts index 7f2ee48afd1..977eb71775a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts index 725b42cb89c..401e641161a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownerOf" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts index 44320640e09..a7437962276 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe6798baa" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts index 2541453f1fa..09032ae8d6a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts index cdd424d3861..968f8ffa3a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts index a19be2e4323..08c6748815e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts index 35b4af6555e..f11264daf45 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts index 6a39c3be5ca..1f5c2679cdf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "safeTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts index b2a383dd006..f4cbe38611c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setApprovalForAll" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts index 7eda6c94dfe..16b2674bffe 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts index 09dbce48836..86d66e03f66 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ConsecutiveTransfer" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts index c57aff8f227..285fff85165 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokensOfOwner" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts index fae3b29b1eb..72eb5418268 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokensOfOwnerIn" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts index abab41a1765..2bb30b6fa3b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts index a2194155e72..e8bea47ee9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenByIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts index 317ffdcd06e..fae88bc7dc4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenOfOwnerByIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts index 4e89a7ec99f..1c908156fcf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onERC721Received" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts index eb69059bee4..26bf1ce6d2f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensLazyMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts index 9889bbbb726..06ce4972ee8 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "lazyMint" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts index 667cd89e059..e9b672cdac1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts index 5541d6823a5..a66e7e3dad9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts index 0f6b2f9089d..e445a10b9db 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts index 072e98db461..4bc2551a316 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts index 2ae9e83a539..663fc79fa6d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts index bee2ca42a4e..fdd553b85a6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts index ed1eccc08f6..d3980b873a9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts index 19270af23a0..a3d246e412b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb280f703" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts index cce5712e655..0c52ecd7ecc 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts index c60a5c32c2e..fad569bc974 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SharedMetadataDeleted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts index 57d4bb484fb..a500645cb13 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SharedMetadataUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts index af641d83093..e025d2380a5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfc3c2a73" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts index 2c361c8dad4..627bff7d9d2 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deleteSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts index da44ced507e..b8cf5949eed 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts index 9da306f14a9..a000ef2b4b1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts index c1389c23da5..c126f868b3a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts index d2d2e11439a..8005a91782e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts index e51025efeaf..390c8b29837 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts index 271dd56a03a..8c64cb10777 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts index 43d69ee4691..e768fbb80c6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts index 691150f4d6b..28b8a7795ad 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts index 85cbbd5ce3f..ddfeb7efc4a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts index 0955ed53001..53692d1f2bc 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts index 8cb89434077..470d3344098 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts index c8304c9c6af..5971444a1c1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts index e15d31e6f1e..c47c2d400b3 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts index 3f20b599377..d7f2ad88809 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts index 667cd89e059..e9b672cdac1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts index 9b1685e557a..e96d9d79ff7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts index abab41a1765..2bb30b6fa3b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts index 0f6b2f9089d..e445a10b9db 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts index cdd424d3861..968f8ffa3a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts index 121dc3577cd..d9344309eea 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts index 2ffb88f2541..cd952cd72a7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancel" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts index 54ee1fb1625..31971565a3c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts index 266759ba60d..a492ce9f95d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts index 7a7692db51d..11cdff84051 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts index 76f13dfcba5..af072eb19e7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revoke" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts index 1c2e257586d..fa409453d53 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensUnwrapped" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts index 476e907ad6d..fc620668141 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWrapped" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts index 1ea0195f972..3299d46f932 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts index c8d50c84091..d4d1cac88b2 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts index 4b768cdca11..a5629461f55 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getWrappedContents" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts index abab41a1765..2bb30b6fa3b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts index 0f6b2f9089d..e445a10b9db 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts index cdd424d3861..968f8ffa3a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts index 1b88232e138..51d6ee7eb4c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts index 2ea813d8f3f..ea7207513cf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "unwrap" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts index 03582322e9c..00ddc11ce19 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "wrap" function. diff --git a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts index 6c8ce5a86d9..8e80e46a8a4 100644 --- a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts index c833872cbc4..14b6db87730 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x9cfd7cff" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts index 7225170e831..4a0f71b90f5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isModuleInstalled" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts index 88b6b0b11aa..adc179df2a8 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isValidSignature" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts index 7778eae8bee..40d1c3a2dbb 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsExecutionMode" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts index b31d7ab4910..61d1e156108 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts index 5a7c9b02cd4..e1f33cae5cf 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts index dcc7750443a..427537a9640 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "executeFromExecutor" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts index 9431c3d7dcf..fc3fb205dc1 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "installModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts index 5cf2425dcac..d9b1094c612 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uninstallModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts index bd823de97a1..93c168c64f5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts index ee84303fd0b..895b9c0faf5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts index bbf45d7fb41..5f54e325971 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts index f31566f4716..2125755adc1 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa65d69d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts index 180f8da52fc..c8adcafff58 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAddress" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts index 99a48c2f09d..2c9986eebf5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x5c60da1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts index 3323ac7ce15..076e831d264 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts index 3c7faad0ce7..f3fb0db94fc 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addStake" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts index e499f3b0187..9edabb0aaf8 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAccountWithModules" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts index 5798a31905c..0fa112c28e3 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts index 21c03f6f32a..a3049c9517e 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts index c3601ab471b..b2443506421 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts index 632ee9f2fce..cd9ae09f1db 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeTo" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts index 4a20c5590f8..c995e626bdb 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts index a8e5011d893..0cad89d40fb 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawStake" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts index 8d5f1a700d2..0e275711fcc 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Executed" event. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts index 93310f4dc59..36d4e243abf 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SessionCreated" event. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts index a8020aabb12..9ed2c26e1bf 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts index 3566c481b00..4a44f5a3fd1 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getCallPoliciesForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts index 9c789a7cfff..a5a81370ba3 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getSessionExpirationForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts index ea93606d2d6..3e948ef623e 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getSessionStateForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts index a1763951ba8..a97dfb80636 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTransferPoliciesForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts index 3287eb5fbd0..f653921de04 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isWildcardSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts index f78b186f2cf..fc57af91cb6 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createSessionWithSig" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts index 81b1df259d6..98988776faa 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts index 808b3854139..92ecb549276 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "executeWithSig" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts index 31bb53a4e44..ab6c007dacf 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts index 7ead96b0c37..b27d76ee6e0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts index 52d7a381538..f31cabf823b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts index 06c46b0a455..8931d97823a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "register" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts index 2c959f33f59..4a3345eef0f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x6a5306a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts index af26e126344..011085f6144 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts index 52d7a381538..f31cabf823b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts index 5bb15a70f8d..7a97f33ba5e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4ec77b45" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts index 9be06cdbe1e..837c7aef13b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "register" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts index dfc90dfd636..3d76100bc0c 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "registerFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts index 514c3444a8e..607bdffbbda 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AdminReset" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts index 655c8354855..a3d94326af6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ChangeRecoveryAddress" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts index a646e6f7252..653946dc4b1 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Recover" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts index 43d1195a0c1..540ee67b971 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Register" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts index e5e708c2290..ef1ff29a359 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts index e92335890f0..8cf023ced5f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd5bac7f3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts index cd9b402fa7a..16234140459 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xea2bbb83" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts index cb54955823e..f968b97b123 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x00bf26f4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts index dd5e0800b68..05486ae0fd0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "custodyOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts index 60f0638f844..b1633b0da23 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts index 86c34619ada..4670417928c 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xeb08ab28" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts index 31bb53a4e44..ab6c007dacf 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts index aa4fbda61f2..0f502bcf8dc 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "idOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts index a790ee0cf7d..1ae91834a6d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "recoveryOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts index 3b1472b3eab..41d18969b31 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyFidSignature" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts index bda18636266..d0ede787469 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "changeRecoveryAddress" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts index 60bc5bc9fc7..26fb6c23633 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "changeRecoveryAddressFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts index 8831467efb6..5bcd4720a76 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "recover" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts index af489197a44..ef075116489 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "recoverFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts index 326c6c3ab43..f4d9fc76753 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts index 2bbdcece210..04517684834 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferAndChangeRecovery" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts index f254cef9caf..d929c6a300f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferAndChangeRecoveryFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts index d4499dad613..eb7d9656e9c 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts index c4ac42ba8be..978192092e2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xab583c1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts index 32289cc6879..e9d4f945ce6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x086b5198" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts index 57aad7f4608..df21d367979 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts index 2e72ed2db94..269045165c3 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "add" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts index ab6001559a8..a7e48e33e51 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts index 82c9fe8a6e9..9d3ca5cb0dc 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Add" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts index 4ddf953a99a..f42650a0de3 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AdminReset" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts index 76876634bc2..c1a085d0e4b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Remove" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts index c3ce52a2acc..ff5dd13852a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb5775561" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts index 60f0638f844..b1633b0da23 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts index af26e126344..011085f6144 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts index c603ca366d6..22e35d301e5 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "keyAt" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts index 3ec2a78a3f8..4c55c831e17 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "keyDataOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts index 7ead96b0c37..b27d76ee6e0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts index 47e7e10c438..27051d256c2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "keysOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts index fe3c07d5561..2ba35c2da2e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe33acf38" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts index 70f25124341..57e35d5745f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "totalKeys" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts index 96d8096c9d7..69300b70490 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "remove" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts index 9f9ca5ec955..206f94866d5 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "removeFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts index 2804abcbb62..a14b1157781 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x2c39d670" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts index 95f61c0b3b5..6b44251b8fd 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06517a29" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts index b269ae251b3..e344e5323c0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts index 251d0af30af..467003b92d2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x2751c4fd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts index 0ea65e49702..cb8970c72f0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe73faa2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts index 051a7d5075d..6d9acff24e6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x40df0ba0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts index 7fe28d59ed6..b8c9defb67d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "batchRent" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts index 83175b73a06..a419f7a3bb4 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "rent" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts index 7727e542752..3fea9d326f2 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowData" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts index 790321c4822..fdc73f35d45 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowTimestamp" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts index 8ad5fa2669a..1410fcebc23 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowTokenId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts index 32715c1467b..b77f53ea762 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x7829ae4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts index 9d41e05d6ec..f9b1d1a50ea 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowerProfileId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts index 5eb6814b734..d22da8e12f8 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getOriginalFollowTimestamp" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts index 101623902a7..0166e59c268 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getProfileIdAllowedToRecover" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts index 6856b518944..fd3d19d6825 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isFollowing" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts index 1631c257613..75ead7399a6 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "mintTimestampOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts index b30d2e0f539..9d953c3622d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getHandle" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts index de298f22a2d..eac910c2726 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x35eb3cb9" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts index 099379d9c7a..7b1e7dc38df 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getLocalName" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts index e2e95574a6d..b0895520653 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTokenId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts index cc5518032e3..03b45d787ff 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "exists" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts index 114e9c70f25..3aca1b317c2 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getContentURI" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts index 849132cce2d..75ebeb39950 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getProfile" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts index 378495f5b5e..727f85cacaf 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getProfileIdByHandleHash" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts index 940c42b7539..732495fd266 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublication" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts index 1631c257613..75ead7399a6 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "mintTimestampOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts index 87a92d9f86e..b75ca15c1c7 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts index ce9edc4470c..365d29d6da7 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenDataOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts index 3e5b2b4e859..4c82ead0f23 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getModuleTypes" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts index 65cd261d708..f8e495a9b44 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isErc20CurrencyRegistered" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts index 0676878e575..6edc467ade5 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isModuleRegistered" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts index 6c94f98c632..f7bd65da099 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isModuleRegisteredAs" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts index c7a8d1aaa1b..e980545f042 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getDefaultHandle" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts index 2137f95a805..2bde91042d0 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts index 3c9809bd374..84b8abe8f34 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "resolve" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts index 3bfc6a92603..65a62931636 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "BuyerApprovedForListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts index 46d14a1b078..25f7aab04ee 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CancelledListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts index 127a498ddaf..983ca3c8c4d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CurrencyApprovedForListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts index 23f46addfec..7dcc74cbb31 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts index 4ea1ff93b92..664e583308f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewSale" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts index f33e4de028d..cd946280f87 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UpdatedListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts index e4db3be77d7..e6f15c2059e 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "currencyPriceForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts index 734378136b7..ccef2b4d391 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllListings" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts index 2b829550285..ce20b1c10a3 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllValidListings" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts index 3002d389ef2..877c774ef0a 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts index 9bcfe71cbf1..647f507c31f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isBuyerApprovedForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts index 6351c37f548..19748a64418 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isCurrencyApprovedForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts index b8d0b72e56a..742169f4f44 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc78b616c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts index be8ce99cf58..ea518f185d6 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approveBuyerForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts index ca45650bb17..6e37f564067 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approveCurrencyForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts index d695f899c51..8287263a1ba 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "buyFromListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts index 504776da5b0..2c791b9f01e 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts index 49303739da5..1edc7ce9143 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts index e484d216997..5af616b8e02 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts index b15d763c5af..ef8c6ff4409 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AuctionClosed" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts index 930e0f2aa44..aafa0ed4b28 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CancelledAuction" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts index dd69261100a..612c8dae2a4 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewAuction" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts index 27f25f28508..d63d49db766 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewBid" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts index dd88bdc4fbb..5bf0ddba132 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllAuctions" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts index 77c5116f129..2a78e300971 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllValidAuctions" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts index 036617fbd7b..0e617b97e15 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts index 9546e3db173..941d302bdc2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getWinningBid" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts index 11c8eab2430..b6063ca7b31 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isAuctionExpired" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts index aea27839d1d..09096df9c54 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isNewWinningBid" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts index 0610fda8156..6a9174b4a20 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x16002f4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts index 942bb17d0c2..e629d8e71bf 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "bidInAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts index 846aded52d0..51df278132e 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts index 8004652acac..4d65a231619 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "collectAuctionPayout" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts index 864aab2e45f..21a99f91025 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "collectAuctionTokens" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts index e48106af277..378f42640a8 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts index 37e97c246e0..62842341a63 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AuctionClosed" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts index 7fe12ca837f..5177b264957 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ListingAdded" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts index 2233c856fc7..5ca6b7e42ea 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ListingRemoved" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts index 5a9f20825a0..9de7381fbe8 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ListingUpdated" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts index b033e92129f..4efda0af611 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts index c5d506f7736..da59581ce1c 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewSale" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts index ec779ad8e7d..d32fc97edec 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts index 75061f26982..1cf532447a5 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts index ca512450a4f..63421151241 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts index cd44865ea62..3b2d58a96e6 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts index a7f71ea7315..acfdf87abf0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts index 387aed05883..406594839e2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "acceptOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts index 97a608d0a86..36f0a65a4de 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "buy" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts index 16205373cf0..277b56ec199 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelDirectListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts index f44a7290903..3c83c671942 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "closeAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts index a117cfa8e94..136cc238a5b 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts index f4e8ccdcf4f..6a8e9874143 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "offer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts index 8c2125dcf6f..f156ccd65cc 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts index f65d00c8a21..bfc107d5e07 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts index cf7822145e7..d1d0a1fb924 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts index 611ab797190..fd42fcb8462 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AcceptedOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts index 44708d6932b..c47bf357bc6 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CancelledOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts index 839757be049..a0ce2707f11 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts index 9d96cf8d183..eaaf99cd4b2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllOffers" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts index d3b4a4df5cd..6fabcc41063 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllValidOffers" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts index 8004b2e251d..72dfeaac9f3 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts index 4de665a1cb5..a9656ff8634 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa9fd8ed1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts index a055869c958..65873d8a1cd 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "acceptOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts index 449475eae93..150f01298a0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts index b57181f8d69..e8aa04508aa 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "makeOffer" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts index 70b5e739f97..b015f39ef05 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts index cb8daa93fac..388e295db59 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts index 5a193fd2cb0..8f55369e551 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIndex" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts index ca806668ee7..2685b177c57 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMetadataBatch" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts index cf036b86757..82ed8f80c64 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts index 7d42f61ef90..5c43264fbea 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setBaseURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts index 3e18197cdbc..ec8a31184f5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uploadMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts index 8fc04c50266..79e6a9a81a1 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts index ef821c8a2d7..c96956e1a57 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts index f6004039b01..c3b480fde67 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIndex" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts index 89701986e36..b2969c59369 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMetadataBatch" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts index 315f110f39a..090faeb17bd 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts index 511924b2dcf..b7de260d3fb 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setBaseURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts index 074b04bbfc1..c3d03933622 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uploadMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts index 51850c27a6b..463ec07137f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts index 37ecb3a29ec..f4173458bf5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionByTokenId" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts index ca8d248d475..e4432a6b319 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts index f9ed45eafa0..f14d386e81d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditionByTokenId" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts index de6de1fac6f..6f1c196e033 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts index 4f07605a11f..df40a231efe 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC20"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts index 88f1fa11af0..552b801b09f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts index d77a83b90b3..b9cc3df2f69 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts index 68acc8f5564..1f56dc88385 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimCondition" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts index 8f35e243b55..0ae7c9416fa 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts index 03a615c3f62..f7671768943 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts index 7040ddc3643..12ccf64b64b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts index 4be195f871d..aa68a4fcc99 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts index b4e0bba598b..1916f16a819 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimCondition" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts index 0086cabc826..320e7f3fc26 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts index 286199fdb6d..4347bf539f2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts index 75422b16100..2b4513d6448 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts index ad1b67dbc55..7210063aa4f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts index 62821e2d4fc..abd149cce03 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts index 67b1b0cfbe1..e858f58eda6 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts index a380e4ee56f..88d061e454e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts index a5540effcfc..5c229e704ea 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts index 98d9e06e4d4..97b628a53e9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts index 00be5232ce5..bd7a10125ee 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts index f0e404d832b..e3bdcea619c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts index c176139c21c..3db732e674d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts index 4b4f3ae9b43..96a62ec9124 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts index 00b3b74bad7..e4d21b1a160 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts index c3e63b2ed21..a96d9ebb14a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3e429396" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts index 719f3b0ae6a..c1681500575 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xf147db8a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts index 1ae6424e1b4..fa9b1189c8b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts index 983aead308b..4969e47a4d8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "installModule" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts index f8887d33005..61c0fdadf8a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uninstallModule" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts index f1360d0e902..583fd6ddfca 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts index 6371f09be45..8a00c16b35b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts index 673d7cc1ebf..96b5a1cfc91 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts index b81647b202d..85c77d5d648 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts index eb9899c1979..dc9f9ab39d2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts index 7a9aebc778c..cbc2b5518b4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC20"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts index 64b25a5b2f0..6a206e95b48 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts index cbe052bf6ee..813ce6bf686 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts index ca998dd2c29..bca6f2ecc50 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewMetadataBatch" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts index 9b60229de6b..d45e4be6fdb 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts index f87c6bd5c9c..2d30cd0f209 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts index 2b74aa58d07..8a51cb58b75 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts index 616dc92e9b5..dc0d78919c8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts index 5dc96770798..434b96cba6d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "onTokenURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts index 7e3187f8f91..193bcfbd117 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts index bc9687f3f35..594a00bc44e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts index b1a9f4ee776..839f211331f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts index c951a7071ba..4286731b82b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts index 82b3d8935da..2bcc4cedde4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts index b838128393f..dea971cb572 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts index d9d0e18c144..335e037490b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts index 94949dba052..d4c93faaee3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts index 10e84ec3171..8b6d28bd88b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts index 0079ccfea7e..641093af58b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts index 603d57d63fc..5508806b5ba 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts index 84cd06bad6e..579a95dbd4d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts index aa00ee8e415..2af22dfc131 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts index 28fa4ef4566..5371c300c7b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts index eb705776b19..60fcc3934d3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts index fd1aab1c092..e368991836c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts index 61079b5f6b9..c83e3816cd0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts index c02c49a5685..49e70615071 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts index 25bc5945a14..d6fafd15514 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts index f90f117f6e3..55474d84b50 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts index b7717a9d368..1d4d87e46ac 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts index 161877a044f..79bb9aec7ea 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts index 106c526e719..8b601553e0b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts index 79049e5fc58..a7b0ebc0442 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts index 218f32e8641..ad1025f8f57 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts index a8f3c6855f9..c5cfefd1ad5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts index 561504fb0fe..c7776d8cbc7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts index e41fc809383..15fe07599be 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts index 2294f18888e..4dc18b1a4f5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferValidator" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts index 4051647d5cc..ea24b039f7e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts index 75761816d99..27058bede4e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts index 7061f2b4f41..92685502b97 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts index 10575fe9af2..ca55810873a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts index 6718ff82997..f79ff81f875 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts index 8e50ecc5c12..22b0333750f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts index a4c7f3198e9..ec803676f9d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts index 521ca3e83a4..e447e4c2be9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts index db307f59b19..8219fe7e4ec 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts index cd56610879a..af6575c161d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts index 10ec0919cb2..d10219f94dd 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferValidator" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts index ce28b48f975..83455e9a96e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "SequentialTokenIdERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts index 4750da4f484..a2376d3f38d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts index 5f09bcb32ac..bd993363080 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcaa0f92a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts index 698a143391c..80e4d1c6822 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateTokenIdERC1155" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts index 5fe0ab63e3a..a96c96e2a66 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts index 5e91dbb0878..6b6d99356cf 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts index 9c3942e30e3..a53d04b1e66 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts index 586ec8163af..13c899ba0ff 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts index fc521da4fc5..658168b007a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts index f2282b92fe8..33d073e5146 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts index 03a1c407723..62ccbd551ab 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts index 370d8312c2e..31bf410891a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts index 893845f2478..ea99e6e9ed5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts index b075bc48f49..63cd4991a5c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts index bf376a7ff49..6e17d1c53f7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts index d15e0f67619..19244f93174 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts index 7ce195f07a7..d2a0815cea8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts index 6c553cf6db0..5309665361d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts index 27bb4135660..068266a1a84 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts index af544c422c1..40d8ddd6ef6 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3e64a696" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts index 3884c555518..149778a72e6 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBlockHash" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts index c14e8ec22b4..102576e9ad6 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x42cbb15c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts index 13081555936..36156b6e686 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3408e470" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts index 7f20ac5749c..2c9ba726c35 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa8b0574e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts index 38a3806a0cc..72335a2f8bd 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x72425d9d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts index 7ce8741e849..c65e5fd7676 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x86d516e8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts index 02daf1735db..d7caca01726 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0f28c97d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts index 30dca5d1fba..a224c0653b4 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getEthBalance" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts index f1a2b78e80e..27acbf25bc9 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x27e86d6e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts index f8dd64f3895..f4bb620df36 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "aggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts index d93589faf77..464c8e5b855 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "aggregate3" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts index c08826f923c..2a6f5834e5b 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "aggregate3Value" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts index aaad8b8ba9d..1e1d4317881 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "blockAndAggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts index 2e262064045..d0312ddc01b 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "tryAggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts index 148eb873fc5..4a42356cc17 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "tryBlockAndAggregate" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts index 85a8404f8e8..fb2cb5db660 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackCreated" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts index 34e6efaa1fe..d06bdadda34 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpened" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts index 5858c8f0520..4a6762257e9 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackUpdated" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts index 8f713d143a3..b8febd5014e 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "canUpdatePack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts index 233d0176ef1..92a417a3bc1 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPackContents" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts index 63551a691f3..cce2b6390db 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTokenCountOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts index 6d3292d8791..5649dc09864 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTokenOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts index 9991755461f..3cc26fb50f9 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getUriOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts index 25f164cd723..5bb0727f223 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addPackContents" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts index b73f6efe6e4..9462d48da72 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts index cb086aedfcd..4749b3478e2 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index dc0b6ac9be2..36bd14d6965 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpenRequested" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index dac830eb692..7f1745fa2ba 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackRandomnessFulfilled" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts index cac29e8419e..895c70d6748 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "canClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts index 381d4d1006c..92ab7a14f6b 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index bc954a62d72..09875c2f1c9 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts index 01a5c361ce1..18c40077c0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleAdminChanged" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts index 91f566246e0..7ac136a340d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleGranted" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts index 91fcab84e65..d148578d3dc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleRevoked" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts index 142c73b479c..6a5295c7316 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleAdmin" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts index 44c5782708b..5a856d38561 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts index d1a4941ec7c..d09f70d7b0c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts index c6e5e3be592..e6c933291cc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts index 114846fcd0d..f6473a76bc6 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts index 01a5c361ce1..18c40077c0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleAdminChanged" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts index 91f566246e0..7ac136a340d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleGranted" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts index 91fcab84e65..d148578d3dc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleRevoked" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts index 142c73b479c..6a5295c7316 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleAdmin" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts index c1eed901f0f..c4b0f166724 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleMember" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts index d6255b64f06..9d0f2a60f83 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleMemberCount" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts index 44c5782708b..5a856d38561 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts index d1a4941ec7c..d09f70d7b0c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts index c6e5e3be592..e6c933291cc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts index 114846fcd0d..f6473a76bc6 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRole" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts index c4c449c8056..f4e95dad1f3 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts index 9fccd394f82..1f3ab9ddf7c 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts index c4c449c8056..f4e95dad1f3 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts index 926c5ad6b8c..36d6778ae8b 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts index b5c91d37dd1..1a8f813bbf9 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts index dd971b7f2f4..69ec28d0568 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts index 898c849c688..a8d1282e07e 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts index 8159cb1cf0d..5e0ef5d1300 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts index 68d91821e86..0008f7a2b87 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts index c4c449c8056..f4e95dad1f3 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts index 2ce2e181c53..66d5fa8b114 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts index 78ca9f193c6..beb7ac88958 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "payee" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts index ca0a1d2018b..3a1d7c9f2da 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x00dbe109" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts index 5b08e87a951..11791d48753 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "releasable" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts index 6e4946af5fd..3aad9d307fd 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "released" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts index b8a0402e720..ccd5d4f0ea3 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "shares" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts index ee0ae7881a6..f83e68fedbb 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe33b7de3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts index 878318ebe64..e36396a24c7 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3a98ef39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts index 10c3a66ef3a..ae168c8df86 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts index b3bd48606b0..cb941c153cb 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "release" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts index ac53dea215b..746fafde3a0 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "codehashVersion" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts index 1fb37500877..b1b723248c0 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "activateProgram" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts index 619043655dc..ec91e868b68 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts index 76b4a890529..5a6d44c65ae 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deploy" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts index 46f16ea3875..ec59487b8e8 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x094ec830" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts index 0432d51a0f9..5914590d189 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setAppURI" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts index bc0db42d912..fdbd658fb2b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ProxyDeployed" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts index ecf298f13a1..d2cf5087ba9 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ProxyDeployedV2" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts index c7eee5a47d3..4f3054fa23b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deployProxyByImplementation" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts index 6918e6fc719..9c38e1b77be 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deployProxyByImplementationV2" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts index a7581368a99..cb592fe7e78 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ContractPublished" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts index 3fdc9a44132..daacec8d2fa 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ContractUnpublished" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts index 952bbb39f58..a27c7ed8a50 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PublisherProfileUpdated" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts index 3ebf22f4d5a..160d991507d 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllPublishedContracts" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts index f75744abb19..aa118da5ec4 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublishedContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts index 40b31842870..da7579bee87 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublishedContractVersions" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts index e8506e61a6d..ec4c61cd8a2 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublishedUriFromCompilerUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts index 98a7af736c7..2fcb86f7d42 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublisherProfileUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts index 27b37ddbe45..6a3349b0b27 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "publishContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts index ed3e71f44a2..6e3e25a8f16 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPublisherProfileUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts index 5c5b15fdc91..0f2780e8a7b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "unpublishContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts index 104a865aaff..703bd2203fb 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RuleCreated" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts index 67e1736ab9b..07b59b32352 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RuleDeleted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts index 03a28920054..cc1ff027a80 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RulesEngineOverriden" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts index a89a1d00220..cf01e006e62 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x1184aef2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts index f374d148564..895aa7bf039 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa7145eb4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts index 5e5b14f615f..362f6ed7cc6 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getScore" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts index 8f2dde241dd..ef265952561 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createRuleMultiplicative" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts index 846a085d5b5..db7aa40753e 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createRuleThreshold" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts index 605a10a3feb..bef08963aab 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deleteRule" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts index 704af13404f..99d7900505b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRulesEngineOverride" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts index 06a90ad62ff..d3b9ed5fec4 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RequestExecuted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts index fde6a54b1a7..e1e39e5fcc0 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts index db4ca066a73..79327e01306 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts index 40dd0fc17f8..19a26f8c345 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Added" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts index 66fb7bdc924..63fdd50ba9b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Deleted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts index 546a25e9dc1..8f0bbfd54ba 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "count" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts index 43d29ec079f..2a07856178b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAll" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts index b51c3652736..0a568674e5e 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMetadataUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts index 1de66810ea7..e111407965b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "add" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts index 58b3d8ee112..29b6635f75e 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "remove" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts index e05dc87b740..0a11a4eda0d 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts index 23912c3e211..ff69d4ffd6b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts index 9dcc8a6a8fa..3b6693d9579 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts index 73284334c06..0ba92ee95f7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts index a5b2de9ba3d..93ca28a8d86 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactInput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts index e2f2bd0b25f..f2baf013d7b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactInputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts index e70abf27fa9..948e8b4716b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactOutput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts index 40571bef183..962e1b2233d 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactOutputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts index 62b9d01cce6..e8c72448821 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactInput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts index 7e3abba3449..74801a6fd77 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactInputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts index dcbeb08a4a1..ad12cfeb388 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactOutput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts index da33aaa7b58..d49a1333baf 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactOutputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts index 7ecf70ce4c8..0a338fba5a1 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnerChanged" event. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts index e58a4baf468..08c5be9c5c5 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PoolCreated" event. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts index 255f43c261a..0bdf634fbb2 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "feeAmountTickSpacing" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts index 0ba8694755b..5464e0e6f11 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPool" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts index 5c788ce980c..c4a193d970e 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts index 9fb6af4ed9a..7a0564dfebb 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPool" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts index c8e4e71ccd4..02a8bbc64a1 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "enableFeeAmount" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts index 6e4c1ba930b..dc6112bab1d 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts index f4a9b84da2c..f53337ebd10 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "exists" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts index e108e47b49f..2a5b24385b4 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMany" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts index 1f4ff5195b1..d56c354bfee 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "namehash" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts index b86c1c4bd8a..42f892a3904 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "reverseNameOf" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts index ec04f2d479a..060fe07c78a 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xdeaaa7cc" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts index 6734c8b2303..1a0672fb8cc 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xdd4e2ba5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts index 4325be6c282..67cf2f01d31 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcceb68f5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts index c2b66c0be2a..341cb80315b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getVotes" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts index f8eca80d4bf..2034cf1dddc 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getVotesWithParams" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts index 5815f1c8684..f2b60cf3bca 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasVoted" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts index 87e81f3c2ec..1639665197e 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hashProposal" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts index e0640658526..2e4f570cd64 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposalDeadline" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts index a8d1ccb5c76..d1b77a0eeca 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x5977e0f2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts index 593f248d154..e1667b05f5d 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposalSnapshot" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts index 098c4dc79c8..ced5cabd45f 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb58131b0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts index 5bc8c234e58..8a510a2aa46 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposalVotes" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts index 3c89313b550..d58e899e6d7 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposals" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts index b2de58c41b0..dce30a0a265 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "quorum" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts index 56636d20aee..cf3126a06d1 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x97c3d334" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts index 15bcb254830..e9b56d165e4 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "state" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts index 02e70e2d6c7..60c0d33089b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts index eff242b13e6..51689a20a6c 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3932abb1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts index 35de8cb92c0..5b96e7a33aa 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x02a251a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts index f7c42629976..2666f84fa71 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVote" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts index 6322bdf5e39..adfd1fc076b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteBySig" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts index 4d5af34b63c..d32e7363312 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteWithReason" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts index 0c625832619..978cb26a8fa 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteWithReasonAndParams" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts index 20122e5859d..a2e92478f18 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteWithReasonAndParamsBySig" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts index 4f94b043506..9012c2dfc6b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts index abc8a1f168c..6262ae30b0f 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "propose" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts index edd2ad5a3f3..785a2a588d1 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "relay" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts index 9eac196fd77..ece4ee5abf3 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setProposalThreshold" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts index 313d949b8c2..3b34e86231e 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setVotingDelay" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts index d74fc333fcb..1f4740dd710 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setVotingPeriod" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts index 819963e4608..d76a5f43144 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateQuorumNumerator" function. diff --git a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts index 48964fd99a3..328036ce944 100644 --- a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts +++ b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ContractDeployed" event. From 26f96d8978da30c4e563e29c95b5925cb93efec9 Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Wed, 23 Jul 2025 05:23:02 +0000 Subject: [PATCH 20/32] assets -> tokens. update contracts, remove unused --- .../abis/assets/AssetInfraDeployer.json | 5 - .../abis/{assets => tokens}/ERC20Asset.json | 0 .../ERC20Entrypoint.json} | 33 ++- .../abis/{assets => tokens}/FeeManager.json | 0 .../abis/{assets => tokens}/RewardLocker.json | 0 .../abis/{assets => tokens}/Router.json | 6 +- .../src/assets/create-token-by-impl-config.ts | 137 ---------- .../thirdweb/src/assets/create-token.test.ts | 45 ---- packages/thirdweb/src/assets/create-token.ts | 116 --------- .../thirdweb/src/assets/deploy-infra-proxy.ts | 44 ---- .../src/assets/distribute-token.test.ts | 117 --------- .../src/assets/get-erc20-asset-impl.ts | 24 -- .../src/assets/get-initcode-hash-1967.ts | 8 - packages/thirdweb/src/exports/assets.ts | 22 -- packages/thirdweb/src/exports/tokens.ts | 18 ++ .../Airdrop/events/OwnerUpdated.ts | 2 +- .../Airdrop/read/eip712Domain.ts | 5 +- .../__generated__/Airdrop/read/isClaimed.ts | 4 +- .../__generated__/Airdrop/read/owner.ts | 5 +- .../Airdrop/read/tokenConditionId.ts | 4 +- .../Airdrop/read/tokenMerkleRoot.ts | 4 +- .../Airdrop/write/airdropERC1155.ts | 4 +- .../write/airdropERC1155WithSignature.ts | 4 +- .../Airdrop/write/airdropERC20.ts | 4 +- .../write/airdropERC20WithSignature.ts | 4 +- .../Airdrop/write/airdropERC721.ts | 4 +- .../write/airdropERC721WithSignature.ts | 4 +- .../Airdrop/write/airdropNativeToken.ts | 4 +- .../Airdrop/write/claimERC1155.ts | 4 +- .../__generated__/Airdrop/write/claimERC20.ts | 4 +- .../Airdrop/write/claimERC721.ts | 4 +- .../__generated__/Airdrop/write/initialize.ts | 4 +- .../Airdrop/write/setMerkleRoot.ts | 4 +- .../__generated__/Airdrop/write/setOwner.ts | 4 +- .../events/AssetInfraDeployed.ts | 49 ---- .../write/deployInfraProxyDeterministic.ts | 187 -------------- .../ERC20Asset/events/Approval.ts | 2 +- .../events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../ERC20Asset/events/OwnershipTransferred.ts | 2 +- .../ERC20Asset/events/Transfer.ts | 2 +- .../ERC20Asset/read/DOMAIN_SEPARATOR.ts | 5 +- .../ERC20Asset/read/allowance.ts | 4 +- .../ERC20Asset/read/balanceOf.ts | 4 +- .../ERC20Asset/read/contractURI.ts | 5 +- .../__generated__/ERC20Asset/read/decimals.ts | 5 +- .../__generated__/ERC20Asset/read/name.ts | 5 +- .../__generated__/ERC20Asset/read/nonces.ts | 4 +- .../__generated__/ERC20Asset/read/owner.ts | 5 +- .../read/ownershipHandoverExpiresAt.ts | 4 +- .../ERC20Asset/read/supportsInterface.ts | 4 +- .../__generated__/ERC20Asset/read/symbol.ts | 5 +- .../ERC20Asset/read/totalSupply.ts | 5 +- .../__generated__/ERC20Asset/write/approve.ts | 4 +- .../__generated__/ERC20Asset/write/burn.ts | 4 +- .../ERC20Asset/write/burnFrom.ts | 4 +- .../write/cancelOwnershipHandover.ts | 2 +- .../write/completeOwnershipHandover.ts | 4 +- .../ERC20Asset/write/initialize.ts | 4 +- .../__generated__/ERC20Asset/write/permit.ts | 4 +- .../ERC20Asset/write/renounceOwnership.ts | 2 +- .../write/requestOwnershipHandover.ts | 2 +- .../ERC20Asset/write/setContractURI.ts | 4 +- .../ERC20Asset/write/transfer.ts | 4 +- .../ERC20Asset/write/transferFrom.ts | 4 +- .../ERC20Asset/write/transferOwnership.ts | 4 +- .../read/decodeOwnerFromInitData.ts | 132 ---------- .../events/AirdropUpdated.ts | 0 .../events/Created.ts} | 16 +- .../events/Distributed.ts} | 10 +- .../events/ImplementationAdded.ts | 2 +- .../events/Initialized.ts | 0 .../events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../events/OwnershipTransferred.ts | 2 +- .../events/RewardClaimed.ts} | 10 +- .../events/RewardLockerUpdated.ts | 0 .../events/RouterUpdated.ts | 0 .../events/Upgraded.ts | 2 +- .../read/getAirdrop.ts | 5 +- .../read/getImplementation.ts | 4 +- .../read/getReward.ts | 4 +- .../read/getRewardLocker.ts | 5 +- .../read/getRouter.ts | 5 +- .../read/guardSalt.ts | 4 +- .../read/owner.ts | 5 +- .../read/ownershipHandoverExpiresAt.ts | 4 +- .../read/predictAddress.ts} | 69 +++--- .../read/predictAddressByConfig.ts} | 71 +++--- .../read/proxiableUUID.ts | 5 +- .../write/addImplementation.ts | 4 +- .../write/buy.ts} | 56 ++--- .../write/cancelOwnershipHandover.ts | 2 +- .../write/claimReward.ts | 4 +- .../write/completeOwnershipHandover.ts | 4 +- .../write/create.ts} | 63 +++-- .../write/createById.ts} | 61 +++-- .../write/createByImplementationConfig.ts} | 65 +++-- .../write/distribute.ts} | 56 ++--- .../write/initialize.ts | 4 +- .../write/renounceOwnership.ts | 2 +- .../write/requestOwnershipHandover.ts | 2 +- .../write/sell.ts} | 58 +++-- .../write/setAirdrop.ts | 4 +- .../write/setRewardLocker.ts | 4 +- .../write/setRouter.ts | 4 +- .../write/transferOwnership.ts | 4 +- .../write/upgradeToAndCall.ts | 4 +- .../FeeManager/events/FeeConfigUpdated.ts | 2 +- .../events/FeeConfigUpdatedBySignature.ts | 2 +- .../events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../FeeManager/events/OwnershipTransferred.ts | 2 +- .../FeeManager/events/RolesUpdated.ts | 2 +- .../FeeManager/read/ROLE_FEE_MANAGER.ts | 5 +- .../FeeManager/read/calculateFee.ts | 4 +- .../FeeManager/read/domainSeparator.ts | 5 +- .../FeeManager/read/eip712Domain.ts | 5 +- .../FeeManager/read/feeConfigs.ts | 4 +- .../FeeManager/read/feeRecipient.ts | 5 +- .../FeeManager/read/getFeeConfig.ts | 4 +- .../FeeManager/read/hasAllRoles.ts | 4 +- .../FeeManager/read/hasAnyRole.ts | 4 +- .../__generated__/FeeManager/read/owner.ts | 5 +- .../read/ownershipHandoverExpiresAt.ts | 4 +- .../__generated__/FeeManager/read/rolesOf.ts | 4 +- .../FeeManager/read/usedNonces.ts | 4 +- .../write/cancelOwnershipHandover.ts | 2 +- .../write/completeOwnershipHandover.ts | 4 +- .../FeeManager/write/grantRoles.ts | 4 +- .../FeeManager/write/renounceOwnership.ts | 2 +- .../FeeManager/write/renounceRoles.ts | 4 +- .../write/requestOwnershipHandover.ts | 2 +- .../FeeManager/write/revokeRoles.ts | 4 +- .../FeeManager/write/setFeeConfig.ts | 4 +- .../write/setFeeConfigBySignature.ts | 4 +- .../FeeManager/write/setFeeRecipient.ts | 4 +- .../FeeManager/write/setTargetFeeConfig.ts | 4 +- .../FeeManager/write/transferOwnership.ts | 4 +- .../RewardLocker/events/PositionLocked.ts | 2 +- .../RewardLocker/events/RewardCollected.ts | 2 +- .../RewardLocker/read/feeManager.ts | 5 +- .../RewardLocker/read/positions.ts | 4 +- .../RewardLocker/read/v3PositionManager.ts | 5 +- .../RewardLocker/read/v4PositionManager.ts | 5 +- .../RewardLocker/write/collectReward.ts | 4 +- .../RewardLocker/write/lockPosition.ts | 4 +- .../events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../Router/events/OwnershipTransferred.ts | 2 +- .../Router/events/SwapExecuted.ts | 2 +- .../__generated__/Router/events/Upgraded.ts | 2 +- .../__generated__/Router/read/NATIVE_TOKEN.ts | 5 +- .../assets/__generated__/Router/read/owner.ts | 5 +- .../Router/read/ownershipHandoverExpiresAt.ts | 4 +- .../Router/read/proxiableUUID.ts | 5 +- .../Router/write/cancelOwnershipHandover.ts | 2 +- .../Router/write/completeOwnershipHandover.ts | 4 +- .../__generated__/Router/write/createPool.ts | 4 +- .../Router/write/disableAdapter.ts | 4 +- .../Router/write/enableAdapter.ts | 4 +- .../__generated__/Router/write/initialize.ts | 4 +- .../Router/write/renounceOwnership.ts | 2 +- .../Router/write/requestOwnershipHandover.ts | 2 +- .../assets/__generated__/Router/write/swap.ts | 4 +- .../Router/write/transferOwnership.ts | 4 +- .../Router/write/upgradeToAndCall.ts | 4 +- .../write/setClaimConditions.ts | 4 +- .../IContractMetadata/read/contractURI.ts | 5 +- .../IContractMetadata/read/name.ts | 5 +- .../IContractMetadata/read/symbol.ts | 5 +- .../IContractMetadata/write/setContractURI.ts | 4 +- .../IMulticall/write/multicall.ts | 4 +- .../IOwnable/events/OwnerUpdated.ts | 2 +- .../__generated__/IOwnable/read/owner.ts | 5 +- .../__generated__/IOwnable/write/setOwner.ts | 4 +- .../events/PlatformFeeInfoUpdated.ts | 2 +- .../IPlatformFee/read/getPlatformFeeInfo.ts | 5 +- .../IPlatformFee/write/setPlatformFeeInfo.ts | 4 +- .../events/PrimarySaleRecipientUpdated.ts | 2 +- .../IPrimarySale/read/primarySaleRecipient.ts | 5 +- .../write/setPrimarySaleRecipient.ts | 4 +- .../IRoyalty/events/DefaultRoyalty.ts | 2 +- .../IRoyalty/events/RoyaltyForToken.ts | 2 +- .../IRoyalty/read/getDefaultRoyaltyInfo.ts | 5 +- .../IRoyalty/read/getRoyaltyInfoForToken.ts | 4 +- .../IRoyalty/read/royaltyInfo.ts | 4 +- .../IRoyalty/read/supportsInterface.ts | 4 +- .../IRoyalty/write/setDefaultRoyaltyInfo.ts | 4 +- .../IRoyalty/write/setRoyaltyInfoForToken.ts | 4 +- .../events/RoyaltyEngineUpdated.ts | 2 +- .../read/supportsInterface.ts | 4 +- .../IRoyaltyPayments/write/getRoyalty.ts | 4 +- .../write/setRoyaltyEngine.ts | 4 +- .../read/getAllExtensions.ts | 5 +- .../IExtensionManager/write/addExtension.ts | 4 +- .../write/removeExtension.ts | 4 +- .../__generated__/AddressResolver/read/ABI.ts | 4 +- .../AddressResolver/read/addr.ts | 4 +- .../AddressResolver/read/contenthash.ts | 4 +- .../AddressResolver/read/name.ts | 4 +- .../AddressResolver/read/pubkey.ts | 4 +- .../AddressResolver/read/text.ts | 4 +- .../ens/__generated__/L2Resolver/read/name.ts | 4 +- .../UniversalResolver/read/resolve.ts | 4 +- .../UniversalResolver/read/reverse.ts | 4 +- .../BatchMintMetadata/read/getBaseURICount.ts | 5 +- .../read/getBatchIdAtIndex.ts | 4 +- .../DropERC1155/read/verifyClaim.ts | 4 +- .../DropERC1155/write/freezeBatchBaseURI.ts | 4 +- .../DropERC1155/write/setMaxTotalSupply.ts | 4 +- .../write/setSaleRecipientForToken.ts | 4 +- .../DropERC1155/write/updateBatchBaseURI.ts | 4 +- .../IAirdropERC1155/events/AirdropFailed.ts | 2 +- .../IAirdropERC1155/write/airdropERC1155.ts | 4 +- .../events/TokensClaimed.ts | 2 +- .../IAirdropERC1155Claimable/write/claim.ts | 4 +- .../IBurnableERC1155/write/burn.ts | 4 +- .../IBurnableERC1155/write/burnBatch.ts | 4 +- .../IClaimableERC1155/events/TokensClaimed.ts | 2 +- .../IClaimableERC1155/write/claim.ts | 4 +- .../events/ClaimConditionsUpdated.ts | 2 +- .../IDrop1155/events/TokensClaimed.ts | 2 +- .../IDrop1155/read/claimCondition.ts | 4 +- .../read/getActiveClaimConditionId.ts | 4 +- .../IDrop1155/read/getClaimConditionById.ts | 4 +- .../__generated__/IDrop1155/write/claim.ts | 4 +- .../IDrop1155/write/setClaimConditions.ts | 4 +- .../events/ClaimConditionUpdated.ts | 2 +- .../events/TokensClaimed.ts | 2 +- .../read/claimCondition.ts | 4 +- .../IDropSinglePhase1155/write/claim.ts | 4 +- .../write/setClaimConditions.ts | 4 +- .../IERC1155/events/ApprovalForAll.ts | 2 +- .../IERC1155/events/TransferBatch.ts | 2 +- .../IERC1155/events/TransferSingle.ts | 2 +- .../__generated__/IERC1155/events/URI.ts | 2 +- .../__generated__/IERC1155/read/balanceOf.ts | 4 +- .../IERC1155/read/balanceOfBatch.ts | 4 +- .../IERC1155/read/isApprovedForAll.ts | 4 +- .../IERC1155/read/totalSupply.ts | 4 +- .../__generated__/IERC1155/read/uri.ts | 4 +- .../IERC1155/write/safeBatchTransferFrom.ts | 4 +- .../IERC1155/write/safeTransferFrom.ts | 4 +- .../IERC1155/write/setApprovalForAll.ts | 4 +- .../read/nextTokenIdToMint.ts | 5 +- .../read/supportsInterface.ts | 4 +- .../write/onERC1155BatchReceived.ts | 4 +- .../write/onERC1155Received.ts | 4 +- .../write/depositRewardTokens.ts | 4 +- .../write/withdrawRewardTokens.ts | 4 +- .../ILazyMint/events/TokensLazyMinted.ts | 2 +- .../__generated__/ILazyMint/write/lazyMint.ts | 4 +- .../IMintableERC1155/events/TokensMinted.ts | 2 +- .../IMintableERC1155/write/mintTo.ts | 4 +- .../INFTMetadata/read/supportsInterface.ts | 4 +- .../INFTMetadata/write/freezeMetadata.ts | 2 +- .../INFTMetadata/write/setTokenURI.ts | 4 +- .../__generated__/IPack/events/PackCreated.ts | 2 +- .../__generated__/IPack/events/PackOpened.ts | 2 +- .../__generated__/IPack/events/PackUpdated.ts | 2 +- .../__generated__/IPack/write/createPack.ts | 4 +- .../__generated__/IPack/write/openPack.ts | 4 +- .../events/PackOpenRequested.ts | 2 +- .../events/PackRandomnessFulfilled.ts | 2 +- .../IPackVRFDirect/read/canClaimRewards.ts | 4 +- .../IPackVRFDirect/write/claimRewards.ts | 2 +- .../write/openPackAndClaimRewards.ts | 4 +- .../events/TokensMintedWithSignature.ts | 2 +- .../ISignatureMintERC1155/read/verify.ts | 4 +- .../write/mintWithSignature.ts | 4 +- .../IStaking1155/events/RewardsClaimed.ts | 2 +- .../IStaking1155/events/TokensStaked.ts | 2 +- .../IStaking1155/events/TokensWithdrawn.ts | 2 +- .../events/UpdatedRewardsPerUnitTime.ts | 2 +- .../IStaking1155/events/UpdatedTimeUnit.ts | 2 +- .../IStaking1155/read/getStakeInfo.ts | 4 +- .../IStaking1155/read/getStakeInfoForToken.ts | 4 +- .../IStaking1155/write/claimRewards.ts | 4 +- .../__generated__/IStaking1155/write/stake.ts | 4 +- .../IStaking1155/write/withdraw.ts | 4 +- .../Zora1155/read/nextTokenId.ts | 5 +- .../isValidSignature/read/isValidSignature.ts | 4 +- .../IERC165/read/supportsInterface.ts | 4 +- .../IERC1822Proxiable/read/proxiableUUID.ts | 5 +- .../DropERC20/read/verifyClaim.ts | 4 +- .../IAirdropERC20/events/AirdropFailed.ts | 2 +- .../IAirdropERC20/write/airdropERC20.ts | 4 +- .../events/TokensClaimed.ts | 2 +- .../IAirdropERC20Claimable/write/claim.ts | 4 +- .../IBurnableERC20/write/burn.ts | 4 +- .../IBurnableERC20/write/burnFrom.ts | 4 +- .../IDropERC20/events/TokensClaimed.ts | 2 +- .../IDropERC20/read/claimCondition.ts | 5 +- .../read/getActiveClaimConditionId.ts | 5 +- .../IDropERC20/read/getClaimConditionById.ts | 4 +- .../__generated__/IDropERC20/write/claim.ts | 4 +- .../IDropERC20/write/setClaimConditions.ts | 4 +- .../__generated__/IERC20/events/Approval.ts | 2 +- .../__generated__/IERC20/events/Transfer.ts | 2 +- .../__generated__/IERC20/read/allowance.ts | 4 +- .../__generated__/IERC20/read/balanceOf.ts | 4 +- .../__generated__/IERC20/read/decimals.ts | 5 +- .../__generated__/IERC20/read/totalSupply.ts | 5 +- .../__generated__/IERC20/write/approve.ts | 4 +- .../__generated__/IERC20/write/transfer.ts | 4 +- .../IERC20/write/transferFrom.ts | 4 +- .../IERC20Permit/read/DOMAIN_SEPARATOR.ts | 5 +- .../__generated__/IERC20Permit/read/nonces.ts | 4 +- .../IERC20Permit/write/permit.ts | 4 +- .../IMintableERC20/events/TokensMinted.ts | 2 +- .../IMintableERC20/write/mintTo.ts | 4 +- .../events/TokensMintedWithSignature.ts | 2 +- .../ISignatureMintERC20/read/verify.ts | 4 +- .../write/mintWithSignature.ts | 4 +- .../IStaking20/events/RewardsClaimed.ts | 2 +- .../IStaking20/events/TokensStaked.ts | 2 +- .../IStaking20/events/TokensWithdrawn.ts | 2 +- .../IStaking20/read/getStakeInfo.ts | 4 +- .../IStaking20/write/claimRewards.ts | 2 +- .../__generated__/IStaking20/write/stake.ts | 4 +- .../IStaking20/write/withdraw.ts | 4 +- .../ITokenStake/write/depositRewardTokens.ts | 4 +- .../ITokenStake/write/withdrawRewardTokens.ts | 4 +- .../IVotes/events/DelegateChanged.ts | 2 +- .../IVotes/events/DelegateVotesChanged.ts | 2 +- .../__generated__/IVotes/read/delegates.ts | 4 +- .../IVotes/read/getPastTotalSupply.ts | 4 +- .../__generated__/IVotes/read/getPastVotes.ts | 4 +- .../__generated__/IVotes/read/getVotes.ts | 4 +- .../__generated__/IVotes/write/delegate.ts | 4 +- .../IVotes/write/delegateBySig.ts | 4 +- .../__generated__/IWETH/write/deposit.ts | 2 +- .../__generated__/IWETH/write/transfer.ts | 4 +- .../__generated__/IWETH/write/withdraw.ts | 4 +- .../read/isTrustedForwarder.ts | 4 +- .../IERC2981/read/royaltyInfo.ts | 4 +- .../IAccount/write/validateUserOp.ts | 4 +- .../IAccountFactory/events/AccountCreated.ts | 2 +- .../IAccountFactory/events/SignerAdded.ts | 2 +- .../IAccountFactory/events/SignerRemoved.ts | 2 +- .../read/accountImplementation.ts | 5 +- .../IAccountFactory/read/getAccounts.ts | 4 +- .../read/getAccountsOfSigner.ts | 4 +- .../IAccountFactory/read/getAddress.ts | 4 +- .../IAccountFactory/read/getAllAccounts.ts | 5 +- .../IAccountFactory/read/isRegistered.ts | 4 +- .../IAccountFactory/read/totalAccounts.ts | 5 +- .../IAccountFactory/write/createAccount.ts | 4 +- .../IAccountFactory/write/onSignerAdded.ts | 4 +- .../IAccountFactory/write/onSignerRemoved.ts | 4 +- .../events/AdminUpdated.ts | 2 +- .../events/SignerPermissionsUpdated.ts | 2 +- .../read/getAllActiveSigners.ts | 5 +- .../IAccountPermissions/read/getAllAdmins.ts | 5 +- .../IAccountPermissions/read/getAllSigners.ts | 5 +- .../read/getPermissionsForSigner.ts | 4 +- .../read/isActiveSigner.ts | 4 +- .../IAccountPermissions/read/isAdmin.ts | 4 +- .../read/verifySignerPermissionRequest.ts | 4 +- .../write/setPermissionsForSigner.ts | 4 +- .../IEntryPoint/events/AccountDeployed.ts | 2 +- .../IEntryPoint/events/Deposited.ts | 2 +- .../events/SignatureAggregatorChanged.ts | 2 +- .../IEntryPoint/events/StakeLocked.ts | 2 +- .../IEntryPoint/events/StakeUnlocked.ts | 2 +- .../IEntryPoint/events/StakeWithdrawn.ts | 2 +- .../IEntryPoint/events/UserOperationEvent.ts | 2 +- .../events/UserOperationRevertReason.ts | 2 +- .../IEntryPoint/events/Withdrawn.ts | 2 +- .../IEntryPoint/read/balanceOf.ts | 4 +- .../IEntryPoint/read/getDepositInfo.ts | 4 +- .../IEntryPoint/read/getNonce.ts | 4 +- .../IEntryPoint/read/getUserOpHash.ts | 4 +- .../IEntryPoint/write/addStake.ts | 4 +- .../IEntryPoint/write/depositTo.ts | 4 +- .../IEntryPoint/write/getSenderAddress.ts | 4 +- .../IEntryPoint/write/handleAggregatedOps.ts | 4 +- .../IEntryPoint/write/handleOps.ts | 4 +- .../IEntryPoint/write/incrementNonce.ts | 4 +- .../IEntryPoint/write/simulateHandleOp.ts | 4 +- .../IEntryPoint/write/simulateValidation.ts | 4 +- .../IEntryPoint/write/unlockStake.ts | 2 +- .../IEntryPoint/write/withdrawStake.ts | 4 +- .../IEntryPoint/write/withdrawTo.ts | 4 +- .../events/PostOpRevertReason.ts | 2 +- .../IEntryPoint_v07/read/getUserOpHash.ts | 4 +- .../__generated__/IPaymaster/write/postOp.ts | 4 +- .../write/validatePaymasterUserOp.ts | 4 +- .../__generated__/IERC4626/events/Deposit.ts | 2 +- .../__generated__/IERC4626/events/Withdraw.ts | 2 +- .../__generated__/IERC4626/read/asset.ts | 5 +- .../IERC4626/read/convertToAssets.ts | 4 +- .../IERC4626/read/convertToShares.ts | 4 +- .../__generated__/IERC4626/read/maxDeposit.ts | 4 +- .../__generated__/IERC4626/read/maxMint.ts | 4 +- .../__generated__/IERC4626/read/maxRedeem.ts | 4 +- .../IERC4626/read/maxWithdraw.ts | 4 +- .../IERC4626/read/previewDeposit.ts | 4 +- .../IERC4626/read/previewMint.ts | 4 +- .../IERC4626/read/previewRedeem.ts | 4 +- .../IERC4626/read/previewWithdraw.ts | 4 +- .../IERC4626/read/totalAssets.ts | 5 +- .../__generated__/IERC4626/write/deposit.ts | 4 +- .../__generated__/IERC4626/write/mint.ts | 4 +- .../__generated__/IERC4626/write/redeem.ts | 4 +- .../__generated__/IERC4626/write/withdraw.ts | 4 +- .../IERC6551Account/read/isValidSigner.ts | 4 +- .../IERC6551Account/read/state.ts | 5 +- .../IERC6551Account/read/token.ts | 5 +- .../DropERC721/read/verifyClaim.ts | 4 +- .../DropERC721/write/freezeBatchBaseURI.ts | 4 +- .../DropERC721/write/setMaxTotalSupply.ts | 4 +- .../DropERC721/write/updateBatchBaseURI.ts | 4 +- .../IAirdropERC721/events/AirdropFailed.ts | 2 +- .../IAirdropERC721/write/airdropERC721.ts | 4 +- .../events/TokensClaimed.ts | 2 +- .../IAirdropERC721Claimable/write/claim.ts | 4 +- .../read/getBaseURICount.ts | 5 +- .../read/getBatchIdAtIndex.ts | 4 +- .../IBurnableERC721/write/burn.ts | 4 +- .../IClaimableERC721/events/TokensClaimed.ts | 2 +- .../IClaimableERC721/write/claim.ts | 4 +- .../IDelayedReveal/events/TokenURIRevealed.ts | 2 +- .../IDelayedReveal/read/encryptDecrypt.ts | 4 +- .../IDelayedReveal/read/encryptedData.ts | 4 +- .../IDelayedReveal/write/reveal.ts | 4 +- .../IDrop/events/TokensClaimed.ts | 2 +- .../IDrop/read/baseURIIndices.ts | 4 +- .../IDrop/read/claimCondition.ts | 5 +- .../IDrop/read/getActiveClaimConditionId.ts | 5 +- .../IDrop/read/getClaimConditionById.ts | 4 +- .../IDrop/read/nextTokenIdToClaim.ts | 5 +- .../erc721/__generated__/IDrop/write/claim.ts | 4 +- .../IDrop/write/setClaimConditions.ts | 4 +- .../IDropSinglePhase/events/TokensClaimed.ts | 2 +- .../IDropSinglePhase/read/claimCondition.ts | 5 +- .../IDropSinglePhase/write/claim.ts | 4 +- .../write/setClaimConditions.ts | 4 +- .../__generated__/IERC721A/events/Approval.ts | 2 +- .../IERC721A/events/ApprovalForAll.ts | 2 +- .../__generated__/IERC721A/events/Transfer.ts | 2 +- .../__generated__/IERC721A/read/balanceOf.ts | 4 +- .../IERC721A/read/getApproved.ts | 4 +- .../IERC721A/read/isApprovedForAll.ts | 4 +- .../__generated__/IERC721A/read/name.ts | 5 +- .../__generated__/IERC721A/read/ownerOf.ts | 4 +- .../IERC721A/read/startTokenId.ts | 5 +- .../__generated__/IERC721A/read/symbol.ts | 5 +- .../__generated__/IERC721A/read/tokenURI.ts | 4 +- .../IERC721A/read/totalSupply.ts | 5 +- .../__generated__/IERC721A/write/approve.ts | 4 +- .../IERC721A/write/safeTransferFrom.ts | 4 +- .../IERC721A/write/setApprovalForAll.ts | 4 +- .../IERC721A/write/transferFrom.ts | 4 +- .../events/ConsecutiveTransfer.ts | 2 +- .../IERC721AQueryable/read/tokensOfOwner.ts | 4 +- .../IERC721AQueryable/read/tokensOfOwnerIn.ts | 4 +- .../read/nextTokenIdToMint.ts | 5 +- .../IERC721Enumerable/read/tokenByIndex.ts | 4 +- .../read/tokenOfOwnerByIndex.ts | 4 +- .../IERC721Receiver/write/onERC721Received.ts | 4 +- .../ILazyMint/events/TokensLazyMinted.ts | 2 +- .../__generated__/ILazyMint/write/lazyMint.ts | 4 +- .../IMintableERC721/events/TokensMinted.ts | 2 +- .../IMintableERC721/write/mintTo.ts | 4 +- .../INFTMetadata/read/supportsInterface.ts | 4 +- .../INFTMetadata/write/freezeMetadata.ts | 2 +- .../INFTMetadata/write/setTokenURI.ts | 4 +- .../INFTStake/write/depositRewardTokens.ts | 4 +- .../INFTStake/write/withdrawRewardTokens.ts | 4 +- .../ISharedMetadata/read/sharedMetadata.ts | 5 +- .../write/setSharedMetadata.ts | 4 +- .../events/SharedMetadataDeleted.ts | 2 +- .../events/SharedMetadataUpdated.ts | 2 +- .../read/getAllSharedMetadata.ts | 5 +- .../write/deleteSharedMetadata.ts | 4 +- .../write/setSharedMetadata.ts | 4 +- .../events/TokensMintedWithSignature.ts | 2 +- .../ISignatureMintERC721/read/verify.ts | 4 +- .../write/mintWithSignature.ts | 4 +- .../events/TokensMintedWithSignature.ts | 2 +- .../ISignatureMintERC721_v2/read/verify.ts | 4 +- .../write/mintWithSignature.ts | 4 +- .../IStaking721/events/RewardsClaimed.ts | 2 +- .../IStaking721/events/TokensStaked.ts | 2 +- .../IStaking721/events/TokensWithdrawn.ts | 2 +- .../IStaking721/read/getStakeInfo.ts | 4 +- .../IStaking721/write/claimRewards.ts | 2 +- .../__generated__/IStaking721/write/stake.ts | 4 +- .../IStaking721/write/withdraw.ts | 4 +- .../LoyaltyCard/events/TokensMinted.ts | 2 +- .../events/TokensMintedWithSignature.ts | 2 +- .../LoyaltyCard/read/nextTokenIdToMint.ts | 5 +- .../LoyaltyCard/read/supportsInterface.ts | 4 +- .../LoyaltyCard/read/tokenURI.ts | 4 +- .../LoyaltyCard/read/totalMinted.ts | 5 +- .../__generated__/LoyaltyCard/write/cancel.ts | 4 +- .../LoyaltyCard/write/initialize.ts | 4 +- .../__generated__/LoyaltyCard/write/mintTo.ts | 4 +- .../LoyaltyCard/write/mintWithSignature.ts | 4 +- .../__generated__/LoyaltyCard/write/revoke.ts | 4 +- .../Multiwrap/events/TokensUnwrapped.ts | 2 +- .../Multiwrap/events/TokensWrapped.ts | 2 +- .../Multiwrap/read/contractType.ts | 5 +- .../Multiwrap/read/contractVersion.ts | 5 +- .../Multiwrap/read/getWrappedContents.ts | 4 +- .../Multiwrap/read/nextTokenIdToMint.ts | 5 +- .../Multiwrap/read/supportsInterface.ts | 4 +- .../__generated__/Multiwrap/read/tokenURI.ts | 4 +- .../Multiwrap/write/initialize.ts | 4 +- .../__generated__/Multiwrap/write/unwrap.ts | 4 +- .../__generated__/Multiwrap/write/wrap.ts | 4 +- .../IRouterState/read/getAllExtensions.ts | 5 +- .../IERC7579Account/read/accountId.ts | 5 +- .../IERC7579Account/read/isModuleInstalled.ts | 4 +- .../IERC7579Account/read/isValidSignature.ts | 4 +- .../read/supportsExecutionMode.ts | 4 +- .../IERC7579Account/read/supportsModule.ts | 4 +- .../IERC7579Account/write/execute.ts | 4 +- .../write/executeFromExecutor.ts | 4 +- .../IERC7579Account/write/installModule.ts | 4 +- .../IERC7579Account/write/uninstallModule.ts | 4 +- .../events/OwnershipTransferred.ts | 2 +- .../ModularAccountFactory/events/Upgraded.ts | 2 +- .../read/accountImplementation.ts | 5 +- .../ModularAccountFactory/read/entrypoint.ts | 5 +- .../ModularAccountFactory/read/getAddress.ts | 4 +- .../read/implementation.ts | 5 +- .../ModularAccountFactory/read/owner.ts | 5 +- .../ModularAccountFactory/write/addStake.ts | 4 +- .../write/createAccountWithModules.ts | 4 +- .../write/renounceOwnership.ts | 2 +- .../write/transferOwnership.ts | 4 +- .../write/unlockStake.ts | 2 +- .../ModularAccountFactory/write/upgradeTo.ts | 4 +- .../ModularAccountFactory/write/withdraw.ts | 4 +- .../write/withdrawStake.ts | 4 +- .../MinimalAccount/events/Executed.ts | 2 +- .../MinimalAccount/events/SessionCreated.ts | 2 +- .../MinimalAccount/read/eip712Domain.ts | 5 +- .../read/getCallPoliciesForSigner.ts | 4 +- .../read/getSessionExpirationForSigner.ts | 4 +- .../read/getSessionStateForSigner.ts | 4 +- .../read/getTransferPoliciesForSigner.ts | 4 +- .../MinimalAccount/read/isWildcardSigner.ts | 4 +- .../write/createSessionWithSig.ts | 4 +- .../MinimalAccount/write/execute.ts | 4 +- .../MinimalAccount/write/executeWithSig.ts | 4 +- .../__generated__/IBundler/read/idGateway.ts | 5 +- .../__generated__/IBundler/read/keyGateway.ts | 5 +- .../__generated__/IBundler/read/price.ts | 4 +- .../__generated__/IBundler/write/register.ts | 4 +- .../IIdGateway/read/REGISTER_TYPEHASH.ts | 5 +- .../IIdGateway/read/idRegistry.ts | 5 +- .../__generated__/IIdGateway/read/price.ts | 4 +- .../IIdGateway/read/storageRegistry.ts | 5 +- .../IIdGateway/write/register.ts | 4 +- .../IIdGateway/write/registerFor.ts | 4 +- .../IIdRegistry/events/AdminReset.ts | 2 +- .../events/ChangeRecoveryAddress.ts | 2 +- .../IIdRegistry/events/Recover.ts | 2 +- .../IIdRegistry/events/Register.ts | 2 +- .../IIdRegistry/events/Transfer.ts | 2 +- .../read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts | 5 +- .../TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts | 5 +- .../IIdRegistry/read/TRANSFER_TYPEHASH.ts | 5 +- .../IIdRegistry/read/custodyOf.ts | 4 +- .../IIdRegistry/read/gatewayFrozen.ts | 5 +- .../IIdRegistry/read/idCounter.ts | 5 +- .../IIdRegistry/read/idGateway.ts | 5 +- .../__generated__/IIdRegistry/read/idOf.ts | 4 +- .../IIdRegistry/read/recoveryOf.ts | 4 +- .../IIdRegistry/read/verifyFidSignature.ts | 4 +- .../write/changeRecoveryAddress.ts | 4 +- .../write/changeRecoveryAddressFor.ts | 4 +- .../IIdRegistry/write/recover.ts | 4 +- .../IIdRegistry/write/recoverFor.ts | 4 +- .../IIdRegistry/write/transfer.ts | 4 +- .../write/transferAndChangeRecovery.ts | 4 +- .../write/transferAndChangeRecoveryFor.ts | 4 +- .../IIdRegistry/write/transferFor.ts | 4 +- .../IKeyGateway/read/ADD_TYPEHASH.ts | 5 +- .../IKeyGateway/read/keyRegistry.ts | 5 +- .../__generated__/IKeyGateway/read/nonces.ts | 4 +- .../__generated__/IKeyGateway/write/add.ts | 4 +- .../__generated__/IKeyGateway/write/addFor.ts | 4 +- .../__generated__/IKeyRegistry/events/Add.ts | 2 +- .../IKeyRegistry/events/AdminReset.ts | 2 +- .../IKeyRegistry/events/Remove.ts | 2 +- .../IKeyRegistry/read/REMOVE_TYPEHASH.ts | 5 +- .../IKeyRegistry/read/gatewayFrozen.ts | 5 +- .../IKeyRegistry/read/idRegistry.ts | 5 +- .../__generated__/IKeyRegistry/read/keyAt.ts | 4 +- .../IKeyRegistry/read/keyDataOf.ts | 4 +- .../IKeyRegistry/read/keyGateway.ts | 5 +- .../__generated__/IKeyRegistry/read/keysOf.ts | 4 +- .../IKeyRegistry/read/maxKeysPerFid.ts | 5 +- .../IKeyRegistry/read/totalKeys.ts | 4 +- .../IKeyRegistry/write/remove.ts | 4 +- .../IKeyRegistry/write/removeFor.ts | 4 +- .../read/deprecationTimestamp.ts | 5 +- .../IStorageRegistry/read/maxUnits.ts | 5 +- .../IStorageRegistry/read/price.ts | 4 +- .../IStorageRegistry/read/rentedUnits.ts | 5 +- .../IStorageRegistry/read/unitPrice.ts | 5 +- .../IStorageRegistry/read/usdUnitPrice.ts | 5 +- .../IStorageRegistry/write/batchRent.ts | 4 +- .../IStorageRegistry/write/rent.ts | 4 +- .../FollowNFT/read/getFollowData.ts | 4 +- .../FollowNFT/read/getFollowTimestamp.ts | 4 +- .../FollowNFT/read/getFollowTokenId.ts | 4 +- .../FollowNFT/read/getFollowerCount.ts | 5 +- .../FollowNFT/read/getFollowerProfileId.ts | 4 +- .../read/getOriginalFollowTimestamp.ts | 4 +- .../read/getProfileIdAllowedToRecover.ts | 4 +- .../FollowNFT/read/isFollowing.ts | 4 +- .../FollowNFT/read/mintTimestampOf.ts | 4 +- .../LensHandle/read/getHandle.ts | 4 +- .../read/getHandleTokenURIContract.ts | 5 +- .../LensHandle/read/getLocalName.ts | 4 +- .../LensHandle/read/getTokenId.ts | 4 +- .../lens/__generated__/LensHub/read/exists.ts | 4 +- .../LensHub/read/getContentURI.ts | 4 +- .../__generated__/LensHub/read/getProfile.ts | 4 +- .../LensHub/read/getProfileIdByHandleHash.ts | 4 +- .../LensHub/read/getPublication.ts | 4 +- .../LensHub/read/mintTimestampOf.ts | 4 +- .../lens/__generated__/LensHub/read/nonces.ts | 4 +- .../__generated__/LensHub/read/tokenDataOf.ts | 4 +- .../ModuleRegistry/read/getModuleTypes.ts | 4 +- .../read/isErc20CurrencyRegistered.ts | 4 +- .../ModuleRegistry/read/isModuleRegistered.ts | 4 +- .../read/isModuleRegisteredAs.ts | 4 +- .../read/getDefaultHandle.ts | 4 +- .../TokenHandleRegistry/read/nonces.ts | 4 +- .../TokenHandleRegistry/read/resolve.ts | 4 +- .../events/BuyerApprovedForListing.ts | 2 +- .../events/CancelledListing.ts | 2 +- .../events/CurrencyApprovedForListing.ts | 2 +- .../IDirectListings/events/NewListing.ts | 2 +- .../IDirectListings/events/NewSale.ts | 2 +- .../IDirectListings/events/UpdatedListing.ts | 2 +- .../read/currencyPriceForListing.ts | 4 +- .../IDirectListings/read/getAllListings.ts | 4 +- .../read/getAllValidListings.ts | 4 +- .../IDirectListings/read/getListing.ts | 4 +- .../read/isBuyerApprovedForListing.ts | 4 +- .../read/isCurrencyApprovedForListing.ts | 4 +- .../IDirectListings/read/totalListings.ts | 5 +- .../write/approveBuyerForListing.ts | 4 +- .../write/approveCurrencyForListing.ts | 4 +- .../IDirectListings/write/buyFromListing.ts | 4 +- .../IDirectListings/write/cancelListing.ts | 4 +- .../IDirectListings/write/createListing.ts | 4 +- .../IDirectListings/write/updateListing.ts | 4 +- .../IEnglishAuctions/events/AuctionClosed.ts | 2 +- .../events/CancelledAuction.ts | 2 +- .../IEnglishAuctions/events/NewAuction.ts | 2 +- .../IEnglishAuctions/events/NewBid.ts | 2 +- .../IEnglishAuctions/read/getAllAuctions.ts | 4 +- .../read/getAllValidAuctions.ts | 4 +- .../IEnglishAuctions/read/getAuction.ts | 4 +- .../IEnglishAuctions/read/getWinningBid.ts | 4 +- .../IEnglishAuctions/read/isAuctionExpired.ts | 4 +- .../IEnglishAuctions/read/isNewWinningBid.ts | 4 +- .../IEnglishAuctions/read/totalAuctions.ts | 5 +- .../IEnglishAuctions/write/bidInAuction.ts | 4 +- .../IEnglishAuctions/write/cancelAuction.ts | 4 +- .../write/collectAuctionPayout.ts | 4 +- .../write/collectAuctionTokens.ts | 4 +- .../IEnglishAuctions/write/createAuction.ts | 4 +- .../IMarketplace/events/AuctionClosed.ts | 2 +- .../IMarketplace/events/ListingAdded.ts | 2 +- .../IMarketplace/events/ListingRemoved.ts | 2 +- .../IMarketplace/events/ListingUpdated.ts | 2 +- .../IMarketplace/events/NewOffer.ts | 2 +- .../IMarketplace/events/NewSale.ts | 2 +- .../events/PlatformFeeInfoUpdated.ts | 2 +- .../IMarketplace/read/contractType.ts | 5 +- .../IMarketplace/read/contractURI.ts | 5 +- .../IMarketplace/read/contractVersion.ts | 5 +- .../IMarketplace/read/getPlatformFeeInfo.ts | 5 +- .../IMarketplace/write/acceptOffer.ts | 4 +- .../__generated__/IMarketplace/write/buy.ts | 4 +- .../IMarketplace/write/cancelDirectListing.ts | 4 +- .../IMarketplace/write/closeAuction.ts | 4 +- .../IMarketplace/write/createListing.ts | 4 +- .../__generated__/IMarketplace/write/offer.ts | 4 +- .../IMarketplace/write/setContractURI.ts | 4 +- .../IMarketplace/write/setPlatformFeeInfo.ts | 4 +- .../IMarketplace/write/updateListing.ts | 4 +- .../IOffers/events/AcceptedOffer.ts | 2 +- .../IOffers/events/CancelledOffer.ts | 2 +- .../__generated__/IOffers/events/NewOffer.ts | 2 +- .../IOffers/read/getAllOffers.ts | 4 +- .../IOffers/read/getAllValidOffers.ts | 4 +- .../__generated__/IOffers/read/getOffer.ts | 4 +- .../__generated__/IOffers/read/totalOffers.ts | 5 +- .../IOffers/write/acceptOffer.ts | 4 +- .../IOffers/write/cancelOffer.ts | 4 +- .../__generated__/IOffers/write/makeOffer.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/getAllMetadataBatches.ts | 5 +- .../read/getBatchIndex.ts | 4 +- .../read/getMetadataBatch.ts | 4 +- .../read/getModuleConfig.ts | 5 +- .../BatchMetadataERC1155/write/setBaseURI.ts | 4 +- .../write/uploadMetadata.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/getAllMetadataBatches.ts | 5 +- .../BatchMetadataERC721/read/getBatchIndex.ts | 4 +- .../read/getMetadataBatch.ts | 4 +- .../read/getModuleConfig.ts | 5 +- .../BatchMetadataERC721/write/setBaseURI.ts | 4 +- .../write/uploadMetadata.ts | 4 +- .../ClaimableERC1155/module/install.ts | 4 +- .../read/getClaimConditionByTokenId.ts | 4 +- .../ClaimableERC1155/read/getSaleConfig.ts | 5 +- .../write/setClaimConditionByTokenId.ts | 4 +- .../ClaimableERC1155/write/setSaleConfig.ts | 4 +- .../ClaimableERC20/module/install.ts | 4 +- .../ClaimableERC20/read/getClaimCondition.ts | 5 +- .../ClaimableERC20/read/getSaleConfig.ts | 5 +- .../ClaimableERC20/write/setClaimCondition.ts | 4 +- .../ClaimableERC20/write/setSaleConfig.ts | 4 +- .../ClaimableERC721/module/install.ts | 4 +- .../ClaimableERC721/read/getClaimCondition.ts | 5 +- .../ClaimableERC721/read/getSaleConfig.ts | 5 +- .../write/setClaimCondition.ts | 4 +- .../ClaimableERC721/write/setSaleConfig.ts | 4 +- .../__generated__/ERC1155Core/write/burn.ts | 4 +- .../ERC1155Core/write/initialize.ts | 4 +- .../__generated__/ERC1155Core/write/mint.ts | 4 +- .../ERC1155Core/write/mintWithSignature.ts | 4 +- .../__generated__/ERC20Core/write/burn.ts | 4 +- .../ERC20Core/write/initialize.ts | 4 +- .../__generated__/ERC20Core/write/mint.ts | 4 +- .../ERC20Core/write/mintWithSignature.ts | 4 +- .../ERC721Core/read/totalMinted.ts | 5 +- .../__generated__/ERC721Core/write/burn.ts | 4 +- .../ERC721Core/write/initialize.ts | 4 +- .../__generated__/ERC721Core/write/mint.ts | 4 +- .../ERC721Core/write/mintWithSignature.ts | 4 +- .../IModularCore/read/getInstalledModules.ts | 5 +- .../read/getSupportedCallbackFunctions.ts | 5 +- .../IModularCore/read/supportsInterface.ts | 4 +- .../IModularCore/write/installModule.ts | 4 +- .../IModularCore/write/uninstallModule.ts | 4 +- .../IModule/read/getModuleConfig.ts | 5 +- .../MintableERC1155/module/install.ts | 4 +- .../MintableERC1155/read/getSaleConfig.ts | 5 +- .../MintableERC1155/write/setSaleConfig.ts | 4 +- .../MintableERC1155/write/setTokenURI.ts | 4 +- .../MintableERC20/module/install.ts | 4 +- .../MintableERC20/read/getSaleConfig.ts | 5 +- .../MintableERC20/write/setSaleConfig.ts | 4 +- .../MintableERC721/events/NewMetadataBatch.ts | 2 +- .../MintableERC721/module/install.ts | 4 +- .../MintableERC721/read/getSaleConfig.ts | 5 +- .../MintableERC721/write/setSaleConfig.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/onTokenURI.ts | 4 +- .../write/setSharedMetadata.ts | 4 +- .../events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../events/OwnershipTransferred.ts | 2 +- .../OwnableRoles/events/RolesUpdated.ts | 2 +- .../OwnableRoles/read/hasAllRoles.ts | 4 +- .../OwnableRoles/read/hasAnyRole.ts | 4 +- .../__generated__/OwnableRoles/read/owner.ts | 5 +- .../read/ownershipHandoverExpiresAt.ts | 4 +- .../OwnableRoles/read/rolesOf.ts | 4 +- .../write/cancelOwnershipHandover.ts | 2 +- .../write/completeOwnershipHandover.ts | 4 +- .../OwnableRoles/write/grantRoles.ts | 4 +- .../OwnableRoles/write/renounceOwnership.ts | 2 +- .../OwnableRoles/write/renounceRoles.ts | 4 +- .../write/requestOwnershipHandover.ts | 2 +- .../OwnableRoles/write/revokeRoles.ts | 4 +- .../OwnableRoles/write/transferOwnership.ts | 4 +- .../events/DefaultRoyaltyUpdated.ts | 2 +- .../events/TokenRoyaltyUpdated.ts | 2 +- .../RoyaltyERC1155/module/install.ts | 4 +- .../read/getDefaultRoyaltyInfo.ts | 5 +- .../read/getRoyaltyInfoForToken.ts | 4 +- .../read/getTransferValidationFunction.ts | 5 +- .../read/getTransferValidator.ts | 5 +- .../RoyaltyERC1155/read/royaltyInfo.ts | 4 +- .../write/setDefaultRoyaltyInfo.ts | 4 +- .../write/setRoyaltyInfoForToken.ts | 4 +- .../write/setTransferValidator.ts | 4 +- .../events/DefaultRoyaltyUpdated.ts | 2 +- .../events/TokenRoyaltyUpdated.ts | 2 +- .../RoyaltyERC721/module/install.ts | 4 +- .../read/getDefaultRoyaltyInfo.ts | 5 +- .../read/getRoyaltyInfoForToken.ts | 4 +- .../read/getTransferValidationFunction.ts | 5 +- .../read/getTransferValidator.ts | 5 +- .../RoyaltyERC721/read/royaltyInfo.ts | 4 +- .../write/setDefaultRoyaltyInfo.ts | 4 +- .../write/setRoyaltyInfoForToken.ts | 4 +- .../write/setTransferValidator.ts | 4 +- .../module/install.ts | 4 +- .../read/getModuleConfig.ts | 5 +- .../read/getNextTokenId.ts | 5 +- .../write/updateTokenIdERC1155.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/isTransferEnabled.ts | 5 +- .../read/isTransferEnabledFor.ts | 4 +- .../write/setTransferable.ts | 4 +- .../write/setTransferableFor.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/isTransferEnabled.ts | 5 +- .../read/isTransferEnabledFor.ts | 4 +- .../write/setTransferable.ts | 4 +- .../write/setTransferableFor.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/isTransferEnabled.ts | 5 +- .../read/isTransferEnabledFor.ts | 4 +- .../write/setTransferable.ts | 4 +- .../write/setTransferableFor.ts | 4 +- .../IMulticall3/read/getBasefee.ts | 5 +- .../IMulticall3/read/getBlockHash.ts | 4 +- .../IMulticall3/read/getBlockNumber.ts | 5 +- .../IMulticall3/read/getChainId.ts | 5 +- .../read/getCurrentBlockCoinbase.ts | 5 +- .../read/getCurrentBlockDifficulty.ts | 5 +- .../read/getCurrentBlockGasLimit.ts | 5 +- .../read/getCurrentBlockTimestamp.ts | 5 +- .../IMulticall3/read/getEthBalance.ts | 4 +- .../IMulticall3/read/getLastBlockHash.ts | 5 +- .../IMulticall3/write/aggregate.ts | 4 +- .../IMulticall3/write/aggregate3.ts | 4 +- .../IMulticall3/write/aggregate3Value.ts | 4 +- .../IMulticall3/write/blockAndAggregate.ts | 4 +- .../IMulticall3/write/tryAggregate.ts | 4 +- .../IMulticall3/write/tryBlockAndAggregate.ts | 4 +- .../__generated__/IPack/events/PackCreated.ts | 2 +- .../__generated__/IPack/events/PackOpened.ts | 2 +- .../__generated__/IPack/events/PackUpdated.ts | 2 +- .../__generated__/IPack/read/canUpdatePack.ts | 4 +- .../IPack/read/getPackContents.ts | 4 +- .../IPack/read/getTokenCountOfBundle.ts | 4 +- .../IPack/read/getTokenOfBundle.ts | 4 +- .../IPack/read/getUriOfBundle.ts | 4 +- .../IPack/write/addPackContents.ts | 4 +- .../__generated__/IPack/write/createPack.ts | 4 +- .../__generated__/IPack/write/openPack.ts | 4 +- .../events/PackOpenRequested.ts | 2 +- .../events/PackRandomnessFulfilled.ts | 2 +- .../IPackVRFDirect/read/canClaimRewards.ts | 4 +- .../IPackVRFDirect/write/claimRewards.ts | 2 +- .../write/openPackAndClaimRewards.ts | 4 +- .../IPermissions/events/RoleAdminChanged.ts | 2 +- .../IPermissions/events/RoleGranted.ts | 2 +- .../IPermissions/events/RoleRevoked.ts | 2 +- .../IPermissions/read/getRoleAdmin.ts | 4 +- .../IPermissions/read/hasRole.ts | 4 +- .../IPermissions/write/grantRole.ts | 4 +- .../IPermissions/write/renounceRole.ts | 4 +- .../IPermissions/write/revokeRole.ts | 4 +- .../events/RoleAdminChanged.ts | 2 +- .../events/RoleGranted.ts | 2 +- .../events/RoleRevoked.ts | 2 +- .../read/getRoleAdmin.ts | 4 +- .../read/getRoleMember.ts | 4 +- .../read/getRoleMemberCount.ts | 4 +- .../IPermissionsEnumerable/read/hasRole.ts | 4 +- .../IPermissionsEnumerable/write/grantRole.ts | 4 +- .../write/renounceRole.ts | 4 +- .../write/revokeRole.ts | 4 +- .../DropERC1155/write/initialize.ts | 4 +- .../DropERC20/write/initialize.ts | 4 +- .../DropERC721/write/initialize.ts | 4 +- .../Marketplace/write/initialize.ts | 4 +- .../OpenEditionERC721/write/initialize.ts | 4 +- .../__generated__/Pack/write/initialize.ts | 4 +- .../__generated__/Split/write/initialize.ts | 4 +- .../TokenERC1155/write/initialize.ts | 4 +- .../TokenERC20/write/initialize.ts | 4 +- .../TokenERC721/write/initialize.ts | 4 +- .../VoteERC20/write/initialize.ts | 4 +- .../split/__generated__/Split/read/payee.ts | 4 +- .../__generated__/Split/read/payeeCount.ts | 5 +- .../__generated__/Split/read/releasable.ts | 4 +- .../__generated__/Split/read/released.ts | 4 +- .../split/__generated__/Split/read/shares.ts | 4 +- .../__generated__/Split/read/totalReleased.ts | 5 +- .../__generated__/Split/read/totalShares.ts | 5 +- .../__generated__/Split/write/distribute.ts | 2 +- .../__generated__/Split/write/release.ts | 4 +- .../IArbWasm/read/codehashVersion.ts | 4 +- .../IArbWasm/write/activateProgram.ts | 4 +- .../write/stylus_constructor.ts | 2 +- .../IStylusDeployer/write/deploy.ts | 4 +- .../__generated__/IAppURI/read/appURI.ts | 5 +- .../__generated__/IAppURI/write/setAppURI.ts | 4 +- .../IContractFactory/events/ProxyDeployed.ts | 2 +- .../events/ProxyDeployedV2.ts | 2 +- .../write/deployProxyByImplementation.ts | 4 +- .../write/deployProxyByImplementationV2.ts | 4 +- .../events/ContractPublished.ts | 2 +- .../events/ContractUnpublished.ts | 2 +- .../events/PublisherProfileUpdated.ts | 2 +- .../read/getAllPublishedContracts.ts | 4 +- .../read/getPublishedContract.ts | 4 +- .../read/getPublishedContractVersions.ts | 4 +- .../read/getPublishedUriFromCompilerUri.ts | 4 +- .../read/getPublisherProfileUri.ts | 4 +- .../write/publishContract.ts | 4 +- .../write/setPublisherProfileUri.ts | 4 +- .../write/unpublishContract.ts | 4 +- .../IRulesEngine/events/RuleCreated.ts | 2 +- .../IRulesEngine/events/RuleDeleted.ts | 2 +- .../events/RulesEngineOverriden.ts | 2 +- .../IRulesEngine/read/getAllRules.ts | 5 +- .../read/getRulesEngineOverride.ts | 5 +- .../IRulesEngine/read/getScore.ts | 4 +- .../write/createRuleMultiplicative.ts | 4 +- .../IRulesEngine/write/createRuleThreshold.ts | 4 +- .../IRulesEngine/write/deleteRule.ts | 4 +- .../write/setRulesEngineOverride.ts | 4 +- .../events/RequestExecuted.ts | 2 +- .../ISignatureAction/read/verify.ts | 4 +- .../__generated__/ITWFee/read/getFeeInfo.ts | 4 +- .../ITWMultichainRegistry/events/Added.ts | 2 +- .../ITWMultichainRegistry/events/Deleted.ts | 2 +- .../ITWMultichainRegistry/read/count.ts | 4 +- .../ITWMultichainRegistry/read/getAll.ts | 4 +- .../read/getMetadataUri.ts | 4 +- .../ITWMultichainRegistry/write/add.ts | 4 +- .../ITWMultichainRegistry/write/remove.ts | 4 +- .../IThirdwebContract/read/contractType.ts | 5 +- .../IThirdwebContract/read/contractURI.ts | 5 +- .../IThirdwebContract/read/contractVersion.ts | 5 +- .../IThirdwebContract/write/setContractURI.ts | 4 +- .../ERC20Asset/events/Approval.ts | 47 ++++ .../ERC20Asset/events/ContractURIUpdated.ts | 24 ++ .../ERC20Asset/events/Initialized.ts | 24 ++ .../events/OwnershipHandoverCanceled.ts | 42 ++++ .../events/OwnershipHandoverRequested.ts | 42 ++++ .../ERC20Asset/events/OwnershipTransferred.ts | 49 ++++ .../ERC20Asset/events/Transfer.ts | 47 ++++ .../ERC20Asset/read/DOMAIN_SEPARATOR.ts | 71 ++++++ .../ERC20Asset/read/allowance.ts | 134 ++++++++++ .../ERC20Asset/read/balanceOf.ts | 126 ++++++++++ .../ERC20Asset/read/contractURI.ts | 70 ++++++ .../__generated__/ERC20Asset/read/decimals.ts | 70 ++++++ .../__generated__/ERC20Asset/read/name.ts | 70 ++++++ .../__generated__/ERC20Asset/read/nonces.ts | 122 +++++++++ .../__generated__/ERC20Asset/read/owner.ts | 71 ++++++ .../read/ownershipHandoverExpiresAt.ts | 135 ++++++++++ .../ERC20Asset/read/supportsInterface.ts | 130 ++++++++++ .../__generated__/ERC20Asset/read/symbol.ts | 70 ++++++ .../ERC20Asset/read/totalSupply.ts | 71 ++++++ .../__generated__/ERC20Asset/write/approve.ts | 149 +++++++++++ .../__generated__/ERC20Asset/write/burn.ts | 137 ++++++++++ .../ERC20Asset/write/burnFrom.ts | 145 +++++++++++ .../write/cancelOwnershipHandover.ts | 52 ++++ .../write/completeOwnershipHandover.ts | 148 +++++++++++ .../ERC20Asset/write/initialize.ts | 189 ++++++++++++++ .../__generated__/ERC20Asset/write/permit.ts | 201 +++++++++++++++ .../ERC20Asset/write/renounceOwnership.ts | 50 ++++ .../write/requestOwnershipHandover.ts | 52 ++++ .../ERC20Asset/write/setContractURI.ts | 142 +++++++++++ .../ERC20Asset/write/transfer.ts | 149 +++++++++++ .../ERC20Asset/write/transferFrom.ts | 167 +++++++++++++ .../ERC20Asset/write/transferOwnership.ts | 141 +++++++++++ .../ERC20Entrypoint/events/AirdropUpdated.ts | 24 ++ .../ERC20Entrypoint/events/Created.ts | 47 ++++ .../ERC20Entrypoint/events/Distributed.ts | 25 ++ .../events/ImplementationAdded.ts | 43 ++++ .../ERC20Entrypoint/events/Initialized.ts | 24 ++ .../events/OwnershipHandoverCanceled.ts | 42 ++++ .../events/OwnershipHandoverRequested.ts | 42 ++++ .../events/OwnershipTransferred.ts | 49 ++++ .../ERC20Entrypoint/events/RewardClaimed.ts | 24 ++ .../events/RewardLockerUpdated.ts | 24 ++ .../ERC20Entrypoint/events/RouterUpdated.ts | 24 ++ .../ERC20Entrypoint/events/Upgraded.ts | 40 +++ .../ERC20Entrypoint/read/getAirdrop.ts | 71 ++++++ .../ERC20Entrypoint/read/getImplementation.ts | 153 ++++++++++++ .../ERC20Entrypoint/read/getReward.ts | 147 +++++++++++ .../ERC20Entrypoint/read/getRewardLocker.ts | 71 ++++++ .../ERC20Entrypoint/read/getRouter.ts | 71 ++++++ .../ERC20Entrypoint/read/guardSalt.ts | 165 +++++++++++++ .../ERC20Entrypoint/read/owner.ts | 71 ++++++ .../read/ownershipHandoverExpiresAt.ts | 135 ++++++++++ .../ERC20Entrypoint/read/predictAddress.ts | 176 +++++++++++++ .../read/predictAddressByConfig.ts | 211 ++++++++++++++++ .../ERC20Entrypoint/read/proxiableUUID.ts | 70 ++++++ .../write/addImplementation.ts | 181 ++++++++++++++ .../ERC20Entrypoint/write/buy.ts | 196 +++++++++++++++ .../write/cancelOwnershipHandover.ts | 52 ++++ .../ERC20Entrypoint/write/claimReward.ts | 139 +++++++++++ .../write/completeOwnershipHandover.ts | 148 +++++++++++ .../ERC20Entrypoint/write/create.ts | 180 ++++++++++++++ .../ERC20Entrypoint/write/createById.ts | 198 +++++++++++++++ .../write/createByImplementationConfig.ts | 233 ++++++++++++++++++ .../ERC20Entrypoint/write/distribute.ts | 164 ++++++++++++ .../ERC20Entrypoint/write/initialize.ts | 176 +++++++++++++ .../write/renounceOwnership.ts | 50 ++++ .../write/requestOwnershipHandover.ts | 52 ++++ .../ERC20Entrypoint/write/sell.ts} | 114 ++++----- .../ERC20Entrypoint/write/setAirdrop.ts | 139 +++++++++++ .../ERC20Entrypoint/write/setRewardLocker.ts | 142 +++++++++++ .../ERC20Entrypoint/write/setRouter.ts | 139 +++++++++++ .../write/transferOwnership.ts | 141 +++++++++++ .../ERC20Entrypoint/write/upgradeToAndCall.ts | 153 ++++++++++++ .../FeeManager/events/FeeConfigUpdated.ts | 49 ++++ .../events/FeeConfigUpdatedBySignature.ts | 55 +++++ .../FeeManager/events/FeeRecipientUpdated.ts | 24 ++ .../events/OwnershipHandoverCanceled.ts | 42 ++++ .../events/OwnershipHandoverRequested.ts | 42 ++++ .../FeeManager/events/OwnershipTransferred.ts | 49 ++++ .../FeeManager/events/RolesUpdated.ts | 47 ++++ .../FeeManager/read/ROLE_FEE_MANAGER.ts | 70 ++++++ .../FeeManager/read/calculateFee.ts | 167 +++++++++++++ .../FeeManager/read/domainSeparator.ts | 70 ++++++ .../FeeManager/read/eip712Domain.ts | 95 +++++++ .../FeeManager/read/feeConfigs.ts | 142 +++++++++++ .../FeeManager/read/feeRecipient.ts | 70 ++++++ .../FeeManager/read/getFeeConfig.ts | 148 +++++++++++ .../FeeManager/read/hasAllRoles.ts | 133 ++++++++++ .../FeeManager/read/hasAnyRole.ts | 133 ++++++++++ .../__generated__/FeeManager/read/owner.ts | 71 ++++++ .../read/ownershipHandoverExpiresAt.ts | 135 ++++++++++ .../__generated__/FeeManager/read/rolesOf.ts | 122 +++++++++ .../FeeManager/read/usedNonces.ts | 129 ++++++++++ .../write/cancelOwnershipHandover.ts | 52 ++++ .../write/completeOwnershipHandover.ts | 148 +++++++++++ .../FeeManager/write/grantRoles.ts | 147 +++++++++++ .../FeeManager/write/renounceOwnership.ts | 50 ++++ .../FeeManager/write/renounceRoles.ts | 139 +++++++++++ .../write/requestOwnershipHandover.ts | 52 ++++ .../FeeManager/write/revokeRoles.ts | 147 +++++++++++ .../FeeManager/write/setFeeConfig.ts | 163 ++++++++++++ .../write/setFeeConfigBySignature.ts | 222 +++++++++++++++++ .../FeeManager/write/setFeeRecipient.ts | 142 +++++++++++ .../FeeManager/write/setTargetFeeConfig.ts | 188 ++++++++++++++ .../FeeManager/write/transferOwnership.ts | 141 +++++++++++ .../RewardLocker/events/PositionLocked.ts | 47 ++++ .../RewardLocker/events/RewardCollected.ts | 49 ++++ .../RewardLocker/read/feeManager.ts | 70 ++++++ .../RewardLocker/read/positions.ts | 150 +++++++++++ .../RewardLocker/read/v3PositionManager.ts | 70 ++++++ .../RewardLocker/read/v4PositionManager.ts | 70 ++++++ .../RewardLocker/write/collectReward.ts | 164 ++++++++++++ .../RewardLocker/write/lockPosition.ts | 202 +++++++++++++++ .../Router/events/AdapterDisabled.ts | 24 ++ .../Router/events/AdapterEnabled.ts | 24 ++ .../Router/events/Initialized.ts | 24 ++ .../events/OwnershipHandoverCanceled.ts | 42 ++++ .../events/OwnershipHandoverRequested.ts | 42 ++++ .../Router/events/OwnershipTransferred.ts | 49 ++++ .../Router/events/SwapExecuted.ts | 53 ++++ .../__generated__/Router/events/Upgraded.ts | 40 +++ .../__generated__/Router/read/NATIVE_TOKEN.ts | 70 ++++++ .../tokens/__generated__/Router/read/owner.ts | 71 ++++++ .../Router/read/ownershipHandoverExpiresAt.ts | 135 ++++++++++ .../Router/read/proxiableUUID.ts | 70 ++++++ .../Router/write/cancelOwnershipHandover.ts | 52 ++++ .../Router/write/completeOwnershipHandover.ts | 148 +++++++++++ .../__generated__/Router/write/createPool.ts | 202 +++++++++++++++ .../Router/write/disableAdapter.ts | 142 +++++++++++ .../Router/write/enableAdapter.ts | 150 +++++++++++ .../__generated__/Router/write/initialize.ts | 139 +++++++++++ .../Router/write/renounceOwnership.ts | 50 ++++ .../Router/write/requestOwnershipHandover.ts | 52 ++++ .../__generated__/Router/write/swap.ts} | 151 ++++++------ .../Router/write/transferOwnership.ts | 141 +++++++++++ .../Router/write/upgradeToAndCall.ts | 153 ++++++++++++ .../IQuoter/write/quoteExactInput.ts | 4 +- .../IQuoter/write/quoteExactInputSingle.ts | 4 +- .../IQuoter/write/quoteExactOutput.ts | 4 +- .../IQuoter/write/quoteExactOutputSingle.ts | 4 +- .../ISwapRouter/write/exactInput.ts | 4 +- .../ISwapRouter/write/exactInputSingle.ts | 4 +- .../ISwapRouter/write/exactOutput.ts | 4 +- .../ISwapRouter/write/exactOutputSingle.ts | 4 +- .../IUniswapV3Factory/events/OwnerChanged.ts | 2 +- .../IUniswapV3Factory/events/PoolCreated.ts | 2 +- .../read/feeAmountTickSpacing.ts | 4 +- .../IUniswapV3Factory/read/getPool.ts | 4 +- .../IUniswapV3Factory/read/owner.ts | 5 +- .../IUniswapV3Factory/write/createPool.ts | 4 +- .../write/enableFeeAmount.ts | 4 +- .../IUniswapV3Factory/write/setOwner.ts | 4 +- .../UnstoppableDomains/read/exists.ts | 4 +- .../UnstoppableDomains/read/getMany.ts | 4 +- .../UnstoppableDomains/read/namehash.ts | 4 +- .../UnstoppableDomains/read/reverseNameOf.ts | 4 +- .../Vote/read/BALLOT_TYPEHASH.ts | 5 +- .../__generated__/Vote/read/COUNTING_MODE.ts | 5 +- .../Vote/read/getAllProposals.ts | 5 +- .../vote/__generated__/Vote/read/getVotes.ts | 4 +- .../Vote/read/getVotesWithParams.ts | 4 +- .../vote/__generated__/Vote/read/hasVoted.ts | 4 +- .../__generated__/Vote/read/hashProposal.ts | 4 +- .../Vote/read/proposalDeadline.ts | 4 +- .../__generated__/Vote/read/proposalIndex.ts | 5 +- .../Vote/read/proposalSnapshot.ts | 4 +- .../Vote/read/proposalThreshold.ts | 5 +- .../__generated__/Vote/read/proposalVotes.ts | 4 +- .../vote/__generated__/Vote/read/proposals.ts | 4 +- .../vote/__generated__/Vote/read/quorum.ts | 4 +- .../Vote/read/quorumDenominator.ts | 5 +- .../vote/__generated__/Vote/read/state.ts | 4 +- .../vote/__generated__/Vote/read/token.ts | 5 +- .../__generated__/Vote/read/votingDelay.ts | 5 +- .../__generated__/Vote/read/votingPeriod.ts | 5 +- .../vote/__generated__/Vote/write/castVote.ts | 4 +- .../__generated__/Vote/write/castVoteBySig.ts | 4 +- .../Vote/write/castVoteWithReason.ts | 4 +- .../Vote/write/castVoteWithReasonAndParams.ts | 4 +- .../write/castVoteWithReasonAndParamsBySig.ts | 4 +- .../vote/__generated__/Vote/write/execute.ts | 4 +- .../vote/__generated__/Vote/write/propose.ts | 4 +- .../vote/__generated__/Vote/write/relay.ts | 4 +- .../Vote/write/setProposalThreshold.ts | 4 +- .../Vote/write/setVotingDelay.ts | 4 +- .../Vote/write/setVotingPeriod.ts | 4 +- .../Vote/write/updateQuorumNumerator.ts | 4 +- .../events/ContractDeployed.ts | 2 +- .../src/{assets => tokens}/constants.ts | 16 +- packages/thirdweb/src/tokens/create-token.ts | 71 ++++++ .../{assets => tokens}/distribute-token.ts | 4 +- .../get-entrypoint-erc20.ts | 0 .../{assets => tokens}/is-router-enabled.ts | 2 +- .../src/{assets => tokens}/token-utils.ts | 56 +---- .../thirdweb/src/{assets => tokens}/types.ts | 11 - 1132 files changed, 15823 insertions(+), 3123 deletions(-) delete mode 100644 packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json rename packages/thirdweb/scripts/generate/abis/{assets => tokens}/ERC20Asset.json (100%) rename packages/thirdweb/scripts/generate/abis/{assets/ERC20AssetEntrypoint.json => tokens/ERC20Entrypoint.json} (54%) rename packages/thirdweb/scripts/generate/abis/{assets => tokens}/FeeManager.json (100%) rename packages/thirdweb/scripts/generate/abis/{assets => tokens}/RewardLocker.json (100%) rename packages/thirdweb/scripts/generate/abis/{assets => tokens}/Router.json (86%) delete mode 100644 packages/thirdweb/src/assets/create-token-by-impl-config.ts delete mode 100644 packages/thirdweb/src/assets/create-token.test.ts delete mode 100644 packages/thirdweb/src/assets/create-token.ts delete mode 100644 packages/thirdweb/src/assets/deploy-infra-proxy.ts delete mode 100644 packages/thirdweb/src/assets/distribute-token.test.ts delete mode 100644 packages/thirdweb/src/assets/get-erc20-asset-impl.ts delete mode 100644 packages/thirdweb/src/assets/get-initcode-hash-1967.ts delete mode 100644 packages/thirdweb/src/exports/assets.ts create mode 100644 packages/thirdweb/src/exports/tokens.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/events/AirdropUpdated.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/events/AssetCreated.ts => ERC20Entrypoint/events/Created.ts} (62%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/events/AssetDistributed.ts => ERC20Entrypoint/events/Distributed.ts} (54%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/events/ImplementationAdded.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/events/Initialized.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/events/OwnershipHandoverCanceled.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/events/OwnershipHandoverRequested.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/events/OwnershipTransferred.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/events/AssetRewardClaimed.ts => ERC20Entrypoint/events/RewardClaimed.ts} (54%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/events/RewardLockerUpdated.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/events/RouterUpdated.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/events/Upgraded.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/read/getAirdrop.ts (99%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/read/getImplementation.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/read/getReward.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/read/getRewardLocker.ts (99%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/read/getRouter.ts (99%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/read/guardSalt.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/read/owner.ts (99%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/read/ownershipHandoverExpiresAt.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/read/predictAssetAddress.ts => ERC20Entrypoint/read/predictAddress.ts} (61%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts => ERC20Entrypoint/read/predictAddressByConfig.ts} (63%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/read/proxiableUUID.ts (99%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/addImplementation.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/write/buyAsset.ts => ERC20Entrypoint/write/buy.ts} (74%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/cancelOwnershipHandover.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/claimReward.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/completeOwnershipHandover.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/write/createAsset.ts => ERC20Entrypoint/write/create.ts} (70%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/write/createAssetById.ts => ERC20Entrypoint/write/createById.ts} (70%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts => ERC20Entrypoint/write/createByImplementationConfig.ts} (69%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/write/distributeAsset.ts => ERC20Entrypoint/write/distribute.ts} (69%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/initialize.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/renounceOwnership.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/requestOwnershipHandover.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint/write/sellAsset.ts => ERC20Entrypoint/write/sell.ts} (73%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/setAirdrop.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/setRewardLocker.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/setRouter.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/transferOwnership.ts (100%) rename packages/thirdweb/src/extensions/assets/__generated__/{ERC20AssetEntrypoint => ERC20Entrypoint}/write/upgradeToAndCall.ts (100%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/ContractURIUpdated.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Initialized.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/AirdropUpdated.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Distributed.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Initialized.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RewardClaimed.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RewardLockerUpdated.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RouterUpdated.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts rename packages/thirdweb/src/extensions/{assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts => tokens/__generated__/ERC20Entrypoint/write/sell.ts} (60%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeRecipientUpdated.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterDisabled.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterEnabled.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Initialized.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts rename packages/thirdweb/src/extensions/{assets/__generated__/Router/write/createMarket.ts => tokens/__generated__/Router/write/swap.ts} (53%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts rename packages/thirdweb/src/{assets => tokens}/constants.ts (52%) create mode 100644 packages/thirdweb/src/tokens/create-token.ts rename packages/thirdweb/src/{assets => tokens}/distribute-token.ts (84%) rename packages/thirdweb/src/{assets => tokens}/get-entrypoint-erc20.ts (100%) rename packages/thirdweb/src/{assets => tokens}/is-router-enabled.ts (82%) rename packages/thirdweb/src/{assets => tokens}/token-utils.ts (63%) rename packages/thirdweb/src/{assets => tokens}/types.ts (82%) diff --git a/packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json b/packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json deleted file mode 100644 index 61dfe2aaaf5..00000000000 --- a/packages/thirdweb/scripts/generate/abis/assets/AssetInfraDeployer.json +++ /dev/null @@ -1,5 +0,0 @@ -[ - "function deployInfraProxyDeterministic(address implementation, bytes data, bytes32 salt, bytes extraData) returns (address deployedProxy)", - "event AssetInfraDeployed(address indexed implementation, address indexed proxy, bytes32 inputSalt, bytes data, bytes extraData)", - "error ProxyDeploymentFailed()" -] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/assets/ERC20Asset.json b/packages/thirdweb/scripts/generate/abis/tokens/ERC20Asset.json similarity index 100% rename from packages/thirdweb/scripts/generate/abis/assets/ERC20Asset.json rename to packages/thirdweb/scripts/generate/abis/tokens/ERC20Asset.json diff --git a/packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json b/packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json similarity index 54% rename from packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json rename to packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json index b38edcbff47..34c21a775a7 100644 --- a/packages/thirdweb/scripts/generate/abis/assets/ERC20AssetEntrypoint.json +++ b/packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json @@ -1,15 +1,14 @@ [ "constructor()", "function addImplementation((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, bool isDefault)", - "function buyAsset(address asset, (address recipient, address referrer, address tokenIn, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes hookData) params) payable returns (uint256 amountIn, uint256 amountOut)", + "function buy(address asset, (address recipient, address referrer, address tokenIn, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes hookData) params) payable returns (uint256 amountIn, uint256 amountOut)", "function cancelOwnershipHandover() payable", "function claimReward(address asset)", "function completeOwnershipHandover(address pendingOwner) payable", - "function createAsset(address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) createParams) returns (address asset)", - "function createAssetById(bytes32 contractId, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) returns (address asset)", - "function createAssetByImplementationConfig((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) returns (address asset)", - "function decodeOwnerFromInitData(bytes data) pure returns (address owner)", - "function distributeAsset(address asset, (uint256 amount, address recipient)[] contents) payable", + "function create(address creator, (address referrer, bytes32 salt, bytes data, bytes hookData) createParams) payable returns (address asset)", + "function createById(bytes32 contractId, address creator, (address referrer, bytes32 salt, bytes data, bytes hookData) params) payable returns (address asset)", + "function createByImplementationConfig((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, address creator, (address referrer, bytes32 salt, bytes data, bytes hookData) params) payable returns (address asset)", + "function distribute(address asset, (uint256 amount, address recipient)[] contents) payable", "function getAirdrop() view returns (address airdrop)", "function getImplementation(bytes32 contractId) view returns ((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config)", "function getReward(address asset) view returns ((address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps))", @@ -17,50 +16,48 @@ "function getRouter() view returns (address router)", "function guardSalt(bytes32 salt, address creator, bytes contractInitData, bytes hookInitData) view returns (bytes32)", "function initialize(address owner, address router, address rewardLocker, address airdrop)", - "function listAsset(address asset, (address tokenOut, uint256 pricePerUnit, uint8 priceDenominator, uint256 totalSupply, uint48 startTime, uint48 endTime, address hook, bytes createHookData) params) returns (address sale, address position, uint256 positionId)", "function owner() view returns (address result)", "function ownershipHandoverExpiresAt(address pendingOwner) view returns (uint256 result)", - "function predictAssetAddress(bytes32 contractId, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) view returns (address predicted)", - "function predictAssetAddressByConfig((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, address creator, (uint256 amount, address referrer, bytes32 salt, bytes data, bytes hookData) params) view returns (address predicted)", + "function predictAddress(bytes32 contractId, address creator, (address referrer, bytes32 salt, bytes data, bytes hookData) params) view returns (address predicted)", + "function predictAddressByConfig((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, address creator, (address referrer, bytes32 salt, bytes data, bytes hookData) params) view returns (address predicted)", "function proxiableUUID() view returns (bytes32)", "function renounceOwnership() payable", "function requestOwnershipHandover() payable", - "function sellAsset(address asset, (address recipient, address tokenOut, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes hookData) params) returns (uint256 amountIn, uint256 amountOut)", + "function sell(address asset, (address recipient, address tokenOut, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes hookData) params) returns (uint256 amountIn, uint256 amountOut)", "function setAirdrop(address airdrop)", "function setRewardLocker(address rewardLocker)", "function setRouter(address router)", "function transferOwnership(address newOwner) payable", "function upgradeToAndCall(address newImplementation, bytes data) payable", "event AirdropUpdated(address airdrop)", - "event AssetCreated(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", - "event AssetDistributed(address asset, uint256 recipientCount, uint256 totalAmount)", - "event AssetRewardClaimed(address asset, address claimer)", + "event Created(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", + "event Distributed(address asset, uint256 recipientCount, uint256 totalAmount)", "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes createHookData)", "event Initialized(uint64 version)", "event OwnershipHandoverCanceled(address indexed pendingOwner)", "event OwnershipHandoverRequested(address indexed pendingOwner)", "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + "event RewardClaimed(address asset, address claimer)", "event RewardLockerUpdated(address locker)", "event RouterUpdated(address router)", "event Upgraded(address indexed implementation)", "error AlreadyInitialized()", "error ArrayLengthMismatch()", - "error AssetNotRegistered()", - "error CreateHookFailed()", - "error CreateHookReverted(string reason)", "error ImplementationAlreadyExists()", + "error InvalidAmount()", "error InvalidContractId()", "error InvalidCreateHook()", "error InvalidCreator()", - "error InvalidDeploymentArgs()", + "error InvalidDeploymentCall()", "error InvalidImplementation()", "error InvalidInitialization()", - "error InvalidInitializer()", + "error InvalidPoolAmount()", "error InvalidSaltFlags()", "error InvalidValue()", "error NewOwnerIsZeroAddress()", "error NoHandoverRequest()", "error NotInitializing()", + "error NotRegistered()", "error Unauthorized()", "error UnauthorizedCallContext()", "error UpgradeFailed()", diff --git a/packages/thirdweb/scripts/generate/abis/assets/FeeManager.json b/packages/thirdweb/scripts/generate/abis/tokens/FeeManager.json similarity index 100% rename from packages/thirdweb/scripts/generate/abis/assets/FeeManager.json rename to packages/thirdweb/scripts/generate/abis/tokens/FeeManager.json diff --git a/packages/thirdweb/scripts/generate/abis/assets/RewardLocker.json b/packages/thirdweb/scripts/generate/abis/tokens/RewardLocker.json similarity index 100% rename from packages/thirdweb/scripts/generate/abis/assets/RewardLocker.json rename to packages/thirdweb/scripts/generate/abis/tokens/RewardLocker.json diff --git a/packages/thirdweb/scripts/generate/abis/assets/Router.json b/packages/thirdweb/scripts/generate/abis/tokens/Router.json similarity index 86% rename from packages/thirdweb/scripts/generate/abis/assets/Router.json rename to packages/thirdweb/scripts/generate/abis/tokens/Router.json index 28c9887edb1..f31ba9e4fa8 100644 --- a/packages/thirdweb/scripts/generate/abis/assets/Router.json +++ b/packages/thirdweb/scripts/generate/abis/tokens/Router.json @@ -3,7 +3,6 @@ "function NATIVE_TOKEN() view returns (address)", "function cancelOwnershipHandover() payable", "function completeOwnershipHandover(address pendingOwner) payable", - "function createMarket((address creator, address tokenIn, address tokenOut, uint256 pricePerUnit, uint8 priceDenominator, uint256 totalSupply, uint48 startTime, uint48 endTime, uint256 tokenId, address hook, bytes createHookData) createMarketConfig) payable returns (address sale, address position, uint256 positionId)", "function createPool((address recipient, address referrer, address tokenA, address tokenB, uint256 amountA, uint256 amountB, bytes data) createPoolConfig) payable returns (address pool, address position, uint256 positionId, uint256 refundAmount0, uint256 refundAmount1)", "function disableAdapter(uint8 adapterType)", "function enableAdapter(uint8 adapterType, bytes config)", @@ -27,10 +26,10 @@ "error AdapterNotFound()", "error AlreadyInitialized()", "error DeadlineExceeded()", - "error ExcessiveInput()", - "error InsufficientOutput()", + "error InvalidAdapterType()", "error InvalidAmount()", "error InvalidConfiguration()", + "error InvalidETHAmount()", "error InvalidFee()", "error InvalidFee()", "error InvalidInitialization()", @@ -38,7 +37,6 @@ "error InvalidTick()", "error InvalidTick()", "error NewOwnerIsZeroAddress()", - "error NoAvailableRoute()", "error NoHandoverRequest()", "error NotInitializing()", "error PoolAlreadyExists()", diff --git a/packages/thirdweb/src/assets/create-token-by-impl-config.ts b/packages/thirdweb/src/assets/create-token-by-impl-config.ts deleted file mode 100644 index 7c6ecf62239..00000000000 --- a/packages/thirdweb/src/assets/create-token-by-impl-config.ts +++ /dev/null @@ -1,137 +0,0 @@ -import type { Hex } from "viem"; -import { NATIVE_TOKEN_ADDRESS, ZERO_ADDRESS } from "../constants/addresses.js"; -import { getContract } from "../contract/contract.js"; -import { parseEventLogs } from "../event/actions/parse-logs.js"; -import { assetCreatedEvent } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.js"; -import { createAssetByImplementationConfig } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.js"; -import { decimals } from "../extensions/erc20/read/decimals.js"; -import { eth_blockNumber } from "../rpc/actions/eth_blockNumber.js"; -import { getRpcClient } from "../rpc/rpc.js"; -import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; -import { keccakId } from "../utils/any-evm/keccak-id.js"; -import { toHex } from "../utils/encoding/hex.js"; -import { toUnits } from "../utils/units.js"; -import { - CreateHook, - DEFAULT_MAX_SUPPLY_ERC20, - ImplementationType, -} from "./constants.js"; -import { getOrDeployEntrypointERC20 } from "./get-entrypoint-erc20.js"; -import { - encodeInitParams, - encodeMarketConfig, - encodePoolConfig, -} from "./token-utils.js"; -import type { CreateTokenByImplementationConfigOptions } from "./types.js"; - -export async function createTokenByImplementationConfig( - options: CreateTokenByImplementationConfigOptions, -) { - const { - client, - chain, - account, - params, - implementationAddress, - launchConfig, - } = options; - - const creator = params.owner || account.address; - - const encodedInitData = await encodeInitParams({ - client, - creator, - params, - }); - - const rpcRequest = getRpcClient({ - ...options, - }); - const blockNumber = await eth_blockNumber(rpcRequest); - const salt = options.salt - ? options.salt.startsWith("0x") && options.salt.length === 66 - ? (options.salt as `0x${string}`) - : keccakId(options.salt) - : toHex(blockNumber, { - size: 32, - }); - - const entrypoint = await getOrDeployEntrypointERC20(options); - - let hookData: Hex = "0x"; - let amount = toUnits( - params.maxSupply.toString() || DEFAULT_MAX_SUPPLY_ERC20.toString(), - 18, - ); - if (launchConfig?.kind === "pool") { - hookData = encodePoolConfig(launchConfig.config); - amount = toUnits( - launchConfig.config.amount.toString() || - DEFAULT_MAX_SUPPLY_ERC20.toString(), - 18, - ); - } else if (launchConfig?.kind === "market") { - const currencyContract = - launchConfig.config.tokenOut && - launchConfig.config.tokenOut !== NATIVE_TOKEN_ADDRESS - ? getContract({ - address: launchConfig.config.tokenOut, - chain, - client, - }) - : null; - const currencyDecimals = launchConfig.config.priceDenominator - ? launchConfig.config.priceDenominator - : currencyContract - ? await decimals({ - contract: currencyContract, - }) - : 18; - - hookData = encodeMarketConfig({ - ...launchConfig.config, - decimals: currencyDecimals, - }); - } - - const transaction = createAssetByImplementationConfig({ - config: { - contractId: keccakId("ERC20Asset"), - createHook: - launchConfig?.kind === "pool" - ? CreateHook.CREATE_POOL - : launchConfig?.kind === "market" - ? CreateHook.CREATE_MARKET - : launchConfig?.kind === "distribute" - ? CreateHook.DISTRIBUTE - : CreateHook.NONE, - createHookData: hookData, - implementation: implementationAddress, - implementationType: ImplementationType.ERC1967, - }, - contract: entrypoint, - creator, - params: { - amount, - data: encodedInitData, - hookData, - referrer: ZERO_ADDRESS, - salt, - }, - }); - - const receipt = await sendAndConfirmTransaction({ account, transaction }); - const assetEvent = assetCreatedEvent(); - const decodedEvent = parseEventLogs({ - events: [assetEvent], - logs: receipt.logs, - }); - - if (decodedEvent.length === 0 || !decodedEvent[0]) { - throw new Error( - `No AssetCreated event found in transaction: ${receipt.transactionHash}`, - ); - } - - return decodedEvent[0]?.args.asset; -} diff --git a/packages/thirdweb/src/assets/create-token.test.ts b/packages/thirdweb/src/assets/create-token.test.ts deleted file mode 100644 index 9a48d990052..00000000000 --- a/packages/thirdweb/src/assets/create-token.test.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { describe, expect, it } from "vitest"; -import { ANVIL_CHAIN } from "../../test/src/chains.js"; -import { TEST_CLIENT } from "../../test/src/test-clients.js"; -import { TEST_ACCOUNT_A } from "../../test/src/test-wallets.js"; -import { getContract } from "../contract/contract.js"; -import { name } from "../extensions/common/read/name.js"; -// import { totalSupply } from "../extensions/erc20/__generated__/IERC20/read/totalSupply.js"; -import { createTokenByImplementationConfig } from "./create-token-by-impl-config.js"; - -describe.runIf(process.env.TW_SECRET_KEY)("create token by impl config", () => { - it("should create token without pool", async () => { - const token = await createTokenByImplementationConfig({ - account: TEST_ACCOUNT_A, - chain: ANVIL_CHAIN, - client: TEST_CLIENT, - params: { - maxSupply: 10_00n, - name: "Test", - }, - salt: "salt123", - implementationAddress: "", - }); - - expect(token).toBeDefined(); - - const tokenName = await name({ - contract: getContract({ - address: token, - chain: ANVIL_CHAIN, - client: TEST_CLIENT, - }), - }); - expect(tokenName).to.eq("Test"); - - // const supply = await totalSupply({ - // contract: getContract({ - // client: TEST_CLIENT, - // chain: ANVIL_CHAIN, - // address: token, - // }), - // }); - - // console.log("supply: ", supply); - }); -}); diff --git a/packages/thirdweb/src/assets/create-token.ts b/packages/thirdweb/src/assets/create-token.ts deleted file mode 100644 index 7c69fb31c45..00000000000 --- a/packages/thirdweb/src/assets/create-token.ts +++ /dev/null @@ -1,116 +0,0 @@ -import type { Hex } from "viem"; -import { NATIVE_TOKEN_ADDRESS, ZERO_ADDRESS } from "../constants/addresses.js"; -import { getContract } from "../contract/contract.js"; -import { parseEventLogs } from "../event/actions/parse-logs.js"; -import { assetCreatedEvent } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.js"; -import { createAsset } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.js"; -import { decimals } from "../extensions/erc20/read/decimals.js"; -import { eth_blockNumber } from "../rpc/actions/eth_blockNumber.js"; -import { getRpcClient } from "../rpc/rpc.js"; -import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; -import { keccakId } from "../utils/any-evm/keccak-id.js"; -import { toHex } from "../utils/encoding/hex.js"; -import { toUnits } from "../utils/units.js"; -import { DEFAULT_MAX_SUPPLY_ERC20 } from "./constants.js"; -import { getOrDeployEntrypointERC20 } from "./get-entrypoint-erc20.js"; -import { - encodeInitParams, - encodeMarketConfig, - encodePoolConfig, -} from "./token-utils.js"; -import type { CreateTokenOptions } from "./types.js"; - -export async function createToken(options: CreateTokenOptions) { - const { client, chain, account, params, launchConfig } = options; - - const creator = params.owner || account.address; - - const encodedInitData = await encodeInitParams({ - client, - creator, - params, - }); - - const rpcRequest = getRpcClient({ - ...options, - }); - const blockNumber = await eth_blockNumber(rpcRequest); - - let salt: Hex = "0x"; - if (!options.salt) { - salt = `0x1f${toHex(blockNumber, { - size: 32, - }).substring(4)}`; - } else { - if (options.salt.startsWith("0x") && options.salt.length === 66) { - salt = options.salt; - } else { - salt = `0x1f${keccakId(options.salt).substring(4)}`; - } - } - - const entrypoint = await getOrDeployEntrypointERC20(options); - - let hookData: Hex = "0x"; - let amount = toUnits( - params.maxSupply.toString() || DEFAULT_MAX_SUPPLY_ERC20.toString(), - 18, - ); - if (launchConfig?.kind === "pool") { - hookData = encodePoolConfig(launchConfig.config); - amount = toUnits( - launchConfig.config.amount.toString() || - DEFAULT_MAX_SUPPLY_ERC20.toString(), - 18, - ); - } else if (launchConfig?.kind === "market") { - const currencyContract = - launchConfig.config.tokenOut && - launchConfig.config.tokenOut !== NATIVE_TOKEN_ADDRESS - ? getContract({ - address: launchConfig.config.tokenOut, - chain, - client, - }) - : null; - const currencyDecimals = launchConfig.config.priceDenominator - ? launchConfig.config.priceDenominator - : currencyContract - ? await decimals({ - contract: currencyContract, - }) - : 18; - - hookData = encodeMarketConfig({ - ...launchConfig.config, - decimals: currencyDecimals, - }); - } - - const transaction = createAsset({ - contract: entrypoint, - createParams: { - amount, - data: encodedInitData, - hookData, - referrer: options.referrerAddress || ZERO_ADDRESS, - salt, - }, - creator, - }); - - const receipt = await sendAndConfirmTransaction({ account, transaction }); - const assetEvent = assetCreatedEvent(); - const decodedEvent = parseEventLogs({ - events: [assetEvent], - logs: receipt.logs, - }); - - if (decodedEvent.length === 0 || !decodedEvent[0]) { - throw new Error( - `No AssetCreated event found in transaction: ${receipt.transactionHash}`, - ); - } - - return decodedEvent[0]?.args.asset; -} diff --git a/packages/thirdweb/src/assets/deploy-infra-proxy.ts b/packages/thirdweb/src/assets/deploy-infra-proxy.ts deleted file mode 100644 index cc18a36ac3d..00000000000 --- a/packages/thirdweb/src/assets/deploy-infra-proxy.ts +++ /dev/null @@ -1,44 +0,0 @@ -import type { Hex } from "viem"; -import type { ThirdwebContract } from "../contract/contract.js"; -import { parseEventLogs } from "../event/actions/parse-logs.js"; -import { assetInfraDeployedEvent } from "../extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.js"; -import { deployInfraProxyDeterministic } from "../extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.js"; -import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; -import { keccakId } from "../utils/any-evm/keccak-id.js"; -import type { ClientAndChainAndAccount } from "../utils/types.js"; -import { DEFAULT_SALT } from "./constants.js"; - -export async function deployInfraProxy( - options: ClientAndChainAndAccount & { - assetFactory: ThirdwebContract; - implementationAddress: string; - initData: Hex; - extraData: Hex; - }, -) { - const transaction = deployInfraProxyDeterministic({ - contract: options.assetFactory, - data: options.initData, - extraData: options.extraData, - implementation: options.implementationAddress, - salt: keccakId(DEFAULT_SALT), - }); - - const receipt = await sendAndConfirmTransaction({ - account: options.account, - transaction, - }); - const proxyEvent = assetInfraDeployedEvent(); - const decodedEvent = parseEventLogs({ - events: [proxyEvent], - logs: receipt.logs, - }); - - if (decodedEvent.length === 0 || !decodedEvent[0]) { - throw new Error( - `No AssetInfraDeployed event found in transaction: ${receipt.transactionHash}`, - ); - } - - return decodedEvent[0]?.args.proxy; -} diff --git a/packages/thirdweb/src/assets/distribute-token.test.ts b/packages/thirdweb/src/assets/distribute-token.test.ts deleted file mode 100644 index c399b36d780..00000000000 --- a/packages/thirdweb/src/assets/distribute-token.test.ts +++ /dev/null @@ -1,117 +0,0 @@ -import { getContract, type ThirdwebContract } from "src/contract/contract.js"; -import { getBalance } from "src/extensions/erc20/read/getBalance.js"; -import { approve } from "src/extensions/erc20/write/approve.js"; -import { sendAndConfirmTransaction } from "src/transaction/actions/send-and-confirm-transaction.js"; -import { toUnits } from "src/utils/units.js"; -import { beforeAll, describe, expect, it } from "vitest"; -import { ANVIL_CHAIN } from "../../test/src/chains.js"; -import { TEST_CLIENT } from "../../test/src/test-clients.js"; -import { - TEST_ACCOUNT_A, - TEST_ACCOUNT_B, - TEST_ACCOUNT_C, - TEST_ACCOUNT_D, -} from "../../test/src/test-wallets.js"; -import { createTokenByImplementationConfig } from "./create-token-by-impl-config.js"; -import { distributeToken } from "./distribute-token.js"; -import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; - -describe.runIf(process.env.TW_SECRET_KEY)( - "create token by impl config", - { - timeout: 20000, - }, - () => { - let token: ThirdwebContract; - beforeAll(async () => { - // create token - const tokenAddress = await createTokenByImplementationConfig({ - account: TEST_ACCOUNT_A, - chain: ANVIL_CHAIN, - client: TEST_CLIENT, - params: { - maxSupply: 10_000_000_000n, - name: "Test", - }, - salt: "salt123", - implementationAddress: "0x", - }); - - token = getContract({ - address: tokenAddress, - chain: ANVIL_CHAIN, - client: TEST_CLIENT, - }); - - // approve tokens to entrypoint for distribution - const entrypoint = await getDeployedEntrypointERC20({ - chain: ANVIL_CHAIN, - client: TEST_CLIENT, - }); - - const approvalTx = approve({ - amountWei: toUnits("1000", 18), - contract: token, - spender: entrypoint?.address as string, - }); - await sendAndConfirmTransaction({ - account: TEST_ACCOUNT_A, - transaction: approvalTx, - }); - }, 20000); - - it("should distrbute tokens to specified recipients", async () => { - const contents = [ - { amount: 10n, recipient: TEST_ACCOUNT_B.address }, - { amount: 15n, recipient: TEST_ACCOUNT_C.address }, - { amount: 20n, recipient: TEST_ACCOUNT_D.address }, - ]; - - const transaction = await distributeToken({ - chain: ANVIL_CHAIN, - client: TEST_CLIENT, - contents, - tokenAddress: token.address, - }); - - await sendAndConfirmTransaction({ account: TEST_ACCOUNT_A, transaction }); - - const balanceB = ( - await getBalance({ - address: TEST_ACCOUNT_B.address, - contract: token, - }) - ).value; - - const balanceC = ( - await getBalance({ - address: TEST_ACCOUNT_C.address, - contract: token, - }) - ).value; - - const balanceD = ( - await getBalance({ - address: TEST_ACCOUNT_D.address, - contract: token, - }) - ).value; - - // admin balance - const balanceA = ( - await getBalance({ - address: TEST_ACCOUNT_A.address, - contract: token, - }) - ).value; - - expect(balanceB).to.equal(toUnits("10", 18)); - expect(balanceC).to.equal(toUnits("15", 18)); - expect(balanceD).to.equal(toUnits("20", 18)); - - expect(balanceA).to.equal( - toUnits("10000000000", 18) - balanceB - balanceC - balanceD, - ); - }); - }, -); diff --git a/packages/thirdweb/src/assets/get-erc20-asset-impl.ts b/packages/thirdweb/src/assets/get-erc20-asset-impl.ts deleted file mode 100644 index a01d410b08e..00000000000 --- a/packages/thirdweb/src/assets/get-erc20-asset-impl.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { getContract, type ThirdwebContract } from "../contract/contract.js"; -import { getOrDeployInfraContract } from "../contract/deployment/utils/bootstrap.js"; -import type { ClientAndChainAndAccount } from "../utils/types.js"; -import { IMPLEMENTATIONS } from "./constants.js"; - -export async function getOrDeployERC20AssetImpl( - options: ClientAndChainAndAccount, -): Promise { - const implementations = IMPLEMENTATIONS[options.chain.id]; - - if (implementations?.ERC20AssetImpl) { - return getContract({ - address: implementations.ERC20AssetImpl, - chain: options.chain, - client: options.client, - }); - } - - return await getOrDeployInfraContract({ - ...options, - contractId: "ERC20Asset", - publisher: "0x6453a486d52e0EB6E79Ec4491038E2522a926936", - }); -} diff --git a/packages/thirdweb/src/assets/get-initcode-hash-1967.ts b/packages/thirdweb/src/assets/get-initcode-hash-1967.ts deleted file mode 100644 index d1b3bd3e50a..00000000000 --- a/packages/thirdweb/src/assets/get-initcode-hash-1967.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { keccak256 } from "../utils/hashing/keccak256.js"; - -export function getInitCodeHashERC1967(implementation: string) { - // See `initCodeHashERC1967` - LibClone {https://github.com/vectorized/solady/blob/main/src/utils/LibClone.sol} - return keccak256( - `0x603d3d8160223d3973${implementation.toLowerCase().replace(/^0x/, "")}60095155f3363d3d373d3d363d7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc545af43d6000803e6038573d6000fd5b3d6000f3`, - ); -} diff --git a/packages/thirdweb/src/exports/assets.ts b/packages/thirdweb/src/exports/assets.ts deleted file mode 100644 index 93ed3352279..00000000000 --- a/packages/thirdweb/src/exports/assets.ts +++ /dev/null @@ -1,22 +0,0 @@ -export { - DEFAULT_FEE_RECIPIENT, - DEFAULT_INFRA_ADMIN, -} from "../assets/constants.js"; -export { createToken } from "../assets/create-token.js"; -export { createTokenByImplementationConfig } from "../assets/create-token-by-impl-config.js"; -export { deployInfraProxy } from "../assets/deploy-infra-proxy.js"; -export { distributeToken } from "../assets/distribute-token.js"; -export { getDeployedEntrypointERC20 } from "../assets/get-entrypoint-erc20.js"; -export { getOrDeployERC20AssetImpl } from "../assets/get-erc20-asset-impl.js"; -export { getInitCodeHashERC1967 } from "../assets/get-initcode-hash-1967.js"; -export { isRouterEnabled } from "../assets/is-router-enabled.js"; -export type { - CreateTokenByImplementationConfigOptions, - CreateTokenOptions, - DistributeContent, - MarketConfig, - PoolConfig, - TokenParams, -} from "../assets/types.js"; -export { getReward } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.js"; -export { getInitBytecodeWithSalt } from "../utils/any-evm/get-init-bytecode-with-salt.js"; diff --git a/packages/thirdweb/src/exports/tokens.ts b/packages/thirdweb/src/exports/tokens.ts new file mode 100644 index 00000000000..b79fd979b8f --- /dev/null +++ b/packages/thirdweb/src/exports/tokens.ts @@ -0,0 +1,18 @@ +export { + DEFAULT_REFERRER_ADDRESS, + DEFAULT_REFERRER_REWARD_BPS, + DEFAULT_INFRA_ADMIN, +} from "../tokens/constants.js"; +export { createToken } from "../tokens/create-token.js"; +export { distributeToken } from "../tokens/distribute-token.js"; +export { getDeployedEntrypointERC20 } from "../tokens/get-entrypoint-erc20.js"; +export { isRouterEnabled } from "../tokens/is-router-enabled.js"; +export type { + CreateTokenByImplementationConfigOptions, + CreateTokenOptions, + DistributeContent, + PoolConfig, + TokenParams, +} from "../tokens/types.js"; +export { getReward } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.js"; +export { getInitBytecodeWithSalt } from "../utils/any-evm/get-init-bytecode-with-salt.js"; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts index 15223a95af0..f256c499527 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnerUpdated" event. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts index 24655af712b..0f3e6933df7 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts index 46b4bcdfdd2..4ead09e35b3 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isClaimed" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts index eb5900f0f41..eee9df78552 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts index c2ce62b7098..fa0dfaf9998 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenConditionId" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts index 5d50983fac2..cf0f7ee9db1 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenMerkleRoot" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts index e05aab2b4a4..e7d492f3570 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC1155" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts index eae334d39f6..f3dfb2d6509 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC1155WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts index c3be854e05e..fa9bd57d7f7 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC20" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts index 072a582ec09..23bf45ea43f 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC20WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts index 18da4c5fe0d..0ee231575e2 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC721" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts index a2c687402e0..303a8d546b6 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC721WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts index 4d8b5529030..0f24fc95697 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropNativeToken" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts index 16dc6eba70d..80eb7e26bc7 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimERC1155" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts index 6b9a8eec9ba..ba5895a0c69 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimERC20" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts index acc2fcc4d1b..c14bfa26737 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimERC721" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts index e53174e9118..f835779317c 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts index c0c704d7b6d..a9efda55328 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setMerkleRoot" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts index ac3e96fb68e..b432dc441f4 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts deleted file mode 100644 index d4dbe662838..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/events/AssetInfraDeployed.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "AssetInfraDeployed" event. - */ -export type AssetInfraDeployedEventFilters = Partial<{ - implementation: AbiParameterToPrimitiveType<{ - type: "address"; - name: "implementation"; - indexed: true; - }>; - proxy: AbiParameterToPrimitiveType<{ - type: "address"; - name: "proxy"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the AssetInfraDeployed event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { assetInfraDeployedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * assetInfraDeployedEvent({ - * implementation: ..., - * proxy: ..., - * }) - * ], - * }); - * ``` - */ -export function assetInfraDeployedEvent( - filters: AssetInfraDeployedEventFilters = {}, -) { - return prepareEvent({ - signature: - "event AssetInfraDeployed(address indexed implementation, address indexed proxy, bytes32 inputSalt, bytes data, bytes extraData)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts b/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts deleted file mode 100644 index 2b4baa04753..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/AssetInfraDeployer/write/deployInfraProxyDeterministic.ts +++ /dev/null @@ -1,187 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "deployInfraProxyDeterministic" function. - */ -export type DeployInfraProxyDeterministicParams = WithOverrides<{ - implementation: AbiParameterToPrimitiveType<{ - type: "address"; - name: "implementation"; - }>; - data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; - salt: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "salt" }>; - extraData: AbiParameterToPrimitiveType<{ type: "bytes"; name: "extraData" }>; -}>; - -export const FN_SELECTOR = "0xb43c830c" as const; -const FN_INPUTS = [ - { - type: "address", - name: "implementation", - }, - { - type: "bytes", - name: "data", - }, - { - type: "bytes32", - name: "salt", - }, - { - type: "bytes", - name: "extraData", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "deployedProxy", - }, -] as const; - -/** - * Checks if the `deployInfraProxyDeterministic` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `deployInfraProxyDeterministic` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isDeployInfraProxyDeterministicSupported } from "thirdweb/extensions/assets"; - * - * const supported = isDeployInfraProxyDeterministicSupported(["0x..."]); - * ``` - */ -export function isDeployInfraProxyDeterministicSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "deployInfraProxyDeterministic" function. - * @param options - The options for the deployInfraProxyDeterministic function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeDeployInfraProxyDeterministicParams } from "thirdweb/extensions/assets"; - * const result = encodeDeployInfraProxyDeterministicParams({ - * implementation: ..., - * data: ..., - * salt: ..., - * extraData: ..., - * }); - * ``` - */ -export function encodeDeployInfraProxyDeterministicParams( - options: DeployInfraProxyDeterministicParams, -) { - return encodeAbiParameters(FN_INPUTS, [ - options.implementation, - options.data, - options.salt, - options.extraData, - ]); -} - -/** - * Encodes the "deployInfraProxyDeterministic" function into a Hex string with its parameters. - * @param options - The options for the deployInfraProxyDeterministic function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeDeployInfraProxyDeterministic } from "thirdweb/extensions/assets"; - * const result = encodeDeployInfraProxyDeterministic({ - * implementation: ..., - * data: ..., - * salt: ..., - * extraData: ..., - * }); - * ``` - */ -export function encodeDeployInfraProxyDeterministic( - options: DeployInfraProxyDeterministicParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeDeployInfraProxyDeterministicParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "deployInfraProxyDeterministic" function on the contract. - * @param options - The options for the "deployInfraProxyDeterministic" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { deployInfraProxyDeterministic } from "thirdweb/extensions/assets"; - * - * const transaction = deployInfraProxyDeterministic({ - * contract, - * implementation: ..., - * data: ..., - * salt: ..., - * extraData: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function deployInfraProxyDeterministic( - options: BaseTransactionOptions< - | DeployInfraProxyDeterministicParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.implementation, - resolvedOptions.data, - resolvedOptions.salt, - resolvedOptions.extraData, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts index 3d729a7e69a..c163264f500 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts index 326928983b5..2ab8996b8d3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts index b7e8608233d..a498506409a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts index b97cc481307..b1be6e750e1 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts index 2f6ca48ee78..966872e8e8e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts index 6b073808cd4..9d4decaf62a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts index 1c00e9783a2..8ce23927dd8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts index a790fc735fe..94ad6c49f8c 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts index cf11c8dc22b..b6823beee40 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts index cc115a55974..5df67764e49 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts index 42242a61796..6fd19af5893 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts index e72a50e7432..4594b063bd0 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts index 9a497818fa5..9903177bd12 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts index 48ca2e48867..5625095f262 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts index 5a0be932b41..0ae59f66e8f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts index 25119f40b19..717ca59cb9e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts index 17426e76558..1ae861539a0 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts index 5b5ece681a5..9795cbcb955 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts index 3ffb92d60dc..636d1cb5503 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts index 39fa7c6d344..fd9bdeb8ac7 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts index 89b15b8c239..a1e60004b43 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts index b4cdc7364a8..c4bf81966fe 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts index 7a44c4e8018..4787e7cf6f3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts index e619caed7a4..472b88b0954 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts index 6b9b9db57a4..7b8b575e3b4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts index 5826bb0ee25..e0744619fae 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts index b8ea8d16edd..432d7cc92dd 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts index 1da41ddcc7b..ec9cf538807 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts index 97d4537e18b..ae3ed16352b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts index 52e932c37eb..36f0df68e14 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts deleted file mode 100644 index 7e208cf9b3b..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/decodeOwnerFromInitData.ts +++ /dev/null @@ -1,132 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "decodeOwnerFromInitData" function. - */ -export type DecodeOwnerFromInitDataParams = { - data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; -}; - -export const FN_SELECTOR = "0xb4d9e9c2" as const; -const FN_INPUTS = [ - { - type: "bytes", - name: "data", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "owner", - }, -] as const; - -/** - * Checks if the `decodeOwnerFromInitData` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `decodeOwnerFromInitData` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isDecodeOwnerFromInitDataSupported } from "thirdweb/extensions/assets"; - * const supported = isDecodeOwnerFromInitDataSupported(["0x..."]); - * ``` - */ -export function isDecodeOwnerFromInitDataSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "decodeOwnerFromInitData" function. - * @param options - The options for the decodeOwnerFromInitData function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeDecodeOwnerFromInitDataParams } from "thirdweb/extensions/assets"; - * const result = encodeDecodeOwnerFromInitDataParams({ - * data: ..., - * }); - * ``` - */ -export function encodeDecodeOwnerFromInitDataParams( - options: DecodeOwnerFromInitDataParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.data]); -} - -/** - * Encodes the "decodeOwnerFromInitData" function into a Hex string with its parameters. - * @param options - The options for the decodeOwnerFromInitData function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeDecodeOwnerFromInitData } from "thirdweb/extensions/assets"; - * const result = encodeDecodeOwnerFromInitData({ - * data: ..., - * }); - * ``` - */ -export function encodeDecodeOwnerFromInitData( - options: DecodeOwnerFromInitDataParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeDecodeOwnerFromInitDataParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the decodeOwnerFromInitData function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeDecodeOwnerFromInitDataResult } from "thirdweb/extensions/assets"; - * const result = decodeDecodeOwnerFromInitDataResultResult("..."); - * ``` - */ -export function decodeDecodeOwnerFromInitDataResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "decodeOwnerFromInitData" function on the contract. - * @param options - The options for the decodeOwnerFromInitData function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { decodeOwnerFromInitData } from "thirdweb/extensions/assets"; - * - * const result = await decodeOwnerFromInitData({ - * contract, - * data: ..., - * }); - * - * ``` - */ -export async function decodeOwnerFromInitData( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.data], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AirdropUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/AirdropUpdated.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AirdropUpdated.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/AirdropUpdated.ts diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts similarity index 62% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts index ac7610bb3b8..e9470967c3c 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetCreated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts @@ -1,10 +1,10 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** - * Represents the filters for the "AssetCreated" event. + * Represents the filters for the "Created" event. */ -export type AssetCreatedEventFilters = Partial<{ +export type CreatedEventFilters = Partial<{ creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator"; @@ -18,19 +18,19 @@ export type AssetCreatedEventFilters = Partial<{ }>; /** - * Creates an event object for the AssetCreated event. + * Creates an event object for the Created event. * @param filters - Optional filters to apply to the event. * @returns The prepared event object. * @extension ASSETS * @example * ```ts * import { getContractEvents } from "thirdweb"; - * import { assetCreatedEvent } from "thirdweb/extensions/assets"; + * import { createdEvent } from "thirdweb/extensions/assets"; * * const events = await getContractEvents({ * contract, * events: [ - * assetCreatedEvent({ + * createdEvent({ * creator: ..., * asset: ..., * }) @@ -38,10 +38,10 @@ export type AssetCreatedEventFilters = Partial<{ * }); * ``` */ -export function assetCreatedEvent(filters: AssetCreatedEventFilters = {}) { +export function createdEvent(filters: CreatedEventFilters = {}) { return prepareEvent({ signature: - "event AssetCreated(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", + "event Created(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", filters, }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetDistributed.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Distributed.ts similarity index 54% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetDistributed.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Distributed.ts index 6367047c30b..293516b3b83 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetDistributed.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Distributed.ts @@ -1,25 +1,25 @@ import { prepareEvent } from "../../../../../event/prepare-event.js"; /** - * Creates an event object for the AssetDistributed event. + * Creates an event object for the Distributed event. * @returns The prepared event object. * @extension ASSETS * @example * ```ts * import { getContractEvents } from "thirdweb"; - * import { assetDistributedEvent } from "thirdweb/extensions/assets"; + * import { distributedEvent } from "thirdweb/extensions/assets"; * * const events = await getContractEvents({ * contract, * events: [ - * assetDistributedEvent() + * distributedEvent() * ], * }); * ``` */ -export function assetDistributedEvent() { +export function distributedEvent() { return prepareEvent({ signature: - "event AssetDistributed(address asset, uint256 recipientCount, uint256 totalAmount)", + "event Distributed(address asset, uint256 recipientCount, uint256 totalAmount)", }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/ImplementationAdded.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts index c399fba1348..ea39ab990d0 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/ImplementationAdded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ImplementationAdded" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Initialized.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Initialized.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Initialized.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Initialized.ts diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts index 326928983b5..2ab8996b8d3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts index b7e8608233d..a498506409a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts index b97cc481307..b1be6e750e1 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetRewardClaimed.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardClaimed.ts similarity index 54% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetRewardClaimed.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardClaimed.ts index 214656ea89d..b9b5c0439e5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/AssetRewardClaimed.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardClaimed.ts @@ -1,24 +1,24 @@ import { prepareEvent } from "../../../../../event/prepare-event.js"; /** - * Creates an event object for the AssetRewardClaimed event. + * Creates an event object for the RewardClaimed event. * @returns The prepared event object. * @extension ASSETS * @example * ```ts * import { getContractEvents } from "thirdweb"; - * import { assetRewardClaimedEvent } from "thirdweb/extensions/assets"; + * import { rewardClaimedEvent } from "thirdweb/extensions/assets"; * * const events = await getContractEvents({ * contract, * events: [ - * assetRewardClaimedEvent() + * rewardClaimedEvent() * ], * }); * ``` */ -export function assetRewardClaimedEvent() { +export function rewardClaimedEvent() { return prepareEvent({ - signature: "event AssetRewardClaimed(address asset, address claimer)", + signature: "event RewardClaimed(address asset, address claimer)", }); } diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RewardLockerUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardLockerUpdated.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RewardLockerUpdated.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardLockerUpdated.ts diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RouterUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RouterUpdated.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/RouterUpdated.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RouterUpdated.ts diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Upgraded.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Upgraded.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts index 0869e1f4557..5ab5634fb24 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts similarity index 99% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts index d69fe4f40ca..658c082cc3e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getAirdrop.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd25f82a0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getImplementation.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts index d052841976b..5e705cc3f3d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getImplementation.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getImplementation" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts index fa276412de3..608e593b41f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getReward.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getReward" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts similarity index 99% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardLocker.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts index 1a5d7085181..dbe2181ab56 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRewardLocker.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb0188df2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts similarity index 99% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts index 6599cf64ec8..f90e6da4cde 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb0f479a1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts index 4299c978eb8..3d9bda9fed2 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/guardSalt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "guardSalt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts similarity index 99% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts index 9a497818fa5..9903177bd12 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts index 48ca2e48867..5625095f262 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts similarity index 61% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts index 7549a513757..155c3db7d23 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddress.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts @@ -1,15 +1,15 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "predictAssetAddress" function. + * Represents the parameters for the "predictAddress" function. */ -export type PredictAssetAddressParams = { +export type PredictAddressParams = { contractId: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "contractId"; @@ -19,7 +19,6 @@ export type PredictAssetAddressParams = { type: "tuple"; name: "params"; components: [ - { type: "uint256"; name: "amount" }, { type: "address"; name: "referrer" }, { type: "bytes32"; name: "salt" }, { type: "bytes"; name: "data" }, @@ -28,7 +27,7 @@ export type PredictAssetAddressParams = { }>; }; -export const FN_SELECTOR = "0x8fc23f92" as const; +export const FN_SELECTOR = "0x6b6963c6" as const; const FN_INPUTS = [ { type: "bytes32", @@ -42,10 +41,6 @@ const FN_INPUTS = [ type: "tuple", name: "params", components: [ - { - type: "uint256", - name: "amount", - }, { type: "address", name: "referrer", @@ -73,17 +68,17 @@ const FN_OUTPUTS = [ ] as const; /** - * Checks if the `predictAssetAddress` method is supported by the given contract. + * Checks if the `predictAddress` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `predictAssetAddress` method is supported. + * @returns A boolean indicating if the `predictAddress` method is supported. * @extension ASSETS * @example * ```ts - * import { isPredictAssetAddressSupported } from "thirdweb/extensions/assets"; - * const supported = isPredictAssetAddressSupported(["0x..."]); + * import { isPredictAddressSupported } from "thirdweb/extensions/assets"; + * const supported = isPredictAddressSupported(["0x..."]); * ``` */ -export function isPredictAssetAddressSupported(availableSelectors: string[]) { +export function isPredictAddressSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -91,23 +86,21 @@ export function isPredictAssetAddressSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "predictAssetAddress" function. - * @param options - The options for the predictAssetAddress function. + * Encodes the parameters for the "predictAddress" function. + * @param options - The options for the predictAddress function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodePredictAssetAddressParams } from "thirdweb/extensions/assets"; - * const result = encodePredictAssetAddressParams({ + * import { encodePredictAddressParams } from "thirdweb/extensions/assets"; + * const result = encodePredictAddressParams({ * contractId: ..., * creator: ..., * params: ..., * }); * ``` */ -export function encodePredictAssetAddressParams( - options: PredictAssetAddressParams, -) { +export function encodePredictAddressParams(options: PredictAddressParams) { return encodeAbiParameters(FN_INPUTS, [ options.contractId, options.creator, @@ -116,54 +109,54 @@ export function encodePredictAssetAddressParams( } /** - * Encodes the "predictAssetAddress" function into a Hex string with its parameters. - * @param options - The options for the predictAssetAddress function. + * Encodes the "predictAddress" function into a Hex string with its parameters. + * @param options - The options for the predictAddress function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodePredictAssetAddress } from "thirdweb/extensions/assets"; - * const result = encodePredictAssetAddress({ + * import { encodePredictAddress } from "thirdweb/extensions/assets"; + * const result = encodePredictAddress({ * contractId: ..., * creator: ..., * params: ..., * }); * ``` */ -export function encodePredictAssetAddress(options: PredictAssetAddressParams) { +export function encodePredictAddress(options: PredictAddressParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodePredictAssetAddressParams(options).slice( + encodePredictAddressParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Decodes the result of the predictAssetAddress function call. + * Decodes the result of the predictAddress function call. * @param result - The hexadecimal result to decode. * @returns The decoded result as per the FN_OUTPUTS definition. * @extension ASSETS * @example * ```ts - * import { decodePredictAssetAddressResult } from "thirdweb/extensions/assets"; - * const result = decodePredictAssetAddressResultResult("..."); + * import { decodePredictAddressResult } from "thirdweb/extensions/assets"; + * const result = decodePredictAddressResultResult("..."); * ``` */ -export function decodePredictAssetAddressResult(result: Hex) { +export function decodePredictAddressResult(result: Hex) { return decodeAbiParameters(FN_OUTPUTS, result)[0]; } /** - * Calls the "predictAssetAddress" function on the contract. - * @param options - The options for the predictAssetAddress function. + * Calls the "predictAddress" function on the contract. + * @param options - The options for the predictAddress function. * @returns The parsed result of the function call. * @extension ASSETS * @example * ```ts - * import { predictAssetAddress } from "thirdweb/extensions/assets"; + * import { predictAddress } from "thirdweb/extensions/assets"; * - * const result = await predictAssetAddress({ + * const result = await predictAddress({ * contract, * contractId: ..., * creator: ..., @@ -172,8 +165,8 @@ export function decodePredictAssetAddressResult(result: Hex) { * * ``` */ -export async function predictAssetAddress( - options: BaseTransactionOptions, +export async function predictAddress( + options: BaseTransactionOptions, ) { return readContract({ contract: options.contract, diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts similarity index 63% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts index 2e8b5fa5534..8b0c32a5826 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/predictAssetAddressByConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts @@ -1,15 +1,15 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "predictAssetAddressByConfig" function. + * Represents the parameters for the "predictAddressByConfig" function. */ -export type PredictAssetAddressByConfigParams = { +export type PredictAddressByConfigParams = { config: AbiParameterToPrimitiveType<{ type: "tuple"; name: "config"; @@ -26,7 +26,6 @@ export type PredictAssetAddressByConfigParams = { type: "tuple"; name: "params"; components: [ - { type: "uint256"; name: "amount" }, { type: "address"; name: "referrer" }, { type: "bytes32"; name: "salt" }, { type: "bytes"; name: "data" }, @@ -35,7 +34,7 @@ export type PredictAssetAddressByConfigParams = { }>; }; -export const FN_SELECTOR = "0x3e49076d" as const; +export const FN_SELECTOR = "0xbccfb6ad" as const; const FN_INPUTS = [ { type: "tuple", @@ -71,10 +70,6 @@ const FN_INPUTS = [ type: "tuple", name: "params", components: [ - { - type: "uint256", - name: "amount", - }, { type: "address", name: "referrer", @@ -102,17 +97,17 @@ const FN_OUTPUTS = [ ] as const; /** - * Checks if the `predictAssetAddressByConfig` method is supported by the given contract. + * Checks if the `predictAddressByConfig` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `predictAssetAddressByConfig` method is supported. + * @returns A boolean indicating if the `predictAddressByConfig` method is supported. * @extension ASSETS * @example * ```ts - * import { isPredictAssetAddressByConfigSupported } from "thirdweb/extensions/assets"; - * const supported = isPredictAssetAddressByConfigSupported(["0x..."]); + * import { isPredictAddressByConfigSupported } from "thirdweb/extensions/assets"; + * const supported = isPredictAddressByConfigSupported(["0x..."]); * ``` */ -export function isPredictAssetAddressByConfigSupported( +export function isPredictAddressByConfigSupported( availableSelectors: string[], ) { return detectMethod({ @@ -122,22 +117,22 @@ export function isPredictAssetAddressByConfigSupported( } /** - * Encodes the parameters for the "predictAssetAddressByConfig" function. - * @param options - The options for the predictAssetAddressByConfig function. + * Encodes the parameters for the "predictAddressByConfig" function. + * @param options - The options for the predictAddressByConfig function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodePredictAssetAddressByConfigParams } from "thirdweb/extensions/assets"; - * const result = encodePredictAssetAddressByConfigParams({ + * import { encodePredictAddressByConfigParams } from "thirdweb/extensions/assets"; + * const result = encodePredictAddressByConfigParams({ * config: ..., * creator: ..., * params: ..., * }); * ``` */ -export function encodePredictAssetAddressByConfigParams( - options: PredictAssetAddressByConfigParams, +export function encodePredictAddressByConfigParams( + options: PredictAddressByConfigParams, ) { return encodeAbiParameters(FN_INPUTS, [ options.config, @@ -147,56 +142,56 @@ export function encodePredictAssetAddressByConfigParams( } /** - * Encodes the "predictAssetAddressByConfig" function into a Hex string with its parameters. - * @param options - The options for the predictAssetAddressByConfig function. + * Encodes the "predictAddressByConfig" function into a Hex string with its parameters. + * @param options - The options for the predictAddressByConfig function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodePredictAssetAddressByConfig } from "thirdweb/extensions/assets"; - * const result = encodePredictAssetAddressByConfig({ + * import { encodePredictAddressByConfig } from "thirdweb/extensions/assets"; + * const result = encodePredictAddressByConfig({ * config: ..., * creator: ..., * params: ..., * }); * ``` */ -export function encodePredictAssetAddressByConfig( - options: PredictAssetAddressByConfigParams, +export function encodePredictAddressByConfig( + options: PredictAddressByConfigParams, ) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodePredictAssetAddressByConfigParams(options).slice( + encodePredictAddressByConfigParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Decodes the result of the predictAssetAddressByConfig function call. + * Decodes the result of the predictAddressByConfig function call. * @param result - The hexadecimal result to decode. * @returns The decoded result as per the FN_OUTPUTS definition. * @extension ASSETS * @example * ```ts - * import { decodePredictAssetAddressByConfigResult } from "thirdweb/extensions/assets"; - * const result = decodePredictAssetAddressByConfigResultResult("..."); + * import { decodePredictAddressByConfigResult } from "thirdweb/extensions/assets"; + * const result = decodePredictAddressByConfigResultResult("..."); * ``` */ -export function decodePredictAssetAddressByConfigResult(result: Hex) { +export function decodePredictAddressByConfigResult(result: Hex) { return decodeAbiParameters(FN_OUTPUTS, result)[0]; } /** - * Calls the "predictAssetAddressByConfig" function on the contract. - * @param options - The options for the predictAssetAddressByConfig function. + * Calls the "predictAddressByConfig" function on the contract. + * @param options - The options for the predictAddressByConfig function. * @returns The parsed result of the function call. * @extension ASSETS * @example * ```ts - * import { predictAssetAddressByConfig } from "thirdweb/extensions/assets"; + * import { predictAddressByConfig } from "thirdweb/extensions/assets"; * - * const result = await predictAssetAddressByConfig({ + * const result = await predictAddressByConfig({ * contract, * config: ..., * creator: ..., @@ -205,8 +200,8 @@ export function decodePredictAssetAddressByConfigResult(result: Hex) { * * ``` */ -export async function predictAssetAddressByConfig( - options: BaseTransactionOptions, +export async function predictAddressByConfig( + options: BaseTransactionOptions, ) { return readContract({ contract: options.contract, diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts similarity index 99% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts index a056bb26e0d..fd62cd8e007 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/addImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/addImplementation.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts index 78c5a64e132..1928273a182 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/addImplementation.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addImplementation" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/buyAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts similarity index 74% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/buyAsset.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts index 0f1092909ad..31a837a37a9 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/buyAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts @@ -1,17 +1,17 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "buyAsset" function. + * Represents the parameters for the "buy" function. */ -export type BuyAssetParams = WithOverrides<{ +export type BuyParams = WithOverrides<{ asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; params: AbiParameterToPrimitiveType<{ type: "tuple"; @@ -28,7 +28,7 @@ export type BuyAssetParams = WithOverrides<{ }>; }>; -export const FN_SELECTOR = "0x4af11f67" as const; +export const FN_SELECTOR = "0x688cb20f" as const; const FN_INPUTS = [ { type: "address", @@ -81,18 +81,18 @@ const FN_OUTPUTS = [ ] as const; /** - * Checks if the `buyAsset` method is supported by the given contract. + * Checks if the `buy` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `buyAsset` method is supported. + * @returns A boolean indicating if the `buy` method is supported. * @extension ASSETS * @example * ```ts - * import { isBuyAssetSupported } from "thirdweb/extensions/assets"; + * import { isBuySupported } from "thirdweb/extensions/assets"; * - * const supported = isBuyAssetSupported(["0x..."]); + * const supported = isBuySupported(["0x..."]); * ``` */ -export function isBuyAssetSupported(availableSelectors: string[]) { +export function isBuySupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -100,55 +100,55 @@ export function isBuyAssetSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "buyAsset" function. - * @param options - The options for the buyAsset function. + * Encodes the parameters for the "buy" function. + * @param options - The options for the buy function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodeBuyAssetParams } from "thirdweb/extensions/assets"; - * const result = encodeBuyAssetParams({ + * import { encodeBuyParams } from "thirdweb/extensions/assets"; + * const result = encodeBuyParams({ * asset: ..., * params: ..., * }); * ``` */ -export function encodeBuyAssetParams(options: BuyAssetParams) { +export function encodeBuyParams(options: BuyParams) { return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); } /** - * Encodes the "buyAsset" function into a Hex string with its parameters. - * @param options - The options for the buyAsset function. + * Encodes the "buy" function into a Hex string with its parameters. + * @param options - The options for the buy function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodeBuyAsset } from "thirdweb/extensions/assets"; - * const result = encodeBuyAsset({ + * import { encodeBuy } from "thirdweb/extensions/assets"; + * const result = encodeBuy({ * asset: ..., * params: ..., * }); * ``` */ -export function encodeBuyAsset(options: BuyAssetParams) { +export function encodeBuy(options: BuyParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeBuyAssetParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; + encodeBuyParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "buyAsset" function on the contract. - * @param options - The options for the "buyAsset" function. + * Prepares a transaction to call the "buy" function on the contract. + * @param options - The options for the "buy" function. * @returns A prepared transaction object. * @extension ASSETS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { buyAsset } from "thirdweb/extensions/assets"; + * import { buy } from "thirdweb/extensions/assets"; * - * const transaction = buyAsset({ + * const transaction = buy({ * contract, * asset: ..., * params: ..., @@ -161,11 +161,11 @@ export function encodeBuyAsset(options: BuyAssetParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function buyAsset( +export function buy( options: BaseTransactionOptions< - | BuyAssetParams + | BuyParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts index 89b15b8c239..a1e60004b43 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimReward.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts index 1398704dfb8..0362086ed0e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/claimReward.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimReward" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts index b4cdc7364a8..c4bf81966fe 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts similarity index 70% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts index 710f8a59151..4ce3bd0abbd 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts @@ -1,23 +1,22 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "createAsset" function. + * Represents the parameters for the "create" function. */ -export type CreateAssetParams = WithOverrides<{ +export type CreateParams = WithOverrides<{ creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; createParams: AbiParameterToPrimitiveType<{ type: "tuple"; name: "createParams"; components: [ - { type: "uint256"; name: "amount" }, { type: "address"; name: "referrer" }, { type: "bytes32"; name: "salt" }, { type: "bytes"; name: "data" }, @@ -26,7 +25,7 @@ export type CreateAssetParams = WithOverrides<{ }>; }>; -export const FN_SELECTOR = "0x58ac06bd" as const; +export const FN_SELECTOR = "0x65d53dd9" as const; const FN_INPUTS = [ { type: "address", @@ -36,10 +35,6 @@ const FN_INPUTS = [ type: "tuple", name: "createParams", components: [ - { - type: "uint256", - name: "amount", - }, { type: "address", name: "referrer", @@ -67,18 +62,18 @@ const FN_OUTPUTS = [ ] as const; /** - * Checks if the `createAsset` method is supported by the given contract. + * Checks if the `create` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `createAsset` method is supported. + * @returns A boolean indicating if the `create` method is supported. * @extension ASSETS * @example * ```ts - * import { isCreateAssetSupported } from "thirdweb/extensions/assets"; + * import { isCreateSupported } from "thirdweb/extensions/assets"; * - * const supported = isCreateAssetSupported(["0x..."]); + * const supported = isCreateSupported(["0x..."]); * ``` */ -export function isCreateAssetSupported(availableSelectors: string[]) { +export function isCreateSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -86,20 +81,20 @@ export function isCreateAssetSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "createAsset" function. - * @param options - The options for the createAsset function. + * Encodes the parameters for the "create" function. + * @param options - The options for the create function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodeCreateAssetParams } from "thirdweb/extensions/assets"; - * const result = encodeCreateAssetParams({ + * import { encodeCreateParams } from "thirdweb/extensions/assets"; + * const result = encodeCreateParams({ * creator: ..., * createParams: ..., * }); * ``` */ -export function encodeCreateAssetParams(options: CreateAssetParams) { +export function encodeCreateParams(options: CreateParams) { return encodeAbiParameters(FN_INPUTS, [ options.creator, options.createParams, @@ -107,39 +102,37 @@ export function encodeCreateAssetParams(options: CreateAssetParams) { } /** - * Encodes the "createAsset" function into a Hex string with its parameters. - * @param options - The options for the createAsset function. + * Encodes the "create" function into a Hex string with its parameters. + * @param options - The options for the create function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodeCreateAsset } from "thirdweb/extensions/assets"; - * const result = encodeCreateAsset({ + * import { encodeCreate } from "thirdweb/extensions/assets"; + * const result = encodeCreate({ * creator: ..., * createParams: ..., * }); * ``` */ -export function encodeCreateAsset(options: CreateAssetParams) { +export function encodeCreate(options: CreateParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeCreateAssetParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; + encodeCreateParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "createAsset" function on the contract. - * @param options - The options for the "createAsset" function. + * Prepares a transaction to call the "create" function on the contract. + * @param options - The options for the "create" function. * @returns A prepared transaction object. * @extension ASSETS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { createAsset } from "thirdweb/extensions/assets"; + * import { create } from "thirdweb/extensions/assets"; * - * const transaction = createAsset({ + * const transaction = create({ * contract, * creator: ..., * createParams: ..., @@ -152,11 +145,11 @@ export function encodeCreateAsset(options: CreateAssetParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function createAsset( +export function create( options: BaseTransactionOptions< - | CreateAssetParams + | CreateParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetById.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts similarity index 70% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetById.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts index c0af4b9621a..c6bfa3dc60f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetById.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts @@ -1,17 +1,17 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "createAssetById" function. + * Represents the parameters for the "createById" function. */ -export type CreateAssetByIdParams = WithOverrides<{ +export type CreateByIdParams = WithOverrides<{ contractId: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "contractId"; @@ -21,7 +21,6 @@ export type CreateAssetByIdParams = WithOverrides<{ type: "tuple"; name: "params"; components: [ - { type: "uint256"; name: "amount" }, { type: "address"; name: "referrer" }, { type: "bytes32"; name: "salt" }, { type: "bytes"; name: "data" }, @@ -30,7 +29,7 @@ export type CreateAssetByIdParams = WithOverrides<{ }>; }>; -export const FN_SELECTOR = "0x1c8dd10a" as const; +export const FN_SELECTOR = "0x1889d488" as const; const FN_INPUTS = [ { type: "bytes32", @@ -44,10 +43,6 @@ const FN_INPUTS = [ type: "tuple", name: "params", components: [ - { - type: "uint256", - name: "amount", - }, { type: "address", name: "referrer", @@ -75,18 +70,18 @@ const FN_OUTPUTS = [ ] as const; /** - * Checks if the `createAssetById` method is supported by the given contract. + * Checks if the `createById` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `createAssetById` method is supported. + * @returns A boolean indicating if the `createById` method is supported. * @extension ASSETS * @example * ```ts - * import { isCreateAssetByIdSupported } from "thirdweb/extensions/assets"; + * import { isCreateByIdSupported } from "thirdweb/extensions/assets"; * - * const supported = isCreateAssetByIdSupported(["0x..."]); + * const supported = isCreateByIdSupported(["0x..."]); * ``` */ -export function isCreateAssetByIdSupported(availableSelectors: string[]) { +export function isCreateByIdSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -94,21 +89,21 @@ export function isCreateAssetByIdSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "createAssetById" function. - * @param options - The options for the createAssetById function. + * Encodes the parameters for the "createById" function. + * @param options - The options for the createById function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodeCreateAssetByIdParams } from "thirdweb/extensions/assets"; - * const result = encodeCreateAssetByIdParams({ + * import { encodeCreateByIdParams } from "thirdweb/extensions/assets"; + * const result = encodeCreateByIdParams({ * contractId: ..., * creator: ..., * params: ..., * }); * ``` */ -export function encodeCreateAssetByIdParams(options: CreateAssetByIdParams) { +export function encodeCreateByIdParams(options: CreateByIdParams) { return encodeAbiParameters(FN_INPUTS, [ options.contractId, options.creator, @@ -117,40 +112,40 @@ export function encodeCreateAssetByIdParams(options: CreateAssetByIdParams) { } /** - * Encodes the "createAssetById" function into a Hex string with its parameters. - * @param options - The options for the createAssetById function. + * Encodes the "createById" function into a Hex string with its parameters. + * @param options - The options for the createById function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodeCreateAssetById } from "thirdweb/extensions/assets"; - * const result = encodeCreateAssetById({ + * import { encodeCreateById } from "thirdweb/extensions/assets"; + * const result = encodeCreateById({ * contractId: ..., * creator: ..., * params: ..., * }); * ``` */ -export function encodeCreateAssetById(options: CreateAssetByIdParams) { +export function encodeCreateById(options: CreateByIdParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeCreateAssetByIdParams(options).slice( + encodeCreateByIdParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "createAssetById" function on the contract. - * @param options - The options for the "createAssetById" function. + * Prepares a transaction to call the "createById" function on the contract. + * @param options - The options for the "createById" function. * @returns A prepared transaction object. * @extension ASSETS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { createAssetById } from "thirdweb/extensions/assets"; + * import { createById } from "thirdweb/extensions/assets"; * - * const transaction = createAssetById({ + * const transaction = createById({ * contract, * contractId: ..., * creator: ..., @@ -164,11 +159,11 @@ export function encodeCreateAssetById(options: CreateAssetByIdParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function createAssetById( +export function createById( options: BaseTransactionOptions< - | CreateAssetByIdParams + | CreateByIdParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts similarity index 69% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts index 69481353ce3..5617575f245 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/createAssetByImplementationConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts @@ -1,17 +1,17 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "createAssetByImplementationConfig" function. + * Represents the parameters for the "createByImplementationConfig" function. */ -export type CreateAssetByImplementationConfigParams = WithOverrides<{ +export type CreateByImplementationConfigParams = WithOverrides<{ config: AbiParameterToPrimitiveType<{ type: "tuple"; name: "config"; @@ -28,7 +28,6 @@ export type CreateAssetByImplementationConfigParams = WithOverrides<{ type: "tuple"; name: "params"; components: [ - { type: "uint256"; name: "amount" }, { type: "address"; name: "referrer" }, { type: "bytes32"; name: "salt" }, { type: "bytes"; name: "data" }, @@ -37,7 +36,7 @@ export type CreateAssetByImplementationConfigParams = WithOverrides<{ }>; }>; -export const FN_SELECTOR = "0x230ffc78" as const; +export const FN_SELECTOR = "0x1a1b2b88" as const; const FN_INPUTS = [ { type: "tuple", @@ -73,10 +72,6 @@ const FN_INPUTS = [ type: "tuple", name: "params", components: [ - { - type: "uint256", - name: "amount", - }, { type: "address", name: "referrer", @@ -104,18 +99,18 @@ const FN_OUTPUTS = [ ] as const; /** - * Checks if the `createAssetByImplementationConfig` method is supported by the given contract. + * Checks if the `createByImplementationConfig` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `createAssetByImplementationConfig` method is supported. + * @returns A boolean indicating if the `createByImplementationConfig` method is supported. * @extension ASSETS * @example * ```ts - * import { isCreateAssetByImplementationConfigSupported } from "thirdweb/extensions/assets"; + * import { isCreateByImplementationConfigSupported } from "thirdweb/extensions/assets"; * - * const supported = isCreateAssetByImplementationConfigSupported(["0x..."]); + * const supported = isCreateByImplementationConfigSupported(["0x..."]); * ``` */ -export function isCreateAssetByImplementationConfigSupported( +export function isCreateByImplementationConfigSupported( availableSelectors: string[], ) { return detectMethod({ @@ -125,22 +120,22 @@ export function isCreateAssetByImplementationConfigSupported( } /** - * Encodes the parameters for the "createAssetByImplementationConfig" function. - * @param options - The options for the createAssetByImplementationConfig function. + * Encodes the parameters for the "createByImplementationConfig" function. + * @param options - The options for the createByImplementationConfig function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodeCreateAssetByImplementationConfigParams } from "thirdweb/extensions/assets"; - * const result = encodeCreateAssetByImplementationConfigParams({ + * import { encodeCreateByImplementationConfigParams } from "thirdweb/extensions/assets"; + * const result = encodeCreateByImplementationConfigParams({ * config: ..., * creator: ..., * params: ..., * }); * ``` */ -export function encodeCreateAssetByImplementationConfigParams( - options: CreateAssetByImplementationConfigParams, +export function encodeCreateByImplementationConfigParams( + options: CreateByImplementationConfigParams, ) { return encodeAbiParameters(FN_INPUTS, [ options.config, @@ -150,42 +145,42 @@ export function encodeCreateAssetByImplementationConfigParams( } /** - * Encodes the "createAssetByImplementationConfig" function into a Hex string with its parameters. - * @param options - The options for the createAssetByImplementationConfig function. + * Encodes the "createByImplementationConfig" function into a Hex string with its parameters. + * @param options - The options for the createByImplementationConfig function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodeCreateAssetByImplementationConfig } from "thirdweb/extensions/assets"; - * const result = encodeCreateAssetByImplementationConfig({ + * import { encodeCreateByImplementationConfig } from "thirdweb/extensions/assets"; + * const result = encodeCreateByImplementationConfig({ * config: ..., * creator: ..., * params: ..., * }); * ``` */ -export function encodeCreateAssetByImplementationConfig( - options: CreateAssetByImplementationConfigParams, +export function encodeCreateByImplementationConfig( + options: CreateByImplementationConfigParams, ) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeCreateAssetByImplementationConfigParams(options).slice( + encodeCreateByImplementationConfigParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "createAssetByImplementationConfig" function on the contract. - * @param options - The options for the "createAssetByImplementationConfig" function. + * Prepares a transaction to call the "createByImplementationConfig" function on the contract. + * @param options - The options for the "createByImplementationConfig" function. * @returns A prepared transaction object. * @extension ASSETS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { createAssetByImplementationConfig } from "thirdweb/extensions/assets"; + * import { createByImplementationConfig } from "thirdweb/extensions/assets"; * - * const transaction = createAssetByImplementationConfig({ + * const transaction = createByImplementationConfig({ * contract, * config: ..., * creator: ..., @@ -199,11 +194,11 @@ export function encodeCreateAssetByImplementationConfig( * await sendTransaction({ transaction, account }); * ``` */ -export function createAssetByImplementationConfig( +export function createByImplementationConfig( options: BaseTransactionOptions< - | CreateAssetByImplementationConfigParams + | CreateByImplementationConfigParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts similarity index 69% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts index 212da9f5c79..f5ba6c4a271 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts @@ -1,17 +1,17 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "distributeAsset" function. + * Represents the parameters for the "distribute" function. */ -export type DistributeAssetParams = WithOverrides<{ +export type DistributeParams = WithOverrides<{ asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; contents: AbiParameterToPrimitiveType<{ type: "tuple[]"; @@ -23,7 +23,7 @@ export type DistributeAssetParams = WithOverrides<{ }>; }>; -export const FN_SELECTOR = "0x5954167a" as const; +export const FN_SELECTOR = "0xe542b93b" as const; const FN_INPUTS = [ { type: "address", @@ -47,18 +47,18 @@ const FN_INPUTS = [ const FN_OUTPUTS = [] as const; /** - * Checks if the `distributeAsset` method is supported by the given contract. + * Checks if the `distribute` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `distributeAsset` method is supported. + * @returns A boolean indicating if the `distribute` method is supported. * @extension ASSETS * @example * ```ts - * import { isDistributeAssetSupported } from "thirdweb/extensions/assets"; + * import { isDistributeSupported } from "thirdweb/extensions/assets"; * - * const supported = isDistributeAssetSupported(["0x..."]); + * const supported = isDistributeSupported(["0x..."]); * ``` */ -export function isDistributeAssetSupported(availableSelectors: string[]) { +export function isDistributeSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -66,57 +66,57 @@ export function isDistributeAssetSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "distributeAsset" function. - * @param options - The options for the distributeAsset function. + * Encodes the parameters for the "distribute" function. + * @param options - The options for the distribute function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodeDistributeAssetParams } from "thirdweb/extensions/assets"; - * const result = encodeDistributeAssetParams({ + * import { encodeDistributeParams } from "thirdweb/extensions/assets"; + * const result = encodeDistributeParams({ * asset: ..., * contents: ..., * }); * ``` */ -export function encodeDistributeAssetParams(options: DistributeAssetParams) { +export function encodeDistributeParams(options: DistributeParams) { return encodeAbiParameters(FN_INPUTS, [options.asset, options.contents]); } /** - * Encodes the "distributeAsset" function into a Hex string with its parameters. - * @param options - The options for the distributeAsset function. + * Encodes the "distribute" function into a Hex string with its parameters. + * @param options - The options for the distribute function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodeDistributeAsset } from "thirdweb/extensions/assets"; - * const result = encodeDistributeAsset({ + * import { encodeDistribute } from "thirdweb/extensions/assets"; + * const result = encodeDistribute({ * asset: ..., * contents: ..., * }); * ``` */ -export function encodeDistributeAsset(options: DistributeAssetParams) { +export function encodeDistribute(options: DistributeParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeDistributeAssetParams(options).slice( + encodeDistributeParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "distributeAsset" function on the contract. - * @param options - The options for the "distributeAsset" function. + * Prepares a transaction to call the "distribute" function on the contract. + * @param options - The options for the "distribute" function. * @returns A prepared transaction object. * @extension ASSETS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { distributeAsset } from "thirdweb/extensions/assets"; + * import { distribute } from "thirdweb/extensions/assets"; * - * const transaction = distributeAsset({ + * const transaction = distribute({ * contract, * asset: ..., * contents: ..., @@ -129,11 +129,11 @@ export function encodeDistributeAsset(options: DistributeAssetParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function distributeAsset( +export function distribute( options: BaseTransactionOptions< - | DistributeAssetParams + | DistributeParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/initialize.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts index 8f97709f1ef..9b4ed568539 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts index 6b9b9db57a4..7b8b575e3b4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts index 5826bb0ee25..e0744619fae 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/sellAsset.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts similarity index 73% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/sellAsset.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts index 7f4d53080d1..658df75703d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/sellAsset.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts @@ -1,17 +1,17 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "sellAsset" function. + * Represents the parameters for the "sell" function. */ -export type SellAssetParams = WithOverrides<{ +export type SellParams = WithOverrides<{ asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; params: AbiParameterToPrimitiveType<{ type: "tuple"; @@ -27,7 +27,7 @@ export type SellAssetParams = WithOverrides<{ }>; }>; -export const FN_SELECTOR = "0x5de3eedb" as const; +export const FN_SELECTOR = "0xfbc84f15" as const; const FN_INPUTS = [ { type: "address", @@ -76,18 +76,18 @@ const FN_OUTPUTS = [ ] as const; /** - * Checks if the `sellAsset` method is supported by the given contract. + * Checks if the `sell` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `sellAsset` method is supported. + * @returns A boolean indicating if the `sell` method is supported. * @extension ASSETS * @example * ```ts - * import { isSellAssetSupported } from "thirdweb/extensions/assets"; + * import { isSellSupported } from "thirdweb/extensions/assets"; * - * const supported = isSellAssetSupported(["0x..."]); + * const supported = isSellSupported(["0x..."]); * ``` */ -export function isSellAssetSupported(availableSelectors: string[]) { +export function isSellSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -95,57 +95,55 @@ export function isSellAssetSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "sellAsset" function. - * @param options - The options for the sellAsset function. + * Encodes the parameters for the "sell" function. + * @param options - The options for the sell function. * @returns The encoded ABI parameters. * @extension ASSETS * @example * ```ts - * import { encodeSellAssetParams } from "thirdweb/extensions/assets"; - * const result = encodeSellAssetParams({ + * import { encodeSellParams } from "thirdweb/extensions/assets"; + * const result = encodeSellParams({ * asset: ..., * params: ..., * }); * ``` */ -export function encodeSellAssetParams(options: SellAssetParams) { +export function encodeSellParams(options: SellParams) { return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); } /** - * Encodes the "sellAsset" function into a Hex string with its parameters. - * @param options - The options for the sellAsset function. + * Encodes the "sell" function into a Hex string with its parameters. + * @param options - The options for the sell function. * @returns The encoded hexadecimal string. * @extension ASSETS * @example * ```ts - * import { encodeSellAsset } from "thirdweb/extensions/assets"; - * const result = encodeSellAsset({ + * import { encodeSell } from "thirdweb/extensions/assets"; + * const result = encodeSell({ * asset: ..., * params: ..., * }); * ``` */ -export function encodeSellAsset(options: SellAssetParams) { +export function encodeSell(options: SellParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeSellAssetParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; + encodeSellParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "sellAsset" function on the contract. - * @param options - The options for the "sellAsset" function. + * Prepares a transaction to call the "sell" function on the contract. + * @param options - The options for the "sell" function. * @returns A prepared transaction object. * @extension ASSETS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { sellAsset } from "thirdweb/extensions/assets"; + * import { sell } from "thirdweb/extensions/assets"; * - * const transaction = sellAsset({ + * const transaction = sell({ * contract, * asset: ..., * params: ..., @@ -158,11 +156,11 @@ export function encodeSellAsset(options: SellAssetParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function sellAsset( +export function sell( options: BaseTransactionOptions< - | SellAssetParams + | SellParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts index 5045baddf45..98ea672ed10 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setAirdrop.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setAirdrop" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRewardLocker.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts index 26f1da040b3..159899d75b1 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRewardLocker.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRewardLocker" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRouter.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts index d9c4892d9d7..5245d9c150d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/setRouter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRouter" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts index 52e932c37eb..36f0df68e14 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts similarity index 100% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts rename to packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts index 673b1ef2dec..63e1152f422 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts index ce7b1c6f4df..5128c83b16d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "FeeConfigUpdated" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts index ac6938b7351..d32666975bc 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "FeeConfigUpdatedBySignature" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts index 326928983b5..2ab8996b8d3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts index b7e8608233d..a498506409a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts index b97cc481307..b1be6e750e1 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts index 8af28f86cda..67aa23f71ff 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts index d97a44b8e6a..449bf58bc2a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x99ba5936" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts index 5e88bc93e4f..325ff4c94df 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "calculateFee" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts index ba2ff26a9e3..2d3a7ff9ee3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xf698da25" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts index 421de432c4d..652bbb76ec8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts index 74d6941aef1..616184e5f1f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "feeConfigs" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts index bb5a72deae6..fe9c0c425b3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x46904840" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts index d281419863f..b8de65828ce 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts index 818afa6bdad..05ec4d41cb2 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts index 95991a7c780..11e595201f3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts index 9a497818fa5..9903177bd12 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts index 48ca2e48867..5625095f262 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts index 0a4a956a84e..e64c25fe267 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts index 99db4913098..b84a31b53b7 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "usedNonces" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts index 89b15b8c239..a1e60004b43 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts index b4cdc7364a8..c4bf81966fe 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts index 84020071e34..b2469579e29 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts index 6b9b9db57a4..7b8b575e3b4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts index c25e20d6c27..fa83b586359 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts index 5826bb0ee25..e0744619fae 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts index 345883da046..c6450bfcd50 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts index 8b10233558e..fdf708570f0 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts index f8e2b8c1f86..dac81287896 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setFeeConfigBySignature" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts index 9ddc0013590..df6cb2b220c 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setFeeRecipient" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts index 21e8e3afa73..abd3a0e6f54 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTargetFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts index 52e932c37eb..36f0df68e14 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts index 65d0888d40d..1081dc5be42 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PositionLocked" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts index 4eed15b8769..cd14273ff7e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardCollected" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts index c7f3d8dcf25..8a54aadd7b9 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd0fb0203" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts index 4caa2d5af46..4aebc340c58 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "positions" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts index f277a7a5649..6ffae04260c 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x39406c50" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts index 1c38c7fdc73..9af4367be8e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe2f4dd43" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts index 4a18acd4268..13d69cc10d5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "collectReward" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts index 03af4e56211..c64436a0278 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "lockPosition" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts index 326928983b5..2ab8996b8d3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts index b7e8608233d..a498506409a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts index b97cc481307..b1be6e750e1 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts index f9dc48bab16..a5e453c7717 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SwapExecuted" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts index 0869e1f4557..5ab5634fb24 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts index 32f5330401f..b7a3a2b4481 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x31f7d964" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts index 9a497818fa5..9903177bd12 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts index 48ca2e48867..5625095f262 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts index a056bb26e0d..fd62cd8e007 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts index 89b15b8c239..a1e60004b43 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts index b4cdc7364a8..c4bf81966fe 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts index c6f2e21345f..099fc89f3d8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPool" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts index e77b5424a89..e337f719658 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "disableAdapter" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts index eeaaed700cf..a8eac8c28d5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "enableAdapter" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts index dbe972101c4..3c12ac4ee92 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts index 6b9b9db57a4..7b8b575e3b4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts index 5826bb0ee25..e0744619fae 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts index d0db081529a..4d51ce7fe8e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "swap" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts index 52e932c37eb..36f0df68e14 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts index 673b1ef2dec..63e1152f422 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts index 4566ae533d4..56c279e35ce 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts index d50373e8312..2ea7753de27 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts index 1b93894ecfe..3ffea0690fc 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts index 3ded3f5529b..bb275da2f18 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts index f7240e15589..da4fc19dbd4 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts index d88bb911cfe..191addedb4a 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "multicall" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts index 08af112996e..b4114846977 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnerUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts index e7d18e25f94..91c7d953571 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts index 5e69d08ca21..ccd898be5ea 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts index dbe8285a417..2db6b4f4412 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts index 8ea7d761d26..8a762797f05 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts index efa7ad2fe4d..4dd68636156 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts index ad050c4dd3a..435c2f003e0 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PrimarySaleRecipientUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts index 56a38752334..d5bc32a66fd 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x079fe40e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts index 66173a2a58e..1700a8c5103 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPrimarySaleRecipient" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts index 3ddbd97fa3b..bda5d833de1 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DefaultRoyalty" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts index 55dc7b798a4..4dea19eac28 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoyaltyForToken" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts index 586f785dd19..35b885df948 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts index aa5aa6ebb79..df38082ccab 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts index 7d580f21ede..9b63a90861b 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts index 407137179d0..2ac55df9cbf 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts index fdce2d9c969..d50f9564b26 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts index 148ebb62fa3..7ea6f0a96e3 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts index 9fe313c9645..4de63a5df08 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoyaltyEngineUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts index 407137179d0..2ac55df9cbf 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts index 8c871ee8dc9..a2f63658455 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyalty" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts index 668627644da..6b3ae0a2749 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyEngine" function. diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts index 6b40fa433e9..e3a8808253c 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts index d1966acff79..6ad5e011e49 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addExtension" function. diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts index 6374a15b117..34a7822686b 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "removeExtension" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts index bf73a866568..73082960b11 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ABI" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts index 83af7231f72..bad6f8ddea0 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addr" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts index ebb71e668dd..dc86243a44a 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "contenthash" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts index 2de03b0c45e..660beaf8001 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "name" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts index 6ce678c089c..26356b9a164 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "pubkey" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts index 3faa66e172e..48245cd713c 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "text" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts index 63713f86a03..578f2a95426 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "name" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts index 9695a690140..3fe798c55dd 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "resolve" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts index f84f14b8d2d..6fe4e4d1c1f 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "reverse" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts index 73f45348e7c..c676d387afb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts index 813a7ef5345..0c3088f8948 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts index b90d560ba70..b4467275ef2 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts index fe5b329335e..6684c87c397 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts index f14b243d535..55a70ef2392 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts index 81f578628a1..5076f66c719 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleRecipientForToken" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts index be277b363a4..0c718deff5a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts index 14dd8c83769..2762fcdd17d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts index 660ef2ad7d5..df9e69cfcfb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC1155" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts index 959e9340680..fa7b986927c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts index 9ec1ee4692a..7ec6e819a8d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts index 95abdf2729c..f36a7e6d858 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts index 32bc00e804b..630fd7070d8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burnBatch" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts index 959e9340680..fa7b986927c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts index 644c3576dd3..daeeb9564ec 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts index ee38633afc3..777715966d4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ClaimConditionsUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts index 02f82ec5124..e1accf0d244 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts index deec1d69026..64dd8ca345d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimCondition" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts index dcff83944d7..1684879b155 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getActiveClaimConditionId" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts index df3813b2551..7da28e54495 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts index d00ef37b669..8c3db1e8d27 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts index 8874dae7893..36b0884c34c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts index 298f234735b..21040cdf986 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ClaimConditionUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts index 959e9340680..fa7b986927c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts index 36b144c74be..04b44c4486c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimCondition" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts index d00ef37b669..8c3db1e8d27 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts index 4b83811da0d..043ca48332c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts index b78452a80a4..96daa76e1c0 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ApprovalForAll" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts index fe5cb14013f..e293e23488c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TransferBatch" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts index 2f0cdab107a..43726f4eeea 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TransferSingle" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts index 3888a8693f8..4993d85f7ee 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "URI" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts index a9de58c8de5..06edf5575c1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts index 8929fab3b89..ecfeac7aa8a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOfBatch" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts index 3a13e7d4011..ae49f338a36 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isApprovedForAll" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts index 99962350074..293d69ec291 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "totalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts index 1d746a402a6..16c6c93fc3b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uri" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts index 21f4d03cbc7..69941c9ab48 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "safeBatchTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts index 990d55e78c4..31dc293f5dc 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "safeTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts index 540376e8822..4d62b4b8e95 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setApprovalForAll" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts index edf264b16d5..19dddf43c7c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts index 28cca2da663..0a0627687ed 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts index 72454a87201..b21c1c5e90d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onERC1155BatchReceived" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts index 16eff631963..cb3d27032ac 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onERC1155Received" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts index a721d8b21df..4f7225de3d2 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts index f50c34dc977..aab127edc73 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts index 0b35913b5bb..dd2a413af02 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensLazyMinted" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts index 5326d8c783b..5a175f1a89f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "lazyMint" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts index 1639017dea7..45a4d431a21 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts index fa194b737b1..b28be8d3f50 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts index 28cca2da663..0a0627687ed 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts index 003e54a53cc..0ce21caab41 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts index ada2b7be565..3d42dad88ac 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts index c6376f6f324..a2f1c1da7bb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackCreated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts index e1882226a08..aa6b44b5de6 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpened" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts index 5353551e981..7b9a4ae3ada 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts index d937bb002f9..651159cc31f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPack" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts index ab20ae3048d..b76754ccb3e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPack" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index 877c44e06ab..1700b14ae6d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpenRequested" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index de793650734..973a8afa50d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackRandomnessFulfilled" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts index 95900c4c2c0..dad4ba854e1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "canClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts index 4b53484ee6f..f27ff5f2568 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index d9b0f36898b..a062fe62999 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts index 3a3d4ab049f..ca1f6d20821 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts index 16cec785cf1..09bb704a2ca 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts index 4906fe81e4b..6a85a154053 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts index 1359ef370de..3caf37ca828 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts index 91cac84cb8e..57cc777cc94 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts index ac580fa73c8..93b50de0267 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts index 17da59ab8da..cc60bb803ec 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UpdatedRewardsPerUnitTime" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts index 036d3d395a8..1bdc0e9edab 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UpdatedTimeUnit" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts index c94902fa163..381a97e4ac0 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts index dc4bb9a4ae9..95246a9bf77 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts index b8423f58cae..72773f0c947 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts index 15711543ef4..4640d2664d8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts index fc36cb2fea8..261bf72277e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts index 9761a5cdbfa..a1c7ae20ebc 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x75794a3c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts index 41c64799da0..b276e41eaab 100644 --- a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isValidSignature" function. diff --git a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts index bcf99543c0f..da351e0658d 100644 --- a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts index e2032fab9d0..e3d2a786c0f 100644 --- a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts index 05b834d34c8..5033086ff1f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts index 06d69c5ff16..cd60467baae 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts index fe3bb8cc142..9499d363326 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC20" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts index e79f0240b1e..980f90c08d6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts index 1b5c24e72ab..315fd89acb6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts index 02facd11679..14e6c3521f6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts index 15628bef1f9..0a39df5ef61 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts index 03b681a438e..32ae497829f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts index f2bb82075e1..543ca00aeb3 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts index d05c49e0642..8874f1f8b77 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts index 66dc374e9ff..a0bff681c08 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts index 502154ae933..2c1aabd1066 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts index 62a00d474bf..dbfd5398c08 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts index 8057c658b1e..83c90ba1373 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts index c52084bf3e2..392798f0938 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts index a301bde7d16..90f936573ff 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts index 28fc473b542..05bfa99e8b9 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts index 7c6f025f370..e713101a8f2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts index 315fc80ca09..a40ddadb5ea 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts index 05f8b87f866..c3071082e4e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts index f9e725775a4..bb688023945 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts index 8f1a555dafe..84e581ee5d0 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts index 77488bf42f4..f3088be371b 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts index a5729c91c33..0785785f1cf 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts index a7374999c2f..196dae6e56c 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts index 03ecfce9d0f..6b64f961507 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts index f0b38100c6b..e0db2221abd 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts index 167e6b98602..edb03b78b32 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts index b252d8b1851..3d910a7024d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts index b239f00a27d..42821808bda 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts index 51fc2b438ba..b727ca0d9b2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts index 7462592d148..481bb8eb721 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts index 2ac66e20af2..bdcc3f2ca69 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts index ac575a71b1e..6e8274dfa05 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts index 1704b169c28..57d0a77dff7 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts index a102e7e40db..408f9cd07a8 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts index e351237d2eb..c1c69ea396d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts index 8b3baff39b1..0c3048d17f9 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts index b685e6934d6..6fdc7ac02c8 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts index 8d2d1ad0f4f..6ac50c18b65 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DelegateChanged" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts index 679716ea9ea..3dee0b93a04 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DelegateVotesChanged" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts index 08ea92ba0b3..c571722679d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "delegates" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts index 7a9fef8ca2a..e3441230e1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPastTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts index efa3696035e..ae46edb8b0c 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPastVotes" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts index 9f60ad99262..cff1749bd6b 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getVotes" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts index 8c871e9055c..7cef71ff61a 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "delegate" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts index 3d4a8db0d50..d4ccd48cc5a 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "delegateBySig" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts index 08a9dede108..71983157230 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts index f9e725775a4..bb688023945 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts index e351237d2eb..c1c69ea396d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts index f48fb6279b8..64ca336631f 100644 --- a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts +++ b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTrustedForwarder" function. diff --git a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts index edbd43bb8c8..af103446eff 100644 --- a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts index b2894032e80..61732d4c768 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "validateUserOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts index a16bc9a83cc..9704d1c60fa 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AccountCreated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts index 5da6ede6ac7..29ba1977797 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignerAdded" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts index 82619ea12e0..ee49f539f23 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignerRemoved" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts index 31f9d6e64c0..88b5f01391a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts index a26c296a7f2..e442c9ebe15 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAccounts" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts index 846406de80f..f0bac129833 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAccountsOfSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts index 0174ca08356..07d3c8f0a19 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAddress" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts index 93cf2387dff..49004ff07df 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x08e93d0a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts index 6d3eae1caf1..4213342788a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isRegistered" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts index 213525ca085..d13cf94c6b5 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x58451f97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts index b03c26c972f..d71e0c7bbee 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAccount" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts index 8799cb8bd6d..58b1f104269 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onSignerAdded" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts index 378b00d4ce7..eeb95bb3887 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onSignerRemoved" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts index 8da029f6d0e..3c4cdb022dc 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AdminUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts index a74536a6f7a..49b12b5e7ca 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignerPermissionsUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts index 10a3a03b5de..b25927d7f3e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8b52d723" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts index 4a99bfd8fea..340e8e2b338 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe9523c97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts index 8637d17d40e..473f22cee70 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd42f2f35" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts index 554ab0b1511..6f91832c4d4 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPermissionsForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts index 2f4acb5c7e3..f70ae69ae27 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isActiveSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts index 2e40f43ff8e..421e3fb9b05 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isAdmin" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts index 4dd893869dd..13c9660d679 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifySignerPermissionRequest" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts index acad573f066..0dfecdfe3e3 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPermissionsForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts index 57c092662d1..aefeda70d1f 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AccountDeployed" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts index 786675249ff..979246b3a32 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Deposited" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts index c159efd99ae..408f596d1b3 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignatureAggregatorChanged" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts index 64432e3e52a..cdb5cb7718a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "StakeLocked" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts index 3db5b217e5d..2c2a521b3e8 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "StakeUnlocked" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts index fdca4a373fe..d6baaadd015 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "StakeWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts index 34ab121fe48..e7361b8f242 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UserOperationEvent" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts index ea97112e335..651ba8f699d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UserOperationRevertReason" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts index 7b4e4b377a5..ba6086ca941 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Withdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts index 32ad1790b30..b7ff3081b0c 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts index df61606924e..ef2dd86df6b 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getDepositInfo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts index 129766b56b2..4047aff1316 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getNonce" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts index 75572b4e566..035be155152 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getUserOpHash" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts index 5385bd8265e..9dadba06162 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addStake" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts index 29803f6389d..b401e7ffe20 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositTo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts index b651367ee8d..824cf867b60 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getSenderAddress" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts index 164d965aa5e..5ec1fb8864c 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "handleAggregatedOps" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts index 142b42768d8..5021df6b320 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "handleOps" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts index f41500266dc..66aeaeb26ac 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "incrementNonce" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts index 45436f31447..8ad17a56ed6 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "simulateHandleOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts index c1098fde254..be82ffcd830 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "simulateValidation" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts index 3506e68345a..c136fb4c701 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts index 37db0a31e12..10668f3080d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawStake" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts index b34a439bdee..8d0e04b7655 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawTo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts index d9a94db53db..b8d5ff51605 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PostOpRevertReason" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts index ec9af361efd..deff206f64d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getUserOpHash" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts index 1c7b385cc5c..cdb00c1cd44 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "postOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts index f1259034401..ce0e1b226f6 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "validatePaymasterUserOp" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts index f18b212a278..dc44d6e24ab 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Deposit" event. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts index b9024da0879..702a6b214e0 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Withdraw" event. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts index c4280dffdde..c6aa2cf4a8f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x38d52e0f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts index aae1a9b0279..a336a3ba71d 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "convertToAssets" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts index 0ea83b5498f..19adbec5d30 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "convertToShares" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts index 58b4e09281a..c381e4e07ce 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxDeposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts index 5006143bc59..31d838daa75 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxMint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts index aeeb693fc77..c87d5ca24be 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxRedeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts index 7ba38dd8844..5d2194959f1 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxWithdraw" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts index 0f99cea3c14..55bd138d5c8 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewDeposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts index 443c34fb41f..1c77082a6d4 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewMint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts index 8e36a4bb59f..d22c9fc5c1c 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewRedeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts index 9c250aad3bb..0b48678535b 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewWithdraw" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts index e16ab10ad0a..13444d4de6f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x01e1d114" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts index cb7b09695dd..f987f82b52f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts index 76b3e11984f..21674a7ae44 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts index fbaf5e7bff3..df351f6ff7b 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "redeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts index be29d49c712..f9d36616418 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts index ce17d6bf523..f48782ca657 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isValidSigner" function. diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts index 4a94d5ca5f4..366fa324ff1 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc19d93fb" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts index 17140290a66..5b0fd38dc2d 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts index 939294b1b13..d6fbe26258f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts index d859f4ba0c7..5a98dee8f1b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts index 587749a9ef9..fef30ba5b5b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts index bc8960627ce..80e7ca4d58c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts index a5a0941adff..f4caa50a316 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts index 401d92112b7..2f96fcc6574 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC721" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts index e508430c74a..6713f907a04 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts index 1b8c9c154f4..c8242f26ff7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts index 28715bb477e..05c14805732 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts index 4b7f34da2c5..0c742164d79 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts index a8e4728f254..1f66b6a3b03 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts index 97c65f0ee9a..96d8aeb4491 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts index 1ddcb4ea94c..b6d15533e0c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts index 2e2af10afbf..80887b4834b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokenURIRevealed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts index 0cf4e15cb47..72fec8c3c7a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "encryptDecrypt" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts index b650d93ec60..6c8d4a2dca7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "encryptedData" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts index 7a15be4a4a9..d458a71158e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "reveal" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts index 04c54d35afd..f9323d3861e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts index 1f867c8cdca..15d51107b1f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "baseURIIndices" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts index 536b5046012..bdd2144fb09 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts index 05fc620d047..5e4f78b73ee 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts index f89b83a2294..4c03e0387d5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts index a3a6212cb9a..409a4030ce4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xacd083f8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts index 1c30efb8cb0..bd199d831e0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts index 12d2073a0ee..59a01bbc213 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts index 97c65f0ee9a..96d8aeb4491 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts index 88327db4387..60f4078f4d2 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts index 1c30efb8cb0..bd199d831e0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts index a24b8c898b3..d07fd8efc8e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts index e60cc1a073c..c1f8b0cb939 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts index 585bd7da021..da4f0dfc8d7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ApprovalForAll" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts index 83c0e99117b..b0d19bab766 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts index 95ba9ffd8ac..0a97dbe010d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts index 62c67865417..e6e6c742b20 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getApproved" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts index ef646d5aeb4..48aae344fd6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isApprovedForAll" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts index 977eb71775a..7f2ee48afd1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts index 401e641161a..725b42cb89c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownerOf" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts index a7437962276..44320640e09 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe6798baa" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts index 09032ae8d6a..2541453f1fa 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts index 968f8ffa3a0..cdd424d3861 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts index 08c6748815e..a19be2e4323 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts index f11264daf45..35b4af6555e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts index 1f5c2679cdf..6a39c3be5ca 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "safeTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts index f4cbe38611c..b2a383dd006 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setApprovalForAll" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts index 16b2674bffe..7eda6c94dfe 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts index 86d66e03f66..09dbce48836 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ConsecutiveTransfer" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts index 285fff85165..c57aff8f227 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokensOfOwner" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts index 72eb5418268..fae3b29b1eb 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokensOfOwnerIn" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts index 2bb30b6fa3b..abab41a1765 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts index e8bea47ee9a..a2194155e72 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenByIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts index fae88bc7dc4..317ffdcd06e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenOfOwnerByIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts index 1c908156fcf..4e89a7ec99f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onERC721Received" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts index 26bf1ce6d2f..eb69059bee4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensLazyMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts index 06ce4972ee8..9889bbbb726 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "lazyMint" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts index e9b672cdac1..667cd89e059 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts index a66e7e3dad9..5541d6823a5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts index e445a10b9db..0f6b2f9089d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts index 4bc2551a316..072e98db461 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts index 663fc79fa6d..2ae9e83a539 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts index fdd553b85a6..bee2ca42a4e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts index d3980b873a9..ed1eccc08f6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts index a3d246e412b..19270af23a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb280f703" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts index 0c52ecd7ecc..cce5712e655 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts index fad569bc974..c60a5c32c2e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SharedMetadataDeleted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts index a500645cb13..57d4bb484fb 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SharedMetadataUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts index e025d2380a5..af641d83093 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfc3c2a73" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts index 627bff7d9d2..2c361c8dad4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deleteSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts index b8cf5949eed..da44ced507e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts index a000ef2b4b1..9da306f14a9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts index c126f868b3a..c1389c23da5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts index 8005a91782e..d2d2e11439a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts index 390c8b29837..e51025efeaf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts index 8c64cb10777..271dd56a03a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts index e768fbb80c6..43d69ee4691 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts index 28b8a7795ad..691150f4d6b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts index ddfeb7efc4a..85cbbd5ce3f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts index 53692d1f2bc..0955ed53001 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts index 470d3344098..8cb89434077 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts index 5971444a1c1..c8304c9c6af 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts index c47c2d400b3..e15d31e6f1e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts index d7f2ad88809..3f20b599377 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts index e9b672cdac1..667cd89e059 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts index e96d9d79ff7..9b1685e557a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts index 2bb30b6fa3b..abab41a1765 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts index e445a10b9db..0f6b2f9089d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts index 968f8ffa3a0..cdd424d3861 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts index d9344309eea..121dc3577cd 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts index cd952cd72a7..2ffb88f2541 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancel" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts index 31971565a3c..54ee1fb1625 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts index a492ce9f95d..266759ba60d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts index 11cdff84051..7a7692db51d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts index af072eb19e7..76f13dfcba5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revoke" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts index fa409453d53..1c2e257586d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensUnwrapped" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts index fc620668141..476e907ad6d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWrapped" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts index 3299d46f932..1ea0195f972 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts index d4d1cac88b2..c8d50c84091 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts index a5629461f55..4b768cdca11 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getWrappedContents" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts index 2bb30b6fa3b..abab41a1765 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts index e445a10b9db..0f6b2f9089d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts index 968f8ffa3a0..cdd424d3861 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts index 51d6ee7eb4c..1b88232e138 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts index ea7207513cf..2ea813d8f3f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "unwrap" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts index 00ddc11ce19..03582322e9c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "wrap" function. diff --git a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts index 8e80e46a8a4..6c8ce5a86d9 100644 --- a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts index 14b6db87730..c833872cbc4 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x9cfd7cff" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts index 4a0f71b90f5..7225170e831 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isModuleInstalled" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts index adc179df2a8..88b6b0b11aa 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isValidSignature" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts index 40d1c3a2dbb..7778eae8bee 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsExecutionMode" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts index 61d1e156108..b31d7ab4910 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts index e1f33cae5cf..5a7c9b02cd4 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts index 427537a9640..dcc7750443a 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "executeFromExecutor" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts index fc3fb205dc1..9431c3d7dcf 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "installModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts index d9b1094c612..5cf2425dcac 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uninstallModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts index 93c168c64f5..bd823de97a1 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts index 895b9c0faf5..ee84303fd0b 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts index 5f54e325971..bbf45d7fb41 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts index 2125755adc1..f31566f4716 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa65d69d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts index c8adcafff58..180f8da52fc 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAddress" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts index 2c9986eebf5..99a48c2f09d 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x5c60da1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts index 076e831d264..3323ac7ce15 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts index f3fb0db94fc..3c7faad0ce7 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addStake" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts index 9edabb0aaf8..e499f3b0187 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAccountWithModules" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts index 0fa112c28e3..5798a31905c 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts index a3049c9517e..21c03f6f32a 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts index b2443506421..c3601ab471b 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts index cd9ae09f1db..632ee9f2fce 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "upgradeTo" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts index c995e626bdb..4a20c5590f8 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts index 0cad89d40fb..a8e5011d893 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawStake" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts index 0e275711fcc..8d5f1a700d2 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Executed" event. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts index 36d4e243abf..93310f4dc59 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SessionCreated" event. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts index 9ed2c26e1bf..a8020aabb12 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts index 4a44f5a3fd1..3566c481b00 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getCallPoliciesForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts index a5a81370ba3..9c789a7cfff 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getSessionExpirationForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts index 3e948ef623e..ea93606d2d6 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getSessionStateForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts index a97dfb80636..a1763951ba8 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTransferPoliciesForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts index f653921de04..3287eb5fbd0 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isWildcardSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts index fc57af91cb6..f78b186f2cf 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createSessionWithSig" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts index 98988776faa..81b1df259d6 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts index 92ecb549276..808b3854139 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "executeWithSig" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts index ab6c007dacf..31bb53a4e44 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts index b27d76ee6e0..7ead96b0c37 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts index f31cabf823b..52d7a381538 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts index 8931d97823a..06c46b0a455 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "register" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts index 4a3345eef0f..2c959f33f59 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x6a5306a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts index 011085f6144..af26e126344 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts index f31cabf823b..52d7a381538 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts index 7a97f33ba5e..5bb15a70f8d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4ec77b45" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts index 837c7aef13b..9be06cdbe1e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "register" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts index 3d76100bc0c..dfc90dfd636 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "registerFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts index 607bdffbbda..514c3444a8e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AdminReset" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts index a3d94326af6..655c8354855 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ChangeRecoveryAddress" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts index 653946dc4b1..a646e6f7252 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Recover" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts index 540ee67b971..43d1195a0c1 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Register" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts index ef1ff29a359..e5e708c2290 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts index 8cf023ced5f..e92335890f0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd5bac7f3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts index 16234140459..cd9b402fa7a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xea2bbb83" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts index f968b97b123..cb54955823e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x00bf26f4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts index 05486ae0fd0..dd5e0800b68 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "custodyOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts index b1633b0da23..60f0638f844 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts index 4670417928c..86c34619ada 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xeb08ab28" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts index ab6c007dacf..31bb53a4e44 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts index 0f502bcf8dc..aa4fbda61f2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "idOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts index 1ae91834a6d..a790ee0cf7d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "recoveryOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts index 41d18969b31..3b1472b3eab 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyFidSignature" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts index d0ede787469..bda18636266 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "changeRecoveryAddress" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts index 26fb6c23633..60bc5bc9fc7 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "changeRecoveryAddressFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts index 5bcd4720a76..8831467efb6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "recover" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts index ef075116489..af489197a44 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "recoverFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts index f4d9fc76753..326c6c3ab43 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts index 04517684834..2bbdcece210 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferAndChangeRecovery" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts index d929c6a300f..f254cef9caf 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferAndChangeRecoveryFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts index eb7d9656e9c..d4499dad613 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts index 978192092e2..c4ac42ba8be 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xab583c1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts index e9d4f945ce6..32289cc6879 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x086b5198" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts index df21d367979..57aad7f4608 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts index 269045165c3..2e72ed2db94 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "add" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts index a7e48e33e51..ab6001559a8 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts index 9d3ca5cb0dc..82c9fe8a6e9 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Add" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts index f42650a0de3..4ddf953a99a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AdminReset" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts index c1a085d0e4b..76876634bc2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Remove" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts index ff5dd13852a..c3ce52a2acc 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb5775561" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts index b1633b0da23..60f0638f844 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts index 011085f6144..af26e126344 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts index 22e35d301e5..c603ca366d6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "keyAt" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts index 4c55c831e17..3ec2a78a3f8 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "keyDataOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts index b27d76ee6e0..7ead96b0c37 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts index 27051d256c2..47e7e10c438 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "keysOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts index 2ba35c2da2e..fe3c07d5561 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe33acf38" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts index 57e35d5745f..70f25124341 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "totalKeys" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts index 69300b70490..96d8096c9d7 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "remove" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts index 206f94866d5..9f9ca5ec955 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "removeFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts index a14b1157781..2804abcbb62 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x2c39d670" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts index 6b44251b8fd..95f61c0b3b5 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06517a29" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts index e344e5323c0..b269ae251b3 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts index 467003b92d2..251d0af30af 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x2751c4fd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts index cb8970c72f0..0ea65e49702 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe73faa2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts index 6d9acff24e6..051a7d5075d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x40df0ba0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts index b8c9defb67d..7fe28d59ed6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "batchRent" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts index a419f7a3bb4..83175b73a06 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "rent" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts index 3fea9d326f2..7727e542752 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowData" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts index fdc73f35d45..790321c4822 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowTimestamp" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts index 1410fcebc23..8ad5fa2669a 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowTokenId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts index b77f53ea762..32715c1467b 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x7829ae4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts index f9b1d1a50ea..9d41e05d6ec 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowerProfileId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts index d22da8e12f8..5eb6814b734 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getOriginalFollowTimestamp" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts index 0166e59c268..101623902a7 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getProfileIdAllowedToRecover" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts index fd3d19d6825..6856b518944 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isFollowing" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts index 75ead7399a6..1631c257613 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTimestampOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts index 9d953c3622d..b30d2e0f539 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getHandle" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts index eac910c2726..de298f22a2d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x35eb3cb9" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts index 7b1e7dc38df..099379d9c7a 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getLocalName" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts index b0895520653..e2e95574a6d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTokenId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts index 03b45d787ff..cc5518032e3 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exists" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts index 3aca1b317c2..114e9c70f25 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getContentURI" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts index 75ebeb39950..849132cce2d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getProfile" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts index 727f85cacaf..378495f5b5e 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getProfileIdByHandleHash" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts index 732495fd266..940c42b7539 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublication" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts index 75ead7399a6..1631c257613 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTimestampOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts index b75ca15c1c7..87a92d9f86e 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts index 365d29d6da7..ce9edc4470c 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenDataOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts index 4c82ead0f23..3e5b2b4e859 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getModuleTypes" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts index f8e495a9b44..65cd261d708 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isErc20CurrencyRegistered" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts index 6edc467ade5..0676878e575 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isModuleRegistered" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts index f7bd65da099..6c94f98c632 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isModuleRegisteredAs" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts index e980545f042..c7a8d1aaa1b 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getDefaultHandle" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts index 2bde91042d0..2137f95a805 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts index 84b8abe8f34..3c9809bd374 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "resolve" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts index 65a62931636..3bfc6a92603 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "BuyerApprovedForListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts index 25f7aab04ee..46d14a1b078 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CancelledListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts index 983ca3c8c4d..127a498ddaf 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CurrencyApprovedForListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts index 7dcc74cbb31..23f46addfec 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts index 664e583308f..4ea1ff93b92 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewSale" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts index cd946280f87..f33e4de028d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UpdatedListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts index e6f15c2059e..e4db3be77d7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "currencyPriceForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts index ccef2b4d391..734378136b7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllListings" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts index ce20b1c10a3..2b829550285 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllValidListings" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts index 877c774ef0a..3002d389ef2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts index 647f507c31f..9bcfe71cbf1 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isBuyerApprovedForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts index 19748a64418..6351c37f548 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isCurrencyApprovedForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts index 742169f4f44..b8d0b72e56a 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc78b616c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts index ea518f185d6..be8ce99cf58 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approveBuyerForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts index 6e37f564067..ca45650bb17 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approveCurrencyForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts index 8287263a1ba..d695f899c51 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "buyFromListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts index 2c791b9f01e..504776da5b0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts index 1edc7ce9143..49303739da5 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts index 5af616b8e02..e484d216997 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts index ef8c6ff4409..b15d763c5af 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AuctionClosed" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts index aafa0ed4b28..930e0f2aa44 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CancelledAuction" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts index 612c8dae2a4..dd69261100a 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewAuction" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts index d63d49db766..27f25f28508 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewBid" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts index 5bf0ddba132..dd88bdc4fbb 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllAuctions" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts index 2a78e300971..77c5116f129 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllValidAuctions" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts index 0e617b97e15..036617fbd7b 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts index 941d302bdc2..9546e3db173 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getWinningBid" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts index b6063ca7b31..11c8eab2430 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isAuctionExpired" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts index 09096df9c54..aea27839d1d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isNewWinningBid" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts index 6a9174b4a20..0610fda8156 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x16002f4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts index e629d8e71bf..942bb17d0c2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "bidInAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts index 51df278132e..846aded52d0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts index 4d65a231619..8004652acac 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "collectAuctionPayout" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts index 21a99f91025..864aab2e45f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "collectAuctionTokens" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts index 378f42640a8..e48106af277 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts index 62842341a63..37e97c246e0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AuctionClosed" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts index 5177b264957..7fe12ca837f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ListingAdded" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts index 5ca6b7e42ea..2233c856fc7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ListingRemoved" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts index 9de7381fbe8..5a9f20825a0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ListingUpdated" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts index 4efda0af611..b033e92129f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts index da59581ce1c..c5d506f7736 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewSale" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts index d32fc97edec..ec779ad8e7d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts index 1cf532447a5..75061f26982 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts index 63421151241..ca512450a4f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts index 3b2d58a96e6..cd44865ea62 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts index acfdf87abf0..a7f71ea7315 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts index 406594839e2..387aed05883 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "acceptOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts index 36f0a65a4de..97a608d0a86 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "buy" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts index 277b56ec199..16205373cf0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelDirectListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts index 3c83c671942..f44a7290903 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "closeAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts index 136cc238a5b..a117cfa8e94 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts index 6a8e9874143..f4e8ccdcf4f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "offer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts index f156ccd65cc..8c2125dcf6f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts index bfc107d5e07..f65d00c8a21 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts index d1d0a1fb924..cf7822145e7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts index fd42fcb8462..611ab797190 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AcceptedOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts index c47bf357bc6..44708d6932b 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CancelledOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts index a0ce2707f11..839757be049 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts index eaaf99cd4b2..9d96cf8d183 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllOffers" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts index 6fabcc41063..d3b4a4df5cd 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllValidOffers" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts index 72dfeaac9f3..8004b2e251d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts index a9656ff8634..4de665a1cb5 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa9fd8ed1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts index 65873d8a1cd..a055869c958 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "acceptOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts index 150f01298a0..449475eae93 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts index e8aa04508aa..b57181f8d69 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "makeOffer" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts index b015f39ef05..70b5e739f97 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts index 388e295db59..cb8daa93fac 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts index 8f55369e551..5a193fd2cb0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIndex" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts index 2685b177c57..ca806668ee7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMetadataBatch" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts index 82ed8f80c64..cf036b86757 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts index 5c43264fbea..7d42f61ef90 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setBaseURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts index ec8a31184f5..3e18197cdbc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uploadMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts index 79e6a9a81a1..8fc04c50266 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts index c96956e1a57..ef821c8a2d7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts index c3b480fde67..f6004039b01 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIndex" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts index b2969c59369..89701986e36 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMetadataBatch" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts index 090faeb17bd..315f110f39a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts index b7de260d3fb..511924b2dcf 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setBaseURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts index c3d03933622..074b04bbfc1 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uploadMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts index 463ec07137f..51850c27a6b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts index f4173458bf5..37ecb3a29ec 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionByTokenId" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts index e4432a6b319..ca8d248d475 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts index f14d386e81d..f9ed45eafa0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditionByTokenId" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts index 6f1c196e033..de6de1fac6f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts index df40a231efe..4f07605a11f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC20"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts index 552b801b09f..88f1fa11af0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts index b9cc3df2f69..d77a83b90b3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts index 1f56dc88385..68acc8f5564 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimCondition" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts index 0ae7c9416fa..8f35e243b55 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts index f7671768943..03a615c3f62 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts index 12ccf64b64b..7040ddc3643 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts index aa68a4fcc99..4be195f871d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts index 1916f16a819..b4e0bba598b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimCondition" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts index 320e7f3fc26..0086cabc826 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts index 4347bf539f2..286199fdb6d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts index 2b4513d6448..75422b16100 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts index 7210063aa4f..ad1b67dbc55 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts index abd149cce03..62821e2d4fc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts index e858f58eda6..67b1b0cfbe1 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts index 88d061e454e..a380e4ee56f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts index 5c229e704ea..a5540effcfc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts index 97b628a53e9..98d9e06e4d4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts index bd7a10125ee..00be5232ce5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts index e3bdcea619c..f0e404d832b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts index 3db732e674d..c176139c21c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts index 96a62ec9124..4b4f3ae9b43 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts index e4d21b1a160..00b3b74bad7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts index a96d9ebb14a..c3e63b2ed21 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3e429396" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts index c1681500575..719f3b0ae6a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xf147db8a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts index fa9b1189c8b..1ae6424e1b4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts index 4969e47a4d8..983aead308b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "installModule" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts index 61c0fdadf8a..f8887d33005 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uninstallModule" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts index 583fd6ddfca..f1360d0e902 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts index 8a00c16b35b..6371f09be45 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts index 96b5a1cfc91..673d7cc1ebf 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts index 85c77d5d648..b81647b202d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts index dc9f9ab39d2..eb9899c1979 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts index cbc2b5518b4..7a9aebc778c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC20"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts index 6a206e95b48..64b25a5b2f0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts index 813ce6bf686..cbe052bf6ee 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts index bca6f2ecc50..ca998dd2c29 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewMetadataBatch" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts index d45e4be6fdb..9b60229de6b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts index 2d30cd0f209..f87c6bd5c9c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts index 8a51cb58b75..2b74aa58d07 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts index dc0d78919c8..616dc92e9b5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts index 434b96cba6d..5dc96770798 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onTokenURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts index 193bcfbd117..7e3187f8f91 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts index 594a00bc44e..bc9687f3f35 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts index 839f211331f..b1a9f4ee776 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts index 4286731b82b..c951a7071ba 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts index 2bcc4cedde4..82b3d8935da 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts index dea971cb572..b838128393f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts index 335e037490b..d9d0e18c144 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts index d4c93faaee3..94949dba052 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts index 8b6d28bd88b..10e84ec3171 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts index 641093af58b..0079ccfea7e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts index 5508806b5ba..603d57d63fc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts index 579a95dbd4d..84cd06bad6e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts index 2af22dfc131..aa00ee8e415 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts index 5371c300c7b..28fa4ef4566 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts index 60fcc3934d3..eb705776b19 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts index e368991836c..fd1aab1c092 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts index c83e3816cd0..61079b5f6b9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts index 49e70615071..c02c49a5685 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts index d6fafd15514..25bc5945a14 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts index 55474d84b50..f90f117f6e3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts index 1d4d87e46ac..b7717a9d368 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts index 79bb9aec7ea..161877a044f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts index 8b601553e0b..106c526e719 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts index a7b0ebc0442..79049e5fc58 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts index ad1025f8f57..218f32e8641 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts index c5cfefd1ad5..a8f3c6855f9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts index c7776d8cbc7..561504fb0fe 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts index 15fe07599be..e41fc809383 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts index 4dc18b1a4f5..2294f18888e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferValidator" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts index ea24b039f7e..4051647d5cc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts index 27058bede4e..75761816d99 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts index 92685502b97..7061f2b4f41 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts index ca55810873a..10575fe9af2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts index f79ff81f875..6718ff82997 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts index 22b0333750f..8e50ecc5c12 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts index ec803676f9d..a4c7f3198e9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts index e447e4c2be9..521ca3e83a4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts index 8219fe7e4ec..db307f59b19 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts index af6575c161d..cd56610879a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts index d10219f94dd..10ec0919cb2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferValidator" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts index 83455e9a96e..ce28b48f975 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "SequentialTokenIdERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts index a2376d3f38d..4750da4f484 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts index bd993363080..5f09bcb32ac 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcaa0f92a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts index 80e4d1c6822..698a143391c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateTokenIdERC1155" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts index a96c96e2a66..5fe0ab63e3a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts index 6b6d99356cf..5e91dbb0878 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts index a53d04b1e66..9c3942e30e3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts index 13c899ba0ff..586ec8163af 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts index 658168b007a..fc521da4fc5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts index 33d073e5146..f2282b92fe8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts index 62ccbd551ab..03a1c407723 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts index 31bf410891a..370d8312c2e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts index ea99e6e9ed5..893845f2478 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts index 63cd4991a5c..b075bc48f49 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts index 6e17d1c53f7..bf376a7ff49 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts index 19244f93174..d15e0f67619 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts index d2a0815cea8..7ce195f07a7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts index 5309665361d..6c553cf6db0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts index 068266a1a84..27bb4135660 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts index 40d8ddd6ef6..af544c422c1 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3e64a696" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts index 149778a72e6..3884c555518 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBlockHash" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts index 102576e9ad6..c14e8ec22b4 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x42cbb15c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts index 36156b6e686..13081555936 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3408e470" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts index 2c9ba726c35..7f20ac5749c 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa8b0574e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts index 72335a2f8bd..38a3806a0cc 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x72425d9d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts index c65e5fd7676..7ce8741e849 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x86d516e8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts index d7caca01726..02daf1735db 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0f28c97d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts index a224c0653b4..30dca5d1fba 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getEthBalance" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts index 27acbf25bc9..f1a2b78e80e 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x27e86d6e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts index f4bb620df36..f8dd64f3895 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "aggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts index 464c8e5b855..d93589faf77 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "aggregate3" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts index 2a6f5834e5b..c08826f923c 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "aggregate3Value" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts index 1e1d4317881..aaad8b8ba9d 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "blockAndAggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts index d0312ddc01b..2e262064045 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tryAggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts index 4a42356cc17..148eb873fc5 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tryBlockAndAggregate" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts index fb2cb5db660..85a8404f8e8 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackCreated" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts index d06bdadda34..34e6efaa1fe 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpened" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts index 4a6762257e9..5858c8f0520 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackUpdated" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts index b8febd5014e..8f713d143a3 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "canUpdatePack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts index 92a417a3bc1..233d0176ef1 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPackContents" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts index cce2b6390db..63551a691f3 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTokenCountOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts index 5649dc09864..6d3292d8791 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTokenOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts index 3cc26fb50f9..9991755461f 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getUriOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts index 5bb0727f223..25f164cd723 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addPackContents" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts index 9462d48da72..b73f6efe6e4 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts index 4749b3478e2..cb086aedfcd 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index 36bd14d6965..dc0b6ac9be2 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpenRequested" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index 7f1745fa2ba..dac830eb692 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackRandomnessFulfilled" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts index 895c70d6748..cac29e8419e 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "canClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts index 92ab7a14f6b..381d4d1006c 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index 09875c2f1c9..bc954a62d72 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts index 18c40077c0d..01a5c361ce1 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleAdminChanged" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts index 7ac136a340d..91f566246e0 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleGranted" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts index d148578d3dc..91fcab84e65 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleRevoked" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts index 6a5295c7316..142c73b479c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleAdmin" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts index 5a856d38561..44c5782708b 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts index d09f70d7b0c..d1a4941ec7c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts index e6c933291cc..c6e5e3be592 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts index f6473a76bc6..114846fcd0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts index 18c40077c0d..01a5c361ce1 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleAdminChanged" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts index 7ac136a340d..91f566246e0 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleGranted" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts index d148578d3dc..91fcab84e65 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleRevoked" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts index 6a5295c7316..142c73b479c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleAdmin" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts index c4b0f166724..c1eed901f0f 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleMember" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts index 9d0f2a60f83..d6255b64f06 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleMemberCount" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts index 5a856d38561..44c5782708b 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts index d09f70d7b0c..d1a4941ec7c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts index e6c933291cc..c6e5e3be592 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts index f6473a76bc6..114846fcd0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRole" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts index f4e95dad1f3..c4c449c8056 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts index 1f3ab9ddf7c..9fccd394f82 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts index f4e95dad1f3..c4c449c8056 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts index 36d6778ae8b..926c5ad6b8c 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts index 1a8f813bbf9..b5c91d37dd1 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts index 69ec28d0568..dd971b7f2f4 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts index a8d1282e07e..898c849c688 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts index 5e0ef5d1300..8159cb1cf0d 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts index 0008f7a2b87..68d91821e86 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts index f4e95dad1f3..c4c449c8056 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts index 66d5fa8b114..2ce2e181c53 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts index beb7ac88958..78ca9f193c6 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "payee" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts index 3a1d7c9f2da..ca0a1d2018b 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x00dbe109" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts index 11791d48753..5b08e87a951 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "releasable" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts index 3aad9d307fd..6e4946af5fd 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "released" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts index ccd5d4f0ea3..b8a0402e720 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "shares" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts index f83e68fedbb..ee0ae7881a6 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe33b7de3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts index e36396a24c7..878318ebe64 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3a98ef39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts index ae168c8df86..10c3a66ef3a 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts index cb941c153cb..b3bd48606b0 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "release" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts index 746fafde3a0..ac53dea215b 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "codehashVersion" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts index b1b723248c0..1fb37500877 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "activateProgram" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts index ec91e868b68..619043655dc 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts index 5a6d44c65ae..76b4a890529 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deploy" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts index ec59487b8e8..46f16ea3875 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x094ec830" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts index 5914590d189..0432d51a0f9 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setAppURI" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts index fdbd658fb2b..bc0db42d912 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ProxyDeployed" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts index d2cf5087ba9..ecf298f13a1 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ProxyDeployedV2" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts index 4f3054fa23b..c7eee5a47d3 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deployProxyByImplementation" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts index 9c38e1b77be..6918e6fc719 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deployProxyByImplementationV2" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts index cb592fe7e78..a7581368a99 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ContractPublished" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts index daacec8d2fa..3fdc9a44132 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ContractUnpublished" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts index a27c7ed8a50..952bbb39f58 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PublisherProfileUpdated" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts index 160d991507d..3ebf22f4d5a 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllPublishedContracts" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts index aa118da5ec4..f75744abb19 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublishedContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts index da7579bee87..40b31842870 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublishedContractVersions" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts index ec4c61cd8a2..e8506e61a6d 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublishedUriFromCompilerUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts index 2fcb86f7d42..98a7af736c7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublisherProfileUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts index 6a3349b0b27..27b37ddbe45 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "publishContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts index 6e3e25a8f16..ed3e71f44a2 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPublisherProfileUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts index 0f2780e8a7b..5c5b15fdc91 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "unpublishContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts index 703bd2203fb..104a865aaff 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RuleCreated" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts index 07b59b32352..67e1736ab9b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RuleDeleted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts index cc1ff027a80..03a28920054 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RulesEngineOverriden" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts index cf01e006e62..a89a1d00220 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x1184aef2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts index 895aa7bf039..f374d148564 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa7145eb4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts index 362f6ed7cc6..5e5b14f615f 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getScore" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts index ef265952561..8f2dde241dd 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createRuleMultiplicative" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts index db7aa40753e..846a085d5b5 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createRuleThreshold" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts index bef08963aab..605a10a3feb 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deleteRule" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts index 99d7900505b..704af13404f 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRulesEngineOverride" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts index d3b9ed5fec4..06a90ad62ff 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RequestExecuted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts index e1e39e5fcc0..fde6a54b1a7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts index 79327e01306..db4ca066a73 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts index 19a26f8c345..40dd0fc17f8 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Added" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts index 63fdd50ba9b..66fb7bdc924 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Deleted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts index 8f0bbfd54ba..546a25e9dc1 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "count" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts index 2a07856178b..43d29ec079f 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAll" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts index 0a568674e5e..b51c3652736 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMetadataUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts index e111407965b..1de66810ea7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "add" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts index 29b6635f75e..58b3d8ee112 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "remove" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts index 0a11a4eda0d..e05dc87b740 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts index ff69d4ffd6b..23912c3e211 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts index 3b6693d9579..9dcc8a6a8fa 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts index 0ba92ee95f7..73284334c06 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts new file mode 100644 index 00000000000..8e229e17a20 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "Approval" event. + */ +export type ApprovalEventFilters = Partial<{ + owner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "owner"; + indexed: true; + }>; + spender: AbiParameterToPrimitiveType<{ + type: "address"; + name: "spender"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the Approval event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { approvalEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * approvalEvent({ + * owner: ..., + * spender: ..., + * }) + * ], + * }); + * ``` + */ +export function approvalEvent(filters: ApprovalEventFilters = {}) { + return prepareEvent({ + signature: + "event Approval(address indexed owner, address indexed spender, uint256 amount)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/ContractURIUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/ContractURIUpdated.ts new file mode 100644 index 00000000000..7bfbc0c16fc --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/ContractURIUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the ContractURIUpdated event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { contractURIUpdatedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * contractURIUpdatedEvent() + * ], + * }); + * ``` + */ +export function contractURIUpdatedEvent() { + return prepareEvent({ + signature: "event ContractURIUpdated()", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Initialized.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Initialized.ts new file mode 100644 index 00000000000..1061653b3d4 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Initialized.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the Initialized event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { initializedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * initializedEvent() + * ], + * }); + * ``` + */ +export function initializedEvent() { + return prepareEvent({ + signature: "event Initialized(uint64 version)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts new file mode 100644 index 00000000000..45010946b7e --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverCanceled" event. + */ +export type OwnershipHandoverCanceledEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverCanceled event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverCanceledEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverCanceledEvent( + filters: OwnershipHandoverCanceledEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts new file mode 100644 index 00000000000..9e1813f4ebb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverRequested" event. + */ +export type OwnershipHandoverRequestedEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverRequested event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverRequestedEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverRequestedEvent( + filters: OwnershipHandoverRequestedEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts new file mode 100644 index 00000000000..1282b4f57e7 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipTransferred" event. + */ +export type OwnershipTransferredEventFilters = Partial<{ + oldOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "oldOwner"; + indexed: true; + }>; + newOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipTransferred event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipTransferredEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipTransferredEvent({ + * oldOwner: ..., + * newOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipTransferredEvent( + filters: OwnershipTransferredEventFilters = {}, +) { + return prepareEvent({ + signature: + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts new file mode 100644 index 00000000000..462e8e865e9 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "Transfer" event. + */ +export type TransferEventFilters = Partial<{ + from: AbiParameterToPrimitiveType<{ + type: "address"; + name: "from"; + indexed: true; + }>; + to: AbiParameterToPrimitiveType<{ + type: "address"; + name: "to"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the Transfer event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { transferEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * transferEvent({ + * from: ..., + * to: ..., + * }) + * ], + * }); + * ``` + */ +export function transferEvent(filters: TransferEventFilters = {}) { + return prepareEvent({ + signature: + "event Transfer(address indexed from, address indexed to, uint256 amount)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts new file mode 100644 index 00000000000..59f2776fea6 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x3644e515" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "bytes32", + name: "result", + }, +] as const; + +/** + * Checks if the `DOMAIN_SEPARATOR` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `DOMAIN_SEPARATOR` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isDOMAIN_SEPARATORSupported } from "thirdweb/extensions/tokens"; + * const supported = isDOMAIN_SEPARATORSupported(["0x..."]); + * ``` + */ +export function isDOMAIN_SEPARATORSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the DOMAIN_SEPARATOR function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeDOMAIN_SEPARATORResult } from "thirdweb/extensions/tokens"; + * const result = decodeDOMAIN_SEPARATORResultResult("..."); + * ``` + */ +export function decodeDOMAIN_SEPARATORResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "DOMAIN_SEPARATOR" function on the contract. + * @param options - The options for the DOMAIN_SEPARATOR function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { DOMAIN_SEPARATOR } from "thirdweb/extensions/tokens"; + * + * const result = await DOMAIN_SEPARATOR({ + * contract, + * }); + * + * ``` + */ +export async function DOMAIN_SEPARATOR(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts new file mode 100644 index 00000000000..1dbe7fcecb8 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts @@ -0,0 +1,134 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "allowance" function. + */ +export type AllowanceParams = { + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + spender: AbiParameterToPrimitiveType<{ type: "address"; name: "spender" }>; +}; + +export const FN_SELECTOR = "0xdd62ed3e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, + { + type: "address", + name: "spender", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `allowance` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `allowance` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isAllowanceSupported } from "thirdweb/extensions/tokens"; + * const supported = isAllowanceSupported(["0x..."]); + * ``` + */ +export function isAllowanceSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "allowance" function. + * @param options - The options for the allowance function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeAllowanceParams } from "thirdweb/extensions/tokens"; + * const result = encodeAllowanceParams({ + * owner: ..., + * spender: ..., + * }); + * ``` + */ +export function encodeAllowanceParams(options: AllowanceParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner, options.spender]); +} + +/** + * Encodes the "allowance" function into a Hex string with its parameters. + * @param options - The options for the allowance function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeAllowance } from "thirdweb/extensions/tokens"; + * const result = encodeAllowance({ + * owner: ..., + * spender: ..., + * }); + * ``` + */ +export function encodeAllowance(options: AllowanceParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeAllowanceParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the allowance function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeAllowanceResult } from "thirdweb/extensions/tokens"; + * const result = decodeAllowanceResultResult("..."); + * ``` + */ +export function decodeAllowanceResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "allowance" function on the contract. + * @param options - The options for the allowance function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { allowance } from "thirdweb/extensions/tokens"; + * + * const result = await allowance({ + * contract, + * owner: ..., + * spender: ..., + * }); + * + * ``` + */ +export async function allowance( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.owner, options.spender], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts new file mode 100644 index 00000000000..22e5af63920 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts @@ -0,0 +1,126 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "balanceOf" function. + */ +export type BalanceOfParams = { + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; +}; + +export const FN_SELECTOR = "0x70a08231" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `balanceOf` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `balanceOf` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isBalanceOfSupported } from "thirdweb/extensions/tokens"; + * const supported = isBalanceOfSupported(["0x..."]); + * ``` + */ +export function isBalanceOfSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "balanceOf" function. + * @param options - The options for the balanceOf function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeBalanceOfParams } from "thirdweb/extensions/tokens"; + * const result = encodeBalanceOfParams({ + * owner: ..., + * }); + * ``` + */ +export function encodeBalanceOfParams(options: BalanceOfParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner]); +} + +/** + * Encodes the "balanceOf" function into a Hex string with its parameters. + * @param options - The options for the balanceOf function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeBalanceOf } from "thirdweb/extensions/tokens"; + * const result = encodeBalanceOf({ + * owner: ..., + * }); + * ``` + */ +export function encodeBalanceOf(options: BalanceOfParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeBalanceOfParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the balanceOf function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeBalanceOfResult } from "thirdweb/extensions/tokens"; + * const result = decodeBalanceOfResultResult("..."); + * ``` + */ +export function decodeBalanceOfResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "balanceOf" function on the contract. + * @param options - The options for the balanceOf function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { balanceOf } from "thirdweb/extensions/tokens"; + * + * const result = await balanceOf({ + * contract, + * owner: ..., + * }); + * + * ``` + */ +export async function balanceOf( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.owner], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts new file mode 100644 index 00000000000..1db8273dc7a --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xe8a3d485" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "string", + }, +] as const; + +/** + * Checks if the `contractURI` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `contractURI` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isContractURISupported } from "thirdweb/extensions/tokens"; + * const supported = isContractURISupported(["0x..."]); + * ``` + */ +export function isContractURISupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the contractURI function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeContractURIResult } from "thirdweb/extensions/tokens"; + * const result = decodeContractURIResultResult("..."); + * ``` + */ +export function decodeContractURIResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "contractURI" function on the contract. + * @param options - The options for the contractURI function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { contractURI } from "thirdweb/extensions/tokens"; + * + * const result = await contractURI({ + * contract, + * }); + * + * ``` + */ +export async function contractURI(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts new file mode 100644 index 00000000000..1d4174d9267 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x313ce567" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "uint8", + }, +] as const; + +/** + * Checks if the `decimals` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `decimals` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isDecimalsSupported } from "thirdweb/extensions/tokens"; + * const supported = isDecimalsSupported(["0x..."]); + * ``` + */ +export function isDecimalsSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the decimals function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeDecimalsResult } from "thirdweb/extensions/tokens"; + * const result = decodeDecimalsResultResult("..."); + * ``` + */ +export function decodeDecimalsResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "decimals" function on the contract. + * @param options - The options for the decimals function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { decimals } from "thirdweb/extensions/tokens"; + * + * const result = await decimals({ + * contract, + * }); + * + * ``` + */ +export async function decimals(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts new file mode 100644 index 00000000000..5b84e14dc8f --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x06fdde03" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "string", + }, +] as const; + +/** + * Checks if the `name` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `name` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isNameSupported } from "thirdweb/extensions/tokens"; + * const supported = isNameSupported(["0x..."]); + * ``` + */ +export function isNameSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the name function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeNameResult } from "thirdweb/extensions/tokens"; + * const result = decodeNameResultResult("..."); + * ``` + */ +export function decodeNameResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "name" function on the contract. + * @param options - The options for the name function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { name } from "thirdweb/extensions/tokens"; + * + * const result = await name({ + * contract, + * }); + * + * ``` + */ +export async function name(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts new file mode 100644 index 00000000000..8c96e3b7a05 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts @@ -0,0 +1,122 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "nonces" function. + */ +export type NoncesParams = { + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; +}; + +export const FN_SELECTOR = "0x7ecebe00" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `nonces` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `nonces` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isNoncesSupported } from "thirdweb/extensions/tokens"; + * const supported = isNoncesSupported(["0x..."]); + * ``` + */ +export function isNoncesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "nonces" function. + * @param options - The options for the nonces function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeNoncesParams } from "thirdweb/extensions/tokens"; + * const result = encodeNoncesParams({ + * owner: ..., + * }); + * ``` + */ +export function encodeNoncesParams(options: NoncesParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner]); +} + +/** + * Encodes the "nonces" function into a Hex string with its parameters. + * @param options - The options for the nonces function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeNonces } from "thirdweb/extensions/tokens"; + * const result = encodeNonces({ + * owner: ..., + * }); + * ``` + */ +export function encodeNonces(options: NoncesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeNoncesParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the nonces function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeNoncesResult } from "thirdweb/extensions/tokens"; + * const result = decodeNoncesResultResult("..."); + * ``` + */ +export function decodeNoncesResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "nonces" function on the contract. + * @param options - The options for the nonces function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { nonces } from "thirdweb/extensions/tokens"; + * + * const result = await nonces({ + * contract, + * owner: ..., + * }); + * + * ``` + */ +export async function nonces(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.owner], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts new file mode 100644 index 00000000000..69277ccf299 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x8da5cb5b" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "result", + }, +] as const; + +/** + * Checks if the `owner` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `owner` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isOwnerSupported } from "thirdweb/extensions/tokens"; + * const supported = isOwnerSupported(["0x..."]); + * ``` + */ +export function isOwnerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the owner function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeOwnerResult } from "thirdweb/extensions/tokens"; + * const result = decodeOwnerResultResult("..."); + * ``` + */ +export function decodeOwnerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "owner" function on the contract. + * @param options - The options for the owner function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { owner } from "thirdweb/extensions/tokens"; + * + * const result = await owner({ + * contract, + * }); + * + * ``` + */ +export async function owner(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts new file mode 100644 index 00000000000..477cc34c0eb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts @@ -0,0 +1,135 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "ownershipHandoverExpiresAt" function. + */ +export type OwnershipHandoverExpiresAtParams = { + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}; + +export const FN_SELECTOR = "0xfee81cf4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/tokens"; + * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); + * ``` + */ +export function isOwnershipHandoverExpiresAtSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "ownershipHandoverExpiresAt" function. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/tokens"; + * const result = encodeOwnershipHandoverExpiresAtParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAtParams( + options: OwnershipHandoverExpiresAtParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/tokens"; + * const result = encodeOwnershipHandoverExpiresAt({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAt( + options: OwnershipHandoverExpiresAtParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeOwnershipHandoverExpiresAtParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the ownershipHandoverExpiresAt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/tokens"; + * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); + * ``` + */ +export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ownershipHandoverExpiresAt" function on the contract. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/tokens"; + * + * const result = await ownershipHandoverExpiresAt({ + * contract, + * pendingOwner: ..., + * }); + * + * ``` + */ +export async function ownershipHandoverExpiresAt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.pendingOwner], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts new file mode 100644 index 00000000000..93967631efb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts @@ -0,0 +1,130 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "supportsInterface" function. + */ +export type SupportsInterfaceParams = { + interfaceId: AbiParameterToPrimitiveType<{ + type: "bytes4"; + name: "interfaceId"; + }>; +}; + +export const FN_SELECTOR = "0x01ffc9a7" as const; +const FN_INPUTS = [ + { + type: "bytes4", + name: "interfaceId", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `supportsInterface` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `supportsInterface` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSupportsInterfaceSupported } from "thirdweb/extensions/tokens"; + * const supported = isSupportsInterfaceSupported(["0x..."]); + * ``` + */ +export function isSupportsInterfaceSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "supportsInterface" function. + * @param options - The options for the supportsInterface function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeSupportsInterfaceParams } from "thirdweb/extensions/tokens"; + * const result = encodeSupportsInterfaceParams({ + * interfaceId: ..., + * }); + * ``` + */ +export function encodeSupportsInterfaceParams( + options: SupportsInterfaceParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.interfaceId]); +} + +/** + * Encodes the "supportsInterface" function into a Hex string with its parameters. + * @param options - The options for the supportsInterface function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeSupportsInterface } from "thirdweb/extensions/tokens"; + * const result = encodeSupportsInterface({ + * interfaceId: ..., + * }); + * ``` + */ +export function encodeSupportsInterface(options: SupportsInterfaceParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSupportsInterfaceParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the supportsInterface function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeSupportsInterfaceResult } from "thirdweb/extensions/tokens"; + * const result = decodeSupportsInterfaceResultResult("..."); + * ``` + */ +export function decodeSupportsInterfaceResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "supportsInterface" function on the contract. + * @param options - The options for the supportsInterface function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { supportsInterface } from "thirdweb/extensions/tokens"; + * + * const result = await supportsInterface({ + * contract, + * interfaceId: ..., + * }); + * + * ``` + */ +export async function supportsInterface( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.interfaceId], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts new file mode 100644 index 00000000000..27f629f4453 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x95d89b41" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "string", + }, +] as const; + +/** + * Checks if the `symbol` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `symbol` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSymbolSupported } from "thirdweb/extensions/tokens"; + * const supported = isSymbolSupported(["0x..."]); + * ``` + */ +export function isSymbolSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the symbol function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeSymbolResult } from "thirdweb/extensions/tokens"; + * const result = decodeSymbolResultResult("..."); + * ``` + */ +export function decodeSymbolResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "symbol" function on the contract. + * @param options - The options for the symbol function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { symbol } from "thirdweb/extensions/tokens"; + * + * const result = await symbol({ + * contract, + * }); + * + * ``` + */ +export async function symbol(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts new file mode 100644 index 00000000000..c7e751ca5b4 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x18160ddd" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `totalSupply` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `totalSupply` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isTotalSupplySupported } from "thirdweb/extensions/tokens"; + * const supported = isTotalSupplySupported(["0x..."]); + * ``` + */ +export function isTotalSupplySupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the totalSupply function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeTotalSupplyResult } from "thirdweb/extensions/tokens"; + * const result = decodeTotalSupplyResultResult("..."); + * ``` + */ +export function decodeTotalSupplyResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "totalSupply" function on the contract. + * @param options - The options for the totalSupply function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { totalSupply } from "thirdweb/extensions/tokens"; + * + * const result = await totalSupply({ + * contract, + * }); + * + * ``` + */ +export async function totalSupply(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts new file mode 100644 index 00000000000..7f611094f21 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts @@ -0,0 +1,149 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "approve" function. + */ +export type ApproveParams = WithOverrides<{ + spender: AbiParameterToPrimitiveType<{ type: "address"; name: "spender" }>; + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; +}>; + +export const FN_SELECTOR = "0x095ea7b3" as const; +const FN_INPUTS = [ + { + type: "address", + name: "spender", + }, + { + type: "uint256", + name: "amount", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `approve` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `approve` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isApproveSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isApproveSupported(["0x..."]); + * ``` + */ +export function isApproveSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "approve" function. + * @param options - The options for the approve function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeApproveParams } from "thirdweb/extensions/tokens"; + * const result = encodeApproveParams({ + * spender: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeApproveParams(options: ApproveParams) { + return encodeAbiParameters(FN_INPUTS, [options.spender, options.amount]); +} + +/** + * Encodes the "approve" function into a Hex string with its parameters. + * @param options - The options for the approve function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeApprove } from "thirdweb/extensions/tokens"; + * const result = encodeApprove({ + * spender: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeApprove(options: ApproveParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeApproveParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "approve" function on the contract. + * @param options - The options for the "approve" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { approve } from "thirdweb/extensions/tokens"; + * + * const transaction = approve({ + * contract, + * spender: ..., + * amount: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function approve( + options: BaseTransactionOptions< + | ApproveParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.spender, resolvedOptions.amount] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts new file mode 100644 index 00000000000..f8eb656abed --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts @@ -0,0 +1,137 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "burn" function. + */ +export type BurnParams = WithOverrides<{ + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; +}>; + +export const FN_SELECTOR = "0x42966c68" as const; +const FN_INPUTS = [ + { + type: "uint256", + name: "amount", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `burn` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `burn` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isBurnSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isBurnSupported(["0x..."]); + * ``` + */ +export function isBurnSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "burn" function. + * @param options - The options for the burn function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeBurnParams } from "thirdweb/extensions/tokens"; + * const result = encodeBurnParams({ + * amount: ..., + * }); + * ``` + */ +export function encodeBurnParams(options: BurnParams) { + return encodeAbiParameters(FN_INPUTS, [options.amount]); +} + +/** + * Encodes the "burn" function into a Hex string with its parameters. + * @param options - The options for the burn function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeBurn } from "thirdweb/extensions/tokens"; + * const result = encodeBurn({ + * amount: ..., + * }); + * ``` + */ +export function encodeBurn(options: BurnParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeBurnParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "burn" function on the contract. + * @param options - The options for the "burn" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { burn } from "thirdweb/extensions/tokens"; + * + * const transaction = burn({ + * contract, + * amount: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function burn( + options: BaseTransactionOptions< + | BurnParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.amount] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts new file mode 100644 index 00000000000..e0f91ef34e0 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts @@ -0,0 +1,145 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "burnFrom" function. + */ +export type BurnFromParams = WithOverrides<{ + from: AbiParameterToPrimitiveType<{ type: "address"; name: "from" }>; + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; +}>; + +export const FN_SELECTOR = "0x79cc6790" as const; +const FN_INPUTS = [ + { + type: "address", + name: "from", + }, + { + type: "uint256", + name: "amount", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `burnFrom` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `burnFrom` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isBurnFromSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isBurnFromSupported(["0x..."]); + * ``` + */ +export function isBurnFromSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "burnFrom" function. + * @param options - The options for the burnFrom function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeBurnFromParams } from "thirdweb/extensions/tokens"; + * const result = encodeBurnFromParams({ + * from: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeBurnFromParams(options: BurnFromParams) { + return encodeAbiParameters(FN_INPUTS, [options.from, options.amount]); +} + +/** + * Encodes the "burnFrom" function into a Hex string with its parameters. + * @param options - The options for the burnFrom function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeBurnFrom } from "thirdweb/extensions/tokens"; + * const result = encodeBurnFrom({ + * from: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeBurnFrom(options: BurnFromParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeBurnFromParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "burnFrom" function on the contract. + * @param options - The options for the "burnFrom" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { burnFrom } from "thirdweb/extensions/tokens"; + * + * const transaction = burnFrom({ + * contract, + * from: ..., + * amount: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function burnFrom( + options: BaseTransactionOptions< + | BurnFromParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.from, resolvedOptions.amount] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts new file mode 100644 index 00000000000..801dc93983d --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x54d1f13d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `cancelOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCancelOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCancelOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. + * @param options - The options for the "cancelOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { cancelOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = cancelOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function cancelOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts new file mode 100644 index 00000000000..a1a66858c05 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "completeOwnershipHandover" function. + */ +export type CompleteOwnershipHandoverParams = WithOverrides<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}>; + +export const FN_SELECTOR = "0xf04e283e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `completeOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCompleteOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "completeOwnershipHandover" function. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/tokens"; + * const result = encodeCompleteOwnershipHandoverParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandoverParams( + options: CompleteOwnershipHandoverParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/tokens"; + * const result = encodeCompleteOwnershipHandover({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandover( + options: CompleteOwnershipHandoverParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCompleteOwnershipHandoverParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. + * @param options - The options for the "completeOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { completeOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = completeOwnershipHandover({ + * contract, + * pendingOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function completeOwnershipHandover( + options: BaseTransactionOptions< + | CompleteOwnershipHandoverParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.pendingOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts new file mode 100644 index 00000000000..3c83d30c7c2 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts @@ -0,0 +1,189 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "initialize" function. + */ +export type InitializeParams = WithOverrides<{ + name: AbiParameterToPrimitiveType<{ type: "string"; name: "_name" }>; + symbol: AbiParameterToPrimitiveType<{ type: "string"; name: "_symbol" }>; + contractURI: AbiParameterToPrimitiveType<{ + type: "string"; + name: "_contractURI"; + }>; + maxSupply: AbiParameterToPrimitiveType<{ + type: "uint256"; + name: "_maxSupply"; + }>; + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; +}>; + +export const FN_SELECTOR = "0x30a8ff4e" as const; +const FN_INPUTS = [ + { + type: "string", + name: "_name", + }, + { + type: "string", + name: "_symbol", + }, + { + type: "string", + name: "_contractURI", + }, + { + type: "uint256", + name: "_maxSupply", + }, + { + type: "address", + name: "_owner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `initialize` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `initialize` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isInitializeSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isInitializeSupported(["0x..."]); + * ``` + */ +export function isInitializeSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "initialize" function. + * @param options - The options for the initialize function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeInitializeParams } from "thirdweb/extensions/tokens"; + * const result = encodeInitializeParams({ + * name: ..., + * symbol: ..., + * contractURI: ..., + * maxSupply: ..., + * owner: ..., + * }); + * ``` + */ +export function encodeInitializeParams(options: InitializeParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.name, + options.symbol, + options.contractURI, + options.maxSupply, + options.owner, + ]); +} + +/** + * Encodes the "initialize" function into a Hex string with its parameters. + * @param options - The options for the initialize function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeInitialize } from "thirdweb/extensions/tokens"; + * const result = encodeInitialize({ + * name: ..., + * symbol: ..., + * contractURI: ..., + * maxSupply: ..., + * owner: ..., + * }); + * ``` + */ +export function encodeInitialize(options: InitializeParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeInitializeParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "initialize" function on the contract. + * @param options - The options for the "initialize" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { initialize } from "thirdweb/extensions/tokens"; + * + * const transaction = initialize({ + * contract, + * name: ..., + * symbol: ..., + * contractURI: ..., + * maxSupply: ..., + * owner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function initialize( + options: BaseTransactionOptions< + | InitializeParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.name, + resolvedOptions.symbol, + resolvedOptions.contractURI, + resolvedOptions.maxSupply, + resolvedOptions.owner, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts new file mode 100644 index 00000000000..8c860fbc6b4 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts @@ -0,0 +1,201 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "permit" function. + */ +export type PermitParams = WithOverrides<{ + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + spender: AbiParameterToPrimitiveType<{ type: "address"; name: "spender" }>; + value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; + deadline: AbiParameterToPrimitiveType<{ type: "uint256"; name: "deadline" }>; + v: AbiParameterToPrimitiveType<{ type: "uint8"; name: "v" }>; + r: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "r" }>; + s: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "s" }>; +}>; + +export const FN_SELECTOR = "0xd505accf" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, + { + type: "address", + name: "spender", + }, + { + type: "uint256", + name: "value", + }, + { + type: "uint256", + name: "deadline", + }, + { + type: "uint8", + name: "v", + }, + { + type: "bytes32", + name: "r", + }, + { + type: "bytes32", + name: "s", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `permit` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `permit` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isPermitSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isPermitSupported(["0x..."]); + * ``` + */ +export function isPermitSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "permit" function. + * @param options - The options for the permit function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodePermitParams } from "thirdweb/extensions/tokens"; + * const result = encodePermitParams({ + * owner: ..., + * spender: ..., + * value: ..., + * deadline: ..., + * v: ..., + * r: ..., + * s: ..., + * }); + * ``` + */ +export function encodePermitParams(options: PermitParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.owner, + options.spender, + options.value, + options.deadline, + options.v, + options.r, + options.s, + ]); +} + +/** + * Encodes the "permit" function into a Hex string with its parameters. + * @param options - The options for the permit function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodePermit } from "thirdweb/extensions/tokens"; + * const result = encodePermit({ + * owner: ..., + * spender: ..., + * value: ..., + * deadline: ..., + * v: ..., + * r: ..., + * s: ..., + * }); + * ``` + */ +export function encodePermit(options: PermitParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodePermitParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "permit" function on the contract. + * @param options - The options for the "permit" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { permit } from "thirdweb/extensions/tokens"; + * + * const transaction = permit({ + * contract, + * owner: ..., + * spender: ..., + * value: ..., + * deadline: ..., + * v: ..., + * r: ..., + * s: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function permit( + options: BaseTransactionOptions< + | PermitParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.owner, + resolvedOptions.spender, + resolvedOptions.value, + resolvedOptions.deadline, + resolvedOptions.v, + resolvedOptions.r, + resolvedOptions.s, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts new file mode 100644 index 00000000000..28b4cb69e17 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts @@ -0,0 +1,50 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x715018a6" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceOwnership` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRenounceOwnershipSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRenounceOwnershipSupported(["0x..."]); + * ``` + */ +export function isRenounceOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "renounceOwnership" function on the contract. + * @param options - The options for the "renounceOwnership" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceOwnership } from "thirdweb/extensions/tokens"; + * + * const transaction = renounceOwnership(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceOwnership(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts new file mode 100644 index 00000000000..b6d7e224e58 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x25692962" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `requestOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRequestOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isRequestOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. + * @param options - The options for the "requestOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { requestOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = requestOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function requestOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts new file mode 100644 index 00000000000..dde3c541106 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts @@ -0,0 +1,142 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setContractURI" function. + */ +export type SetContractURIParams = WithOverrides<{ + contractURI: AbiParameterToPrimitiveType<{ + type: "string"; + name: "_contractURI"; + }>; +}>; + +export const FN_SELECTOR = "0x938e3d7b" as const; +const FN_INPUTS = [ + { + type: "string", + name: "_contractURI", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setContractURI` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setContractURI` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSetContractURISupported } from "thirdweb/extensions/tokens"; + * + * const supported = isSetContractURISupported(["0x..."]); + * ``` + */ +export function isSetContractURISupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setContractURI" function. + * @param options - The options for the setContractURI function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetContractURIParams } from "thirdweb/extensions/tokens"; + * const result = encodeSetContractURIParams({ + * contractURI: ..., + * }); + * ``` + */ +export function encodeSetContractURIParams(options: SetContractURIParams) { + return encodeAbiParameters(FN_INPUTS, [options.contractURI]); +} + +/** + * Encodes the "setContractURI" function into a Hex string with its parameters. + * @param options - The options for the setContractURI function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetContractURI } from "thirdweb/extensions/tokens"; + * const result = encodeSetContractURI({ + * contractURI: ..., + * }); + * ``` + */ +export function encodeSetContractURI(options: SetContractURIParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetContractURIParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setContractURI" function on the contract. + * @param options - The options for the "setContractURI" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setContractURI } from "thirdweb/extensions/tokens"; + * + * const transaction = setContractURI({ + * contract, + * contractURI: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setContractURI( + options: BaseTransactionOptions< + | SetContractURIParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.contractURI] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts new file mode 100644 index 00000000000..16232cfe555 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts @@ -0,0 +1,149 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transfer" function. + */ +export type TransferParams = WithOverrides<{ + to: AbiParameterToPrimitiveType<{ type: "address"; name: "to" }>; + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; +}>; + +export const FN_SELECTOR = "0xa9059cbb" as const; +const FN_INPUTS = [ + { + type: "address", + name: "to", + }, + { + type: "uint256", + name: "amount", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `transfer` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transfer` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isTransferSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isTransferSupported(["0x..."]); + * ``` + */ +export function isTransferSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transfer" function. + * @param options - The options for the transfer function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferParams } from "thirdweb/extensions/tokens"; + * const result = encodeTransferParams({ + * to: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeTransferParams(options: TransferParams) { + return encodeAbiParameters(FN_INPUTS, [options.to, options.amount]); +} + +/** + * Encodes the "transfer" function into a Hex string with its parameters. + * @param options - The options for the transfer function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransfer } from "thirdweb/extensions/tokens"; + * const result = encodeTransfer({ + * to: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeTransfer(options: TransferParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transfer" function on the contract. + * @param options - The options for the "transfer" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transfer } from "thirdweb/extensions/tokens"; + * + * const transaction = transfer({ + * contract, + * to: ..., + * amount: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transfer( + options: BaseTransactionOptions< + | TransferParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.to, resolvedOptions.amount] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts new file mode 100644 index 00000000000..50a895c5223 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts @@ -0,0 +1,167 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferFrom" function. + */ +export type TransferFromParams = WithOverrides<{ + from: AbiParameterToPrimitiveType<{ type: "address"; name: "from" }>; + to: AbiParameterToPrimitiveType<{ type: "address"; name: "to" }>; + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; +}>; + +export const FN_SELECTOR = "0x23b872dd" as const; +const FN_INPUTS = [ + { + type: "address", + name: "from", + }, + { + type: "address", + name: "to", + }, + { + type: "uint256", + name: "amount", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `transferFrom` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferFrom` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isTransferFromSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isTransferFromSupported(["0x..."]); + * ``` + */ +export function isTransferFromSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferFrom" function. + * @param options - The options for the transferFrom function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferFromParams } from "thirdweb/extensions/tokens"; + * const result = encodeTransferFromParams({ + * from: ..., + * to: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeTransferFromParams(options: TransferFromParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.from, + options.to, + options.amount, + ]); +} + +/** + * Encodes the "transferFrom" function into a Hex string with its parameters. + * @param options - The options for the transferFrom function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferFrom } from "thirdweb/extensions/tokens"; + * const result = encodeTransferFrom({ + * from: ..., + * to: ..., + * amount: ..., + * }); + * ``` + */ +export function encodeTransferFrom(options: TransferFromParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferFromParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferFrom" function on the contract. + * @param options - The options for the "transferFrom" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferFrom } from "thirdweb/extensions/tokens"; + * + * const transaction = transferFrom({ + * contract, + * from: ..., + * to: ..., + * amount: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferFrom( + options: BaseTransactionOptions< + | TransferFromParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.from, + resolvedOptions.to, + resolvedOptions.amount, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts new file mode 100644 index 00000000000..c365c21efdb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts @@ -0,0 +1,141 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferOwnership" function. + */ +export type TransferOwnershipParams = WithOverrides<{ + newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; +}>; + +export const FN_SELECTOR = "0xf2fde38b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `transferOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferOwnership` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isTransferOwnershipSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isTransferOwnershipSupported(["0x..."]); + * ``` + */ +export function isTransferOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferOwnership" function. + * @param options - The options for the transferOwnership function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferOwnershipParams } from "thirdweb/extensions/tokens"; + * const result = encodeTransferOwnershipParams({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnershipParams( + options: TransferOwnershipParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.newOwner]); +} + +/** + * Encodes the "transferOwnership" function into a Hex string with its parameters. + * @param options - The options for the transferOwnership function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferOwnership } from "thirdweb/extensions/tokens"; + * const result = encodeTransferOwnership({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnership(options: TransferOwnershipParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferOwnershipParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferOwnership" function on the contract. + * @param options - The options for the "transferOwnership" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferOwnership } from "thirdweb/extensions/tokens"; + * + * const transaction = transferOwnership({ + * contract, + * newOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferOwnership( + options: BaseTransactionOptions< + | TransferOwnershipParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/AirdropUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/AirdropUpdated.ts new file mode 100644 index 00000000000..ed03e7628d4 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/AirdropUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the AirdropUpdated event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { airdropUpdatedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * airdropUpdatedEvent() + * ], + * }); + * ``` + */ +export function airdropUpdatedEvent() { + return prepareEvent({ + signature: "event AirdropUpdated(address airdrop)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts new file mode 100644 index 00000000000..9da8ebbd288 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "Created" event. + */ +export type CreatedEventFilters = Partial<{ + creator: AbiParameterToPrimitiveType<{ + type: "address"; + name: "creator"; + indexed: true; + }>; + asset: AbiParameterToPrimitiveType<{ + type: "address"; + name: "asset"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the Created event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { createdEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * createdEvent({ + * creator: ..., + * asset: ..., + * }) + * ], + * }); + * ``` + */ +export function createdEvent(filters: CreatedEventFilters = {}) { + return prepareEvent({ + signature: + "event Created(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Distributed.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Distributed.ts new file mode 100644 index 00000000000..ba29899d7d3 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Distributed.ts @@ -0,0 +1,25 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the Distributed event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { distributedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * distributedEvent() + * ], + * }); + * ``` + */ +export function distributedEvent() { + return prepareEvent({ + signature: + "event Distributed(address asset, uint256 recipientCount, uint256 totalAmount)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts new file mode 100644 index 00000000000..0d93325707f --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts @@ -0,0 +1,43 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "ImplementationAdded" event. + */ +export type ImplementationAddedEventFilters = Partial<{ + implementation: AbiParameterToPrimitiveType<{ + type: "address"; + name: "implementation"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the ImplementationAdded event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { implementationAddedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * implementationAddedEvent({ + * implementation: ..., + * }) + * ], + * }); + * ``` + */ +export function implementationAddedEvent( + filters: ImplementationAddedEventFilters = {}, +) { + return prepareEvent({ + signature: + "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes createHookData)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Initialized.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Initialized.ts new file mode 100644 index 00000000000..1061653b3d4 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Initialized.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the Initialized event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { initializedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * initializedEvent() + * ], + * }); + * ``` + */ +export function initializedEvent() { + return prepareEvent({ + signature: "event Initialized(uint64 version)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts new file mode 100644 index 00000000000..45010946b7e --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverCanceled" event. + */ +export type OwnershipHandoverCanceledEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverCanceled event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverCanceledEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverCanceledEvent( + filters: OwnershipHandoverCanceledEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts new file mode 100644 index 00000000000..9e1813f4ebb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverRequested" event. + */ +export type OwnershipHandoverRequestedEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverRequested event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverRequestedEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverRequestedEvent( + filters: OwnershipHandoverRequestedEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts new file mode 100644 index 00000000000..1282b4f57e7 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipTransferred" event. + */ +export type OwnershipTransferredEventFilters = Partial<{ + oldOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "oldOwner"; + indexed: true; + }>; + newOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipTransferred event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipTransferredEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipTransferredEvent({ + * oldOwner: ..., + * newOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipTransferredEvent( + filters: OwnershipTransferredEventFilters = {}, +) { + return prepareEvent({ + signature: + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RewardClaimed.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RewardClaimed.ts new file mode 100644 index 00000000000..c6208468dec --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RewardClaimed.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the RewardClaimed event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { rewardClaimedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * rewardClaimedEvent() + * ], + * }); + * ``` + */ +export function rewardClaimedEvent() { + return prepareEvent({ + signature: "event RewardClaimed(address asset, address claimer)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RewardLockerUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RewardLockerUpdated.ts new file mode 100644 index 00000000000..5abca0bfd36 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RewardLockerUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the RewardLockerUpdated event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { rewardLockerUpdatedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * rewardLockerUpdatedEvent() + * ], + * }); + * ``` + */ +export function rewardLockerUpdatedEvent() { + return prepareEvent({ + signature: "event RewardLockerUpdated(address locker)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RouterUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RouterUpdated.ts new file mode 100644 index 00000000000..d6636ea9f2b --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RouterUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the RouterUpdated event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { routerUpdatedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * routerUpdatedEvent() + * ], + * }); + * ``` + */ +export function routerUpdatedEvent() { + return prepareEvent({ + signature: "event RouterUpdated(address router)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts new file mode 100644 index 00000000000..5009e49908a --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts @@ -0,0 +1,40 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "Upgraded" event. + */ +export type UpgradedEventFilters = Partial<{ + implementation: AbiParameterToPrimitiveType<{ + type: "address"; + name: "implementation"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the Upgraded event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { upgradedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * upgradedEvent({ + * implementation: ..., + * }) + * ], + * }); + * ``` + */ +export function upgradedEvent(filters: UpgradedEventFilters = {}) { + return prepareEvent({ + signature: "event Upgraded(address indexed implementation)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts new file mode 100644 index 00000000000..b350e944ee6 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xd25f82a0" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "airdrop", + }, +] as const; + +/** + * Checks if the `getAirdrop` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getAirdrop` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetAirdropSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetAirdropSupported(["0x..."]); + * ``` + */ +export function isGetAirdropSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the getAirdrop function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetAirdropResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetAirdropResultResult("..."); + * ``` + */ +export function decodeGetAirdropResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getAirdrop" function on the contract. + * @param options - The options for the getAirdrop function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getAirdrop } from "thirdweb/extensions/tokens"; + * + * const result = await getAirdrop({ + * contract, + * }); + * + * ``` + */ +export async function getAirdrop(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts new file mode 100644 index 00000000000..d8b1d81d1f3 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts @@ -0,0 +1,153 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "getImplementation" function. + */ +export type GetImplementationParams = { + contractId: AbiParameterToPrimitiveType<{ + type: "bytes32"; + name: "contractId"; + }>; +}; + +export const FN_SELECTOR = "0x3c2e0828" as const; +const FN_INPUTS = [ + { + type: "bytes32", + name: "contractId", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "tuple", + name: "config", + components: [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "implementation", + }, + { + type: "uint8", + name: "implementationType", + }, + { + type: "uint8", + name: "createHook", + }, + { + type: "bytes", + name: "createHookData", + }, + ], + }, +] as const; + +/** + * Checks if the `getImplementation` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getImplementation` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetImplementationSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetImplementationSupported(["0x..."]); + * ``` + */ +export function isGetImplementationSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "getImplementation" function. + * @param options - The options for the getImplementation function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetImplementationParams } from "thirdweb/extensions/tokens"; + * const result = encodeGetImplementationParams({ + * contractId: ..., + * }); + * ``` + */ +export function encodeGetImplementationParams( + options: GetImplementationParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.contractId]); +} + +/** + * Encodes the "getImplementation" function into a Hex string with its parameters. + * @param options - The options for the getImplementation function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetImplementation } from "thirdweb/extensions/tokens"; + * const result = encodeGetImplementation({ + * contractId: ..., + * }); + * ``` + */ +export function encodeGetImplementation(options: GetImplementationParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGetImplementationParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the getImplementation function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetImplementationResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetImplementationResultResult("..."); + * ``` + */ +export function decodeGetImplementationResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getImplementation" function on the contract. + * @param options - The options for the getImplementation function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getImplementation } from "thirdweb/extensions/tokens"; + * + * const result = await getImplementation({ + * contract, + * contractId: ..., + * }); + * + * ``` + */ +export async function getImplementation( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.contractId], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts new file mode 100644 index 00000000000..4eb8e6c67ad --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts @@ -0,0 +1,147 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "getReward" function. + */ +export type GetRewardParams = { + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; +}; + +export const FN_SELECTOR = "0xc00007b0" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "tuple", + components: [ + { + type: "address", + name: "positionManager", + }, + { + type: "uint256", + name: "tokenId", + }, + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "uint16", + name: "referrerBps", + }, + ], + }, +] as const; + +/** + * Checks if the `getReward` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getReward` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetRewardSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetRewardSupported(["0x..."]); + * ``` + */ +export function isGetRewardSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "getReward" function. + * @param options - The options for the getReward function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetRewardParams } from "thirdweb/extensions/tokens"; + * const result = encodeGetRewardParams({ + * asset: ..., + * }); + * ``` + */ +export function encodeGetRewardParams(options: GetRewardParams) { + return encodeAbiParameters(FN_INPUTS, [options.asset]); +} + +/** + * Encodes the "getReward" function into a Hex string with its parameters. + * @param options - The options for the getReward function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetReward } from "thirdweb/extensions/tokens"; + * const result = encodeGetReward({ + * asset: ..., + * }); + * ``` + */ +export function encodeGetReward(options: GetRewardParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGetRewardParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the getReward function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetRewardResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetRewardResultResult("..."); + * ``` + */ +export function decodeGetRewardResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getReward" function on the contract. + * @param options - The options for the getReward function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getReward } from "thirdweb/extensions/tokens"; + * + * const result = await getReward({ + * contract, + * asset: ..., + * }); + * + * ``` + */ +export async function getReward( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.asset], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts new file mode 100644 index 00000000000..46352d7f85d --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xb0188df2" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "rewardLocker", + }, +] as const; + +/** + * Checks if the `getRewardLocker` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getRewardLocker` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetRewardLockerSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetRewardLockerSupported(["0x..."]); + * ``` + */ +export function isGetRewardLockerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the getRewardLocker function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetRewardLockerResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetRewardLockerResultResult("..."); + * ``` + */ +export function decodeGetRewardLockerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getRewardLocker" function on the contract. + * @param options - The options for the getRewardLocker function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getRewardLocker } from "thirdweb/extensions/tokens"; + * + * const result = await getRewardLocker({ + * contract, + * }); + * + * ``` + */ +export async function getRewardLocker(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts new file mode 100644 index 00000000000..e603f2c2505 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xb0f479a1" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "router", + }, +] as const; + +/** + * Checks if the `getRouter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getRouter` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetRouterSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetRouterSupported(["0x..."]); + * ``` + */ +export function isGetRouterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the getRouter function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetRouterResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetRouterResultResult("..."); + * ``` + */ +export function decodeGetRouterResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getRouter" function on the contract. + * @param options - The options for the getRouter function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getRouter } from "thirdweb/extensions/tokens"; + * + * const result = await getRouter({ + * contract, + * }); + * + * ``` + */ +export async function getRouter(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts new file mode 100644 index 00000000000..3a4a44be6aa --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts @@ -0,0 +1,165 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "guardSalt" function. + */ +export type GuardSaltParams = { + salt: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "salt" }>; + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + contractInitData: AbiParameterToPrimitiveType<{ + type: "bytes"; + name: "contractInitData"; + }>; + hookInitData: AbiParameterToPrimitiveType<{ + type: "bytes"; + name: "hookInitData"; + }>; +}; + +export const FN_SELECTOR = "0xd5ebb1df" as const; +const FN_INPUTS = [ + { + type: "bytes32", + name: "salt", + }, + { + type: "address", + name: "creator", + }, + { + type: "bytes", + name: "contractInitData", + }, + { + type: "bytes", + name: "hookInitData", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bytes32", + }, +] as const; + +/** + * Checks if the `guardSalt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `guardSalt` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGuardSaltSupported } from "thirdweb/extensions/tokens"; + * const supported = isGuardSaltSupported(["0x..."]); + * ``` + */ +export function isGuardSaltSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "guardSalt" function. + * @param options - The options for the guardSalt function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeGuardSaltParams } from "thirdweb/extensions/tokens"; + * const result = encodeGuardSaltParams({ + * salt: ..., + * creator: ..., + * contractInitData: ..., + * hookInitData: ..., + * }); + * ``` + */ +export function encodeGuardSaltParams(options: GuardSaltParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.salt, + options.creator, + options.contractInitData, + options.hookInitData, + ]); +} + +/** + * Encodes the "guardSalt" function into a Hex string with its parameters. + * @param options - The options for the guardSalt function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeGuardSalt } from "thirdweb/extensions/tokens"; + * const result = encodeGuardSalt({ + * salt: ..., + * creator: ..., + * contractInitData: ..., + * hookInitData: ..., + * }); + * ``` + */ +export function encodeGuardSalt(options: GuardSaltParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGuardSaltParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the guardSalt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGuardSaltResult } from "thirdweb/extensions/tokens"; + * const result = decodeGuardSaltResultResult("..."); + * ``` + */ +export function decodeGuardSaltResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "guardSalt" function on the contract. + * @param options - The options for the guardSalt function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { guardSalt } from "thirdweb/extensions/tokens"; + * + * const result = await guardSalt({ + * contract, + * salt: ..., + * creator: ..., + * contractInitData: ..., + * hookInitData: ..., + * }); + * + * ``` + */ +export async function guardSalt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [ + options.salt, + options.creator, + options.contractInitData, + options.hookInitData, + ], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts new file mode 100644 index 00000000000..69277ccf299 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x8da5cb5b" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "result", + }, +] as const; + +/** + * Checks if the `owner` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `owner` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isOwnerSupported } from "thirdweb/extensions/tokens"; + * const supported = isOwnerSupported(["0x..."]); + * ``` + */ +export function isOwnerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the owner function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeOwnerResult } from "thirdweb/extensions/tokens"; + * const result = decodeOwnerResultResult("..."); + * ``` + */ +export function decodeOwnerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "owner" function on the contract. + * @param options - The options for the owner function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { owner } from "thirdweb/extensions/tokens"; + * + * const result = await owner({ + * contract, + * }); + * + * ``` + */ +export async function owner(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts new file mode 100644 index 00000000000..477cc34c0eb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts @@ -0,0 +1,135 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "ownershipHandoverExpiresAt" function. + */ +export type OwnershipHandoverExpiresAtParams = { + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}; + +export const FN_SELECTOR = "0xfee81cf4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/tokens"; + * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); + * ``` + */ +export function isOwnershipHandoverExpiresAtSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "ownershipHandoverExpiresAt" function. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/tokens"; + * const result = encodeOwnershipHandoverExpiresAtParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAtParams( + options: OwnershipHandoverExpiresAtParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/tokens"; + * const result = encodeOwnershipHandoverExpiresAt({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAt( + options: OwnershipHandoverExpiresAtParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeOwnershipHandoverExpiresAtParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the ownershipHandoverExpiresAt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/tokens"; + * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); + * ``` + */ +export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ownershipHandoverExpiresAt" function on the contract. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/tokens"; + * + * const result = await ownershipHandoverExpiresAt({ + * contract, + * pendingOwner: ..., + * }); + * + * ``` + */ +export async function ownershipHandoverExpiresAt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.pendingOwner], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts new file mode 100644 index 00000000000..b4b617bd5f8 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts @@ -0,0 +1,176 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "predictAddress" function. + */ +export type PredictAddressParams = { + contractId: AbiParameterToPrimitiveType<{ + type: "bytes32"; + name: "contractId"; + }>; + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "address"; name: "referrer" }, + { type: "bytes32"; name: "salt" }, + { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}; + +export const FN_SELECTOR = "0x6b6963c6" as const; +const FN_INPUTS = [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "creator", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "address", + name: "referrer", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "predicted", + }, +] as const; + +/** + * Checks if the `predictAddress` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `predictAddress` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isPredictAddressSupported } from "thirdweb/extensions/tokens"; + * const supported = isPredictAddressSupported(["0x..."]); + * ``` + */ +export function isPredictAddressSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "predictAddress" function. + * @param options - The options for the predictAddress function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodePredictAddressParams } from "thirdweb/extensions/tokens"; + * const result = encodePredictAddressParams({ + * contractId: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodePredictAddressParams(options: PredictAddressParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.contractId, + options.creator, + options.params, + ]); +} + +/** + * Encodes the "predictAddress" function into a Hex string with its parameters. + * @param options - The options for the predictAddress function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodePredictAddress } from "thirdweb/extensions/tokens"; + * const result = encodePredictAddress({ + * contractId: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodePredictAddress(options: PredictAddressParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodePredictAddressParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the predictAddress function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodePredictAddressResult } from "thirdweb/extensions/tokens"; + * const result = decodePredictAddressResultResult("..."); + * ``` + */ +export function decodePredictAddressResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "predictAddress" function on the contract. + * @param options - The options for the predictAddress function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { predictAddress } from "thirdweb/extensions/tokens"; + * + * const result = await predictAddress({ + * contract, + * contractId: ..., + * creator: ..., + * params: ..., + * }); + * + * ``` + */ +export async function predictAddress( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.contractId, options.creator, options.params], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts new file mode 100644 index 00000000000..ed9d4d95e90 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts @@ -0,0 +1,211 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "predictAddressByConfig" function. + */ +export type PredictAddressByConfigParams = { + config: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "config"; + components: [ + { type: "bytes32"; name: "contractId" }, + { type: "address"; name: "implementation" }, + { type: "uint8"; name: "implementationType" }, + { type: "uint8"; name: "createHook" }, + { type: "bytes"; name: "createHookData" }, + ]; + }>; + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "address"; name: "referrer" }, + { type: "bytes32"; name: "salt" }, + { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}; + +export const FN_SELECTOR = "0xbccfb6ad" as const; +const FN_INPUTS = [ + { + type: "tuple", + name: "config", + components: [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "implementation", + }, + { + type: "uint8", + name: "implementationType", + }, + { + type: "uint8", + name: "createHook", + }, + { + type: "bytes", + name: "createHookData", + }, + ], + }, + { + type: "address", + name: "creator", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "address", + name: "referrer", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "predicted", + }, +] as const; + +/** + * Checks if the `predictAddressByConfig` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `predictAddressByConfig` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isPredictAddressByConfigSupported } from "thirdweb/extensions/tokens"; + * const supported = isPredictAddressByConfigSupported(["0x..."]); + * ``` + */ +export function isPredictAddressByConfigSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "predictAddressByConfig" function. + * @param options - The options for the predictAddressByConfig function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodePredictAddressByConfigParams } from "thirdweb/extensions/tokens"; + * const result = encodePredictAddressByConfigParams({ + * config: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodePredictAddressByConfigParams( + options: PredictAddressByConfigParams, +) { + return encodeAbiParameters(FN_INPUTS, [ + options.config, + options.creator, + options.params, + ]); +} + +/** + * Encodes the "predictAddressByConfig" function into a Hex string with its parameters. + * @param options - The options for the predictAddressByConfig function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodePredictAddressByConfig } from "thirdweb/extensions/tokens"; + * const result = encodePredictAddressByConfig({ + * config: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodePredictAddressByConfig( + options: PredictAddressByConfigParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodePredictAddressByConfigParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the predictAddressByConfig function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodePredictAddressByConfigResult } from "thirdweb/extensions/tokens"; + * const result = decodePredictAddressByConfigResultResult("..."); + * ``` + */ +export function decodePredictAddressByConfigResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "predictAddressByConfig" function on the contract. + * @param options - The options for the predictAddressByConfig function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { predictAddressByConfig } from "thirdweb/extensions/tokens"; + * + * const result = await predictAddressByConfig({ + * contract, + * config: ..., + * creator: ..., + * params: ..., + * }); + * + * ``` + */ +export async function predictAddressByConfig( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.config, options.creator, options.params], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts new file mode 100644 index 00000000000..e4a93094309 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x52d1902d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "bytes32", + }, +] as const; + +/** + * Checks if the `proxiableUUID` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `proxiableUUID` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isProxiableUUIDSupported } from "thirdweb/extensions/tokens"; + * const supported = isProxiableUUIDSupported(["0x..."]); + * ``` + */ +export function isProxiableUUIDSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the proxiableUUID function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeProxiableUUIDResult } from "thirdweb/extensions/tokens"; + * const result = decodeProxiableUUIDResultResult("..."); + * ``` + */ +export function decodeProxiableUUIDResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "proxiableUUID" function on the contract. + * @param options - The options for the proxiableUUID function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { proxiableUUID } from "thirdweb/extensions/tokens"; + * + * const result = await proxiableUUID({ + * contract, + * }); + * + * ``` + */ +export async function proxiableUUID(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts new file mode 100644 index 00000000000..bcbe75102fc --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts @@ -0,0 +1,181 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "addImplementation" function. + */ +export type AddImplementationParams = WithOverrides<{ + config: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "config"; + components: [ + { type: "bytes32"; name: "contractId" }, + { type: "address"; name: "implementation" }, + { type: "uint8"; name: "implementationType" }, + { type: "uint8"; name: "createHook" }, + { type: "bytes"; name: "createHookData" }, + ]; + }>; + isDefault: AbiParameterToPrimitiveType<{ type: "bool"; name: "isDefault" }>; +}>; + +export const FN_SELECTOR = "0x4bf8055d" as const; +const FN_INPUTS = [ + { + type: "tuple", + name: "config", + components: [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "implementation", + }, + { + type: "uint8", + name: "implementationType", + }, + { + type: "uint8", + name: "createHook", + }, + { + type: "bytes", + name: "createHookData", + }, + ], + }, + { + type: "bool", + name: "isDefault", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `addImplementation` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `addImplementation` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isAddImplementationSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isAddImplementationSupported(["0x..."]); + * ``` + */ +export function isAddImplementationSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "addImplementation" function. + * @param options - The options for the addImplementation function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeAddImplementationParams } from "thirdweb/extensions/tokens"; + * const result = encodeAddImplementationParams({ + * config: ..., + * isDefault: ..., + * }); + * ``` + */ +export function encodeAddImplementationParams( + options: AddImplementationParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.config, options.isDefault]); +} + +/** + * Encodes the "addImplementation" function into a Hex string with its parameters. + * @param options - The options for the addImplementation function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeAddImplementation } from "thirdweb/extensions/tokens"; + * const result = encodeAddImplementation({ + * config: ..., + * isDefault: ..., + * }); + * ``` + */ +export function encodeAddImplementation(options: AddImplementationParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeAddImplementationParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "addImplementation" function on the contract. + * @param options - The options for the "addImplementation" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { addImplementation } from "thirdweb/extensions/tokens"; + * + * const transaction = addImplementation({ + * contract, + * config: ..., + * isDefault: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function addImplementation( + options: BaseTransactionOptions< + | AddImplementationParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.config, resolvedOptions.isDefault] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts new file mode 100644 index 00000000000..8a64cb64dbd --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts @@ -0,0 +1,196 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "buy" function. + */ +export type BuyParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "address"; name: "recipient" }, + { type: "address"; name: "referrer" }, + { type: "address"; name: "tokenIn" }, + { type: "uint256"; name: "amountIn" }, + { type: "uint256"; name: "minAmountOut" }, + { type: "uint256"; name: "deadline" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x688cb20f" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "address", + name: "tokenIn", + }, + { + type: "uint256", + name: "amountIn", + }, + { + type: "uint256", + name: "minAmountOut", + }, + { + type: "uint256", + name: "deadline", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "amountIn", + }, + { + type: "uint256", + name: "amountOut", + }, +] as const; + +/** + * Checks if the `buy` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `buy` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isBuySupported } from "thirdweb/extensions/tokens"; + * + * const supported = isBuySupported(["0x..."]); + * ``` + */ +export function isBuySupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "buy" function. + * @param options - The options for the buy function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeBuyParams } from "thirdweb/extensions/tokens"; + * const result = encodeBuyParams({ + * asset: ..., + * params: ..., + * }); + * ``` + */ +export function encodeBuyParams(options: BuyParams) { + return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); +} + +/** + * Encodes the "buy" function into a Hex string with its parameters. + * @param options - The options for the buy function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeBuy } from "thirdweb/extensions/tokens"; + * const result = encodeBuy({ + * asset: ..., + * params: ..., + * }); + * ``` + */ +export function encodeBuy(options: BuyParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeBuyParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "buy" function on the contract. + * @param options - The options for the "buy" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { buy } from "thirdweb/extensions/tokens"; + * + * const transaction = buy({ + * contract, + * asset: ..., + * params: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function buy( + options: BaseTransactionOptions< + | BuyParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset, resolvedOptions.params] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts new file mode 100644 index 00000000000..801dc93983d --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x54d1f13d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `cancelOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCancelOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCancelOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. + * @param options - The options for the "cancelOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { cancelOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = cancelOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function cancelOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts new file mode 100644 index 00000000000..56b69fdd811 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "claimReward" function. + */ +export type ClaimRewardParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; +}>; + +export const FN_SELECTOR = "0xd279c191" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `claimReward` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `claimReward` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isClaimRewardSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isClaimRewardSupported(["0x..."]); + * ``` + */ +export function isClaimRewardSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "claimReward" function. + * @param options - The options for the claimReward function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeClaimRewardParams } from "thirdweb/extensions/tokens"; + * const result = encodeClaimRewardParams({ + * asset: ..., + * }); + * ``` + */ +export function encodeClaimRewardParams(options: ClaimRewardParams) { + return encodeAbiParameters(FN_INPUTS, [options.asset]); +} + +/** + * Encodes the "claimReward" function into a Hex string with its parameters. + * @param options - The options for the claimReward function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeClaimReward } from "thirdweb/extensions/tokens"; + * const result = encodeClaimReward({ + * asset: ..., + * }); + * ``` + */ +export function encodeClaimReward(options: ClaimRewardParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeClaimRewardParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "claimReward" function on the contract. + * @param options - The options for the "claimReward" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { claimReward } from "thirdweb/extensions/tokens"; + * + * const transaction = claimReward({ + * contract, + * asset: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function claimReward( + options: BaseTransactionOptions< + | ClaimRewardParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts new file mode 100644 index 00000000000..a1a66858c05 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "completeOwnershipHandover" function. + */ +export type CompleteOwnershipHandoverParams = WithOverrides<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}>; + +export const FN_SELECTOR = "0xf04e283e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `completeOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCompleteOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "completeOwnershipHandover" function. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/tokens"; + * const result = encodeCompleteOwnershipHandoverParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandoverParams( + options: CompleteOwnershipHandoverParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/tokens"; + * const result = encodeCompleteOwnershipHandover({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandover( + options: CompleteOwnershipHandoverParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCompleteOwnershipHandoverParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. + * @param options - The options for the "completeOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { completeOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = completeOwnershipHandover({ + * contract, + * pendingOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function completeOwnershipHandover( + options: BaseTransactionOptions< + | CompleteOwnershipHandoverParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.pendingOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts new file mode 100644 index 00000000000..49e2b4866fe --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts @@ -0,0 +1,180 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "create" function. + */ +export type CreateParams = WithOverrides<{ + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + createParams: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "createParams"; + components: [ + { type: "address"; name: "referrer" }, + { type: "bytes32"; name: "salt" }, + { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x65d53dd9" as const; +const FN_INPUTS = [ + { + type: "address", + name: "creator", + }, + { + type: "tuple", + name: "createParams", + components: [ + { + type: "address", + name: "referrer", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; + +/** + * Checks if the `create` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `create` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCreateSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCreateSupported(["0x..."]); + * ``` + */ +export function isCreateSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "create" function. + * @param options - The options for the create function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCreateParams } from "thirdweb/extensions/tokens"; + * const result = encodeCreateParams({ + * creator: ..., + * createParams: ..., + * }); + * ``` + */ +export function encodeCreateParams(options: CreateParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.creator, + options.createParams, + ]); +} + +/** + * Encodes the "create" function into a Hex string with its parameters. + * @param options - The options for the create function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCreate } from "thirdweb/extensions/tokens"; + * const result = encodeCreate({ + * creator: ..., + * createParams: ..., + * }); + * ``` + */ +export function encodeCreate(options: CreateParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCreateParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "create" function on the contract. + * @param options - The options for the "create" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { create } from "thirdweb/extensions/tokens"; + * + * const transaction = create({ + * contract, + * creator: ..., + * createParams: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function create( + options: BaseTransactionOptions< + | CreateParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.creator, resolvedOptions.createParams] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts new file mode 100644 index 00000000000..abd4d69803c --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts @@ -0,0 +1,198 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "createById" function. + */ +export type CreateByIdParams = WithOverrides<{ + contractId: AbiParameterToPrimitiveType<{ + type: "bytes32"; + name: "contractId"; + }>; + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "address"; name: "referrer" }, + { type: "bytes32"; name: "salt" }, + { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x1889d488" as const; +const FN_INPUTS = [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "creator", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "address", + name: "referrer", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; + +/** + * Checks if the `createById` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `createById` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCreateByIdSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCreateByIdSupported(["0x..."]); + * ``` + */ +export function isCreateByIdSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "createById" function. + * @param options - The options for the createById function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCreateByIdParams } from "thirdweb/extensions/tokens"; + * const result = encodeCreateByIdParams({ + * contractId: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodeCreateByIdParams(options: CreateByIdParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.contractId, + options.creator, + options.params, + ]); +} + +/** + * Encodes the "createById" function into a Hex string with its parameters. + * @param options - The options for the createById function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCreateById } from "thirdweb/extensions/tokens"; + * const result = encodeCreateById({ + * contractId: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodeCreateById(options: CreateByIdParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCreateByIdParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "createById" function on the contract. + * @param options - The options for the "createById" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { createById } from "thirdweb/extensions/tokens"; + * + * const transaction = createById({ + * contract, + * contractId: ..., + * creator: ..., + * params: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function createById( + options: BaseTransactionOptions< + | CreateByIdParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.contractId, + resolvedOptions.creator, + resolvedOptions.params, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts new file mode 100644 index 00000000000..c91071a99bc --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts @@ -0,0 +1,233 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "createByImplementationConfig" function. + */ +export type CreateByImplementationConfigParams = WithOverrides<{ + config: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "config"; + components: [ + { type: "bytes32"; name: "contractId" }, + { type: "address"; name: "implementation" }, + { type: "uint8"; name: "implementationType" }, + { type: "uint8"; name: "createHook" }, + { type: "bytes"; name: "createHookData" }, + ]; + }>; + creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; + params: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "params"; + components: [ + { type: "address"; name: "referrer" }, + { type: "bytes32"; name: "salt" }, + { type: "bytes"; name: "data" }, + { type: "bytes"; name: "hookData" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0x1a1b2b88" as const; +const FN_INPUTS = [ + { + type: "tuple", + name: "config", + components: [ + { + type: "bytes32", + name: "contractId", + }, + { + type: "address", + name: "implementation", + }, + { + type: "uint8", + name: "implementationType", + }, + { + type: "uint8", + name: "createHook", + }, + { + type: "bytes", + name: "createHookData", + }, + ], + }, + { + type: "address", + name: "creator", + }, + { + type: "tuple", + name: "params", + components: [ + { + type: "address", + name: "referrer", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "bytes", + name: "data", + }, + { + type: "bytes", + name: "hookData", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; + +/** + * Checks if the `createByImplementationConfig` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `createByImplementationConfig` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCreateByImplementationConfigSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCreateByImplementationConfigSupported(["0x..."]); + * ``` + */ +export function isCreateByImplementationConfigSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "createByImplementationConfig" function. + * @param options - The options for the createByImplementationConfig function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCreateByImplementationConfigParams } from "thirdweb/extensions/tokens"; + * const result = encodeCreateByImplementationConfigParams({ + * config: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodeCreateByImplementationConfigParams( + options: CreateByImplementationConfigParams, +) { + return encodeAbiParameters(FN_INPUTS, [ + options.config, + options.creator, + options.params, + ]); +} + +/** + * Encodes the "createByImplementationConfig" function into a Hex string with its parameters. + * @param options - The options for the createByImplementationConfig function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCreateByImplementationConfig } from "thirdweb/extensions/tokens"; + * const result = encodeCreateByImplementationConfig({ + * config: ..., + * creator: ..., + * params: ..., + * }); + * ``` + */ +export function encodeCreateByImplementationConfig( + options: CreateByImplementationConfigParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCreateByImplementationConfigParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "createByImplementationConfig" function on the contract. + * @param options - The options for the "createByImplementationConfig" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { createByImplementationConfig } from "thirdweb/extensions/tokens"; + * + * const transaction = createByImplementationConfig({ + * contract, + * config: ..., + * creator: ..., + * params: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function createByImplementationConfig( + options: BaseTransactionOptions< + | CreateByImplementationConfigParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.config, + resolvedOptions.creator, + resolvedOptions.params, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts new file mode 100644 index 00000000000..69399ef9833 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts @@ -0,0 +1,164 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "distribute" function. + */ +export type DistributeParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; + contents: AbiParameterToPrimitiveType<{ + type: "tuple[]"; + name: "contents"; + components: [ + { type: "uint256"; name: "amount" }, + { type: "address"; name: "recipient" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0xe542b93b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, + { + type: "tuple[]", + name: "contents", + components: [ + { + type: "uint256", + name: "amount", + }, + { + type: "address", + name: "recipient", + }, + ], + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `distribute` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `distribute` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isDistributeSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isDistributeSupported(["0x..."]); + * ``` + */ +export function isDistributeSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "distribute" function. + * @param options - The options for the distribute function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeDistributeParams } from "thirdweb/extensions/tokens"; + * const result = encodeDistributeParams({ + * asset: ..., + * contents: ..., + * }); + * ``` + */ +export function encodeDistributeParams(options: DistributeParams) { + return encodeAbiParameters(FN_INPUTS, [options.asset, options.contents]); +} + +/** + * Encodes the "distribute" function into a Hex string with its parameters. + * @param options - The options for the distribute function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeDistribute } from "thirdweb/extensions/tokens"; + * const result = encodeDistribute({ + * asset: ..., + * contents: ..., + * }); + * ``` + */ +export function encodeDistribute(options: DistributeParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeDistributeParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "distribute" function on the contract. + * @param options - The options for the "distribute" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { distribute } from "thirdweb/extensions/tokens"; + * + * const transaction = distribute({ + * contract, + * asset: ..., + * contents: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function distribute( + options: BaseTransactionOptions< + | DistributeParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.asset, resolvedOptions.contents] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts new file mode 100644 index 00000000000..4b07fe32f48 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts @@ -0,0 +1,176 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "initialize" function. + */ +export type InitializeParams = WithOverrides<{ + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + router: AbiParameterToPrimitiveType<{ type: "address"; name: "router" }>; + rewardLocker: AbiParameterToPrimitiveType<{ + type: "address"; + name: "rewardLocker"; + }>; + airdrop: AbiParameterToPrimitiveType<{ type: "address"; name: "airdrop" }>; +}>; + +export const FN_SELECTOR = "0xf8c8765e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, + { + type: "address", + name: "router", + }, + { + type: "address", + name: "rewardLocker", + }, + { + type: "address", + name: "airdrop", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `initialize` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `initialize` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isInitializeSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isInitializeSupported(["0x..."]); + * ``` + */ +export function isInitializeSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "initialize" function. + * @param options - The options for the initialize function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeInitializeParams } from "thirdweb/extensions/tokens"; + * const result = encodeInitializeParams({ + * owner: ..., + * router: ..., + * rewardLocker: ..., + * airdrop: ..., + * }); + * ``` + */ +export function encodeInitializeParams(options: InitializeParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.owner, + options.router, + options.rewardLocker, + options.airdrop, + ]); +} + +/** + * Encodes the "initialize" function into a Hex string with its parameters. + * @param options - The options for the initialize function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeInitialize } from "thirdweb/extensions/tokens"; + * const result = encodeInitialize({ + * owner: ..., + * router: ..., + * rewardLocker: ..., + * airdrop: ..., + * }); + * ``` + */ +export function encodeInitialize(options: InitializeParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeInitializeParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "initialize" function on the contract. + * @param options - The options for the "initialize" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { initialize } from "thirdweb/extensions/tokens"; + * + * const transaction = initialize({ + * contract, + * owner: ..., + * router: ..., + * rewardLocker: ..., + * airdrop: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function initialize( + options: BaseTransactionOptions< + | InitializeParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.owner, + resolvedOptions.router, + resolvedOptions.rewardLocker, + resolvedOptions.airdrop, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts new file mode 100644 index 00000000000..28b4cb69e17 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts @@ -0,0 +1,50 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x715018a6" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceOwnership` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRenounceOwnershipSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRenounceOwnershipSupported(["0x..."]); + * ``` + */ +export function isRenounceOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "renounceOwnership" function on the contract. + * @param options - The options for the "renounceOwnership" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceOwnership } from "thirdweb/extensions/tokens"; + * + * const transaction = renounceOwnership(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceOwnership(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts new file mode 100644 index 00000000000..b6d7e224e58 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x25692962" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `requestOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRequestOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isRequestOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. + * @param options - The options for the "requestOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { requestOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = requestOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function requestOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts similarity index 60% rename from packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts index 68b67e5b8e9..8e2ba161ead 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20AssetEntrypoint/write/listAsset.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts @@ -1,35 +1,33 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "listAsset" function. + * Represents the parameters for the "sell" function. */ -export type ListAssetParams = WithOverrides<{ +export type SellParams = WithOverrides<{ asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; params: AbiParameterToPrimitiveType<{ type: "tuple"; name: "params"; components: [ + { type: "address"; name: "recipient" }, { type: "address"; name: "tokenOut" }, - { type: "uint256"; name: "pricePerUnit" }, - { type: "uint8"; name: "priceDenominator" }, - { type: "uint256"; name: "totalSupply" }, - { type: "uint48"; name: "startTime" }, - { type: "uint48"; name: "endTime" }, - { type: "address"; name: "hook" }, - { type: "bytes"; name: "createHookData" }, + { type: "uint256"; name: "amountIn" }, + { type: "uint256"; name: "minAmountOut" }, + { type: "uint256"; name: "deadline" }, + { type: "bytes"; name: "hookData" }, ]; }>; }>; -export const FN_SELECTOR = "0xe83a685a" as const; +export const FN_SELECTOR = "0xfbc84f15" as const; const FN_INPUTS = [ { type: "address", @@ -41,67 +39,55 @@ const FN_INPUTS = [ components: [ { type: "address", - name: "tokenOut", + name: "recipient", }, { - type: "uint256", - name: "pricePerUnit", - }, - { - type: "uint8", - name: "priceDenominator", + type: "address", + name: "tokenOut", }, { type: "uint256", - name: "totalSupply", + name: "amountIn", }, { - type: "uint48", - name: "startTime", - }, - { - type: "uint48", - name: "endTime", + type: "uint256", + name: "minAmountOut", }, { - type: "address", - name: "hook", + type: "uint256", + name: "deadline", }, { type: "bytes", - name: "createHookData", + name: "hookData", }, ], }, ] as const; const FN_OUTPUTS = [ { - type: "address", - name: "sale", - }, - { - type: "address", - name: "position", + type: "uint256", + name: "amountIn", }, { type: "uint256", - name: "positionId", + name: "amountOut", }, ] as const; /** - * Checks if the `listAsset` method is supported by the given contract. + * Checks if the `sell` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `listAsset` method is supported. - * @extension ASSETS + * @returns A boolean indicating if the `sell` method is supported. + * @extension TOKENS * @example * ```ts - * import { isListAssetSupported } from "thirdweb/extensions/assets"; + * import { isSellSupported } from "thirdweb/extensions/tokens"; * - * const supported = isListAssetSupported(["0x..."]); + * const supported = isSellSupported(["0x..."]); * ``` */ -export function isListAssetSupported(availableSelectors: string[]) { +export function isSellSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -109,57 +95,55 @@ export function isListAssetSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "listAsset" function. - * @param options - The options for the listAsset function. + * Encodes the parameters for the "sell" function. + * @param options - The options for the sell function. * @returns The encoded ABI parameters. - * @extension ASSETS + * @extension TOKENS * @example * ```ts - * import { encodeListAssetParams } from "thirdweb/extensions/assets"; - * const result = encodeListAssetParams({ + * import { encodeSellParams } from "thirdweb/extensions/tokens"; + * const result = encodeSellParams({ * asset: ..., * params: ..., * }); * ``` */ -export function encodeListAssetParams(options: ListAssetParams) { +export function encodeSellParams(options: SellParams) { return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); } /** - * Encodes the "listAsset" function into a Hex string with its parameters. - * @param options - The options for the listAsset function. + * Encodes the "sell" function into a Hex string with its parameters. + * @param options - The options for the sell function. * @returns The encoded hexadecimal string. - * @extension ASSETS + * @extension TOKENS * @example * ```ts - * import { encodeListAsset } from "thirdweb/extensions/assets"; - * const result = encodeListAsset({ + * import { encodeSell } from "thirdweb/extensions/tokens"; + * const result = encodeSell({ * asset: ..., * params: ..., * }); * ``` */ -export function encodeListAsset(options: ListAssetParams) { +export function encodeSell(options: SellParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeListAssetParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; + encodeSellParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "listAsset" function on the contract. - * @param options - The options for the "listAsset" function. + * Prepares a transaction to call the "sell" function on the contract. + * @param options - The options for the "sell" function. * @returns A prepared transaction object. - * @extension ASSETS + * @extension TOKENS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { listAsset } from "thirdweb/extensions/assets"; + * import { sell } from "thirdweb/extensions/tokens"; * - * const transaction = listAsset({ + * const transaction = sell({ * contract, * asset: ..., * params: ..., @@ -172,11 +156,11 @@ export function encodeListAsset(options: ListAssetParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function listAsset( +export function sell( options: BaseTransactionOptions< - | ListAssetParams + | SellParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts new file mode 100644 index 00000000000..e0998244940 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setAirdrop" function. + */ +export type SetAirdropParams = WithOverrides<{ + airdrop: AbiParameterToPrimitiveType<{ type: "address"; name: "airdrop" }>; +}>; + +export const FN_SELECTOR = "0x72820dbc" as const; +const FN_INPUTS = [ + { + type: "address", + name: "airdrop", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setAirdrop` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setAirdrop` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSetAirdropSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isSetAirdropSupported(["0x..."]); + * ``` + */ +export function isSetAirdropSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setAirdrop" function. + * @param options - The options for the setAirdrop function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetAirdropParams } from "thirdweb/extensions/tokens"; + * const result = encodeSetAirdropParams({ + * airdrop: ..., + * }); + * ``` + */ +export function encodeSetAirdropParams(options: SetAirdropParams) { + return encodeAbiParameters(FN_INPUTS, [options.airdrop]); +} + +/** + * Encodes the "setAirdrop" function into a Hex string with its parameters. + * @param options - The options for the setAirdrop function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetAirdrop } from "thirdweb/extensions/tokens"; + * const result = encodeSetAirdrop({ + * airdrop: ..., + * }); + * ``` + */ +export function encodeSetAirdrop(options: SetAirdropParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetAirdropParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setAirdrop" function on the contract. + * @param options - The options for the "setAirdrop" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setAirdrop } from "thirdweb/extensions/tokens"; + * + * const transaction = setAirdrop({ + * contract, + * airdrop: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setAirdrop( + options: BaseTransactionOptions< + | SetAirdropParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.airdrop] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts new file mode 100644 index 00000000000..644b5dc4abc --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts @@ -0,0 +1,142 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setRewardLocker" function. + */ +export type SetRewardLockerParams = WithOverrides<{ + rewardLocker: AbiParameterToPrimitiveType<{ + type: "address"; + name: "rewardLocker"; + }>; +}>; + +export const FN_SELECTOR = "0xeb7fb197" as const; +const FN_INPUTS = [ + { + type: "address", + name: "rewardLocker", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setRewardLocker` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setRewardLocker` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSetRewardLockerSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isSetRewardLockerSupported(["0x..."]); + * ``` + */ +export function isSetRewardLockerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setRewardLocker" function. + * @param options - The options for the setRewardLocker function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetRewardLockerParams } from "thirdweb/extensions/tokens"; + * const result = encodeSetRewardLockerParams({ + * rewardLocker: ..., + * }); + * ``` + */ +export function encodeSetRewardLockerParams(options: SetRewardLockerParams) { + return encodeAbiParameters(FN_INPUTS, [options.rewardLocker]); +} + +/** + * Encodes the "setRewardLocker" function into a Hex string with its parameters. + * @param options - The options for the setRewardLocker function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetRewardLocker } from "thirdweb/extensions/tokens"; + * const result = encodeSetRewardLocker({ + * rewardLocker: ..., + * }); + * ``` + */ +export function encodeSetRewardLocker(options: SetRewardLockerParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetRewardLockerParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setRewardLocker" function on the contract. + * @param options - The options for the "setRewardLocker" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setRewardLocker } from "thirdweb/extensions/tokens"; + * + * const transaction = setRewardLocker({ + * contract, + * rewardLocker: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setRewardLocker( + options: BaseTransactionOptions< + | SetRewardLockerParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.rewardLocker] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts new file mode 100644 index 00000000000..b2ced564f77 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setRouter" function. + */ +export type SetRouterParams = WithOverrides<{ + router: AbiParameterToPrimitiveType<{ type: "address"; name: "router" }>; +}>; + +export const FN_SELECTOR = "0xc0d78655" as const; +const FN_INPUTS = [ + { + type: "address", + name: "router", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setRouter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setRouter` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSetRouterSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isSetRouterSupported(["0x..."]); + * ``` + */ +export function isSetRouterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setRouter" function. + * @param options - The options for the setRouter function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetRouterParams } from "thirdweb/extensions/tokens"; + * const result = encodeSetRouterParams({ + * router: ..., + * }); + * ``` + */ +export function encodeSetRouterParams(options: SetRouterParams) { + return encodeAbiParameters(FN_INPUTS, [options.router]); +} + +/** + * Encodes the "setRouter" function into a Hex string with its parameters. + * @param options - The options for the setRouter function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetRouter } from "thirdweb/extensions/tokens"; + * const result = encodeSetRouter({ + * router: ..., + * }); + * ``` + */ +export function encodeSetRouter(options: SetRouterParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetRouterParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setRouter" function on the contract. + * @param options - The options for the "setRouter" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setRouter } from "thirdweb/extensions/tokens"; + * + * const transaction = setRouter({ + * contract, + * router: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setRouter( + options: BaseTransactionOptions< + | SetRouterParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.router] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts new file mode 100644 index 00000000000..c365c21efdb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts @@ -0,0 +1,141 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferOwnership" function. + */ +export type TransferOwnershipParams = WithOverrides<{ + newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; +}>; + +export const FN_SELECTOR = "0xf2fde38b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `transferOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferOwnership` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isTransferOwnershipSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isTransferOwnershipSupported(["0x..."]); + * ``` + */ +export function isTransferOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferOwnership" function. + * @param options - The options for the transferOwnership function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferOwnershipParams } from "thirdweb/extensions/tokens"; + * const result = encodeTransferOwnershipParams({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnershipParams( + options: TransferOwnershipParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.newOwner]); +} + +/** + * Encodes the "transferOwnership" function into a Hex string with its parameters. + * @param options - The options for the transferOwnership function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferOwnership } from "thirdweb/extensions/tokens"; + * const result = encodeTransferOwnership({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnership(options: TransferOwnershipParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferOwnershipParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferOwnership" function on the contract. + * @param options - The options for the "transferOwnership" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferOwnership } from "thirdweb/extensions/tokens"; + * + * const transaction = transferOwnership({ + * contract, + * newOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferOwnership( + options: BaseTransactionOptions< + | TransferOwnershipParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts new file mode 100644 index 00000000000..2647a840a19 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts @@ -0,0 +1,153 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "upgradeToAndCall" function. + */ +export type UpgradeToAndCallParams = WithOverrides<{ + newImplementation: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newImplementation"; + }>; + data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; +}>; + +export const FN_SELECTOR = "0x4f1ef286" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newImplementation", + }, + { + type: "bytes", + name: "data", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `upgradeToAndCall` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `upgradeToAndCall` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isUpgradeToAndCallSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isUpgradeToAndCallSupported(["0x..."]); + * ``` + */ +export function isUpgradeToAndCallSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "upgradeToAndCall" function. + * @param options - The options for the upgradeToAndCall function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeUpgradeToAndCallParams } from "thirdweb/extensions/tokens"; + * const result = encodeUpgradeToAndCallParams({ + * newImplementation: ..., + * data: ..., + * }); + * ``` + */ +export function encodeUpgradeToAndCallParams(options: UpgradeToAndCallParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.newImplementation, + options.data, + ]); +} + +/** + * Encodes the "upgradeToAndCall" function into a Hex string with its parameters. + * @param options - The options for the upgradeToAndCall function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeUpgradeToAndCall } from "thirdweb/extensions/tokens"; + * const result = encodeUpgradeToAndCall({ + * newImplementation: ..., + * data: ..., + * }); + * ``` + */ +export function encodeUpgradeToAndCall(options: UpgradeToAndCallParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeUpgradeToAndCallParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "upgradeToAndCall" function on the contract. + * @param options - The options for the "upgradeToAndCall" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { upgradeToAndCall } from "thirdweb/extensions/tokens"; + * + * const transaction = upgradeToAndCall({ + * contract, + * newImplementation: ..., + * data: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function upgradeToAndCall( + options: BaseTransactionOptions< + | UpgradeToAndCallParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newImplementation, resolvedOptions.data] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts new file mode 100644 index 00000000000..71294cf62fa --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "FeeConfigUpdated" event. + */ +export type FeeConfigUpdatedEventFilters = Partial<{ + target: AbiParameterToPrimitiveType<{ + type: "address"; + name: "target"; + indexed: true; + }>; + action: AbiParameterToPrimitiveType<{ + type: "bytes4"; + name: "action"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the FeeConfigUpdated event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { feeConfigUpdatedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * feeConfigUpdatedEvent({ + * target: ..., + * action: ..., + * }) + * ], + * }); + * ``` + */ +export function feeConfigUpdatedEvent( + filters: FeeConfigUpdatedEventFilters = {}, +) { + return prepareEvent({ + signature: + "event FeeConfigUpdated(address indexed target, bytes4 indexed action, address recipient, uint8 feeType, uint256 value)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts new file mode 100644 index 00000000000..31e3ff9025d --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts @@ -0,0 +1,55 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "FeeConfigUpdatedBySignature" event. + */ +export type FeeConfigUpdatedBySignatureEventFilters = Partial<{ + signer: AbiParameterToPrimitiveType<{ + type: "address"; + name: "signer"; + indexed: true; + }>; + target: AbiParameterToPrimitiveType<{ + type: "address"; + name: "target"; + indexed: true; + }>; + action: AbiParameterToPrimitiveType<{ + type: "bytes4"; + name: "action"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the FeeConfigUpdatedBySignature event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { feeConfigUpdatedBySignatureEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * feeConfigUpdatedBySignatureEvent({ + * signer: ..., + * target: ..., + * action: ..., + * }) + * ], + * }); + * ``` + */ +export function feeConfigUpdatedBySignatureEvent( + filters: FeeConfigUpdatedBySignatureEventFilters = {}, +) { + return prepareEvent({ + signature: + "event FeeConfigUpdatedBySignature(address indexed signer, address indexed target, bytes4 indexed action, address recipient, uint8 feeType, uint256 value)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeRecipientUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeRecipientUpdated.ts new file mode 100644 index 00000000000..a5a1b024dec --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeRecipientUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the FeeRecipientUpdated event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { feeRecipientUpdatedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * feeRecipientUpdatedEvent() + * ], + * }); + * ``` + */ +export function feeRecipientUpdatedEvent() { + return prepareEvent({ + signature: "event FeeRecipientUpdated(address feeRecipient)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts new file mode 100644 index 00000000000..45010946b7e --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverCanceled" event. + */ +export type OwnershipHandoverCanceledEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverCanceled event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverCanceledEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverCanceledEvent( + filters: OwnershipHandoverCanceledEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts new file mode 100644 index 00000000000..9e1813f4ebb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverRequested" event. + */ +export type OwnershipHandoverRequestedEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverRequested event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverRequestedEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverRequestedEvent( + filters: OwnershipHandoverRequestedEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts new file mode 100644 index 00000000000..1282b4f57e7 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipTransferred" event. + */ +export type OwnershipTransferredEventFilters = Partial<{ + oldOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "oldOwner"; + indexed: true; + }>; + newOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipTransferred event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipTransferredEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipTransferredEvent({ + * oldOwner: ..., + * newOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipTransferredEvent( + filters: OwnershipTransferredEventFilters = {}, +) { + return prepareEvent({ + signature: + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts new file mode 100644 index 00000000000..1737069f0dd --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "RolesUpdated" event. + */ +export type RolesUpdatedEventFilters = Partial<{ + user: AbiParameterToPrimitiveType<{ + type: "address"; + name: "user"; + indexed: true; + }>; + roles: AbiParameterToPrimitiveType<{ + type: "uint256"; + name: "roles"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the RolesUpdated event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { rolesUpdatedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * rolesUpdatedEvent({ + * user: ..., + * roles: ..., + * }) + * ], + * }); + * ``` + */ +export function rolesUpdatedEvent(filters: RolesUpdatedEventFilters = {}) { + return prepareEvent({ + signature: + "event RolesUpdated(address indexed user, uint256 indexed roles)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts new file mode 100644 index 00000000000..ed4513d6263 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x99ba5936" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + }, +] as const; + +/** + * Checks if the `ROLE_FEE_MANAGER` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ROLE_FEE_MANAGER` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isROLE_FEE_MANAGERSupported } from "thirdweb/extensions/tokens"; + * const supported = isROLE_FEE_MANAGERSupported(["0x..."]); + * ``` + */ +export function isROLE_FEE_MANAGERSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the ROLE_FEE_MANAGER function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeROLE_FEE_MANAGERResult } from "thirdweb/extensions/tokens"; + * const result = decodeROLE_FEE_MANAGERResultResult("..."); + * ``` + */ +export function decodeROLE_FEE_MANAGERResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ROLE_FEE_MANAGER" function on the contract. + * @param options - The options for the ROLE_FEE_MANAGER function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { ROLE_FEE_MANAGER } from "thirdweb/extensions/tokens"; + * + * const result = await ROLE_FEE_MANAGER({ + * contract, + * }); + * + * ``` + */ +export async function ROLE_FEE_MANAGER(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts new file mode 100644 index 00000000000..50aba48e6db --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts @@ -0,0 +1,167 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "calculateFee" function. + */ +export type CalculateFeeParams = { + payer: AbiParameterToPrimitiveType<{ type: "address"; name: "payer" }>; + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; + amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; + maxFeeAmount: AbiParameterToPrimitiveType<{ + type: "uint256"; + name: "maxFeeAmount"; + }>; +}; + +export const FN_SELECTOR = "0x69588801" as const; +const FN_INPUTS = [ + { + type: "address", + name: "payer", + }, + { + type: "bytes4", + name: "action", + }, + { + type: "uint256", + name: "amount", + }, + { + type: "uint256", + name: "maxFeeAmount", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "recipient", + }, + { + type: "uint256", + name: "feeAmount", + }, +] as const; + +/** + * Checks if the `calculateFee` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `calculateFee` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCalculateFeeSupported } from "thirdweb/extensions/tokens"; + * const supported = isCalculateFeeSupported(["0x..."]); + * ``` + */ +export function isCalculateFeeSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "calculateFee" function. + * @param options - The options for the calculateFee function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCalculateFeeParams } from "thirdweb/extensions/tokens"; + * const result = encodeCalculateFeeParams({ + * payer: ..., + * action: ..., + * amount: ..., + * maxFeeAmount: ..., + * }); + * ``` + */ +export function encodeCalculateFeeParams(options: CalculateFeeParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.payer, + options.action, + options.amount, + options.maxFeeAmount, + ]); +} + +/** + * Encodes the "calculateFee" function into a Hex string with its parameters. + * @param options - The options for the calculateFee function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCalculateFee } from "thirdweb/extensions/tokens"; + * const result = encodeCalculateFee({ + * payer: ..., + * action: ..., + * amount: ..., + * maxFeeAmount: ..., + * }); + * ``` + */ +export function encodeCalculateFee(options: CalculateFeeParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCalculateFeeParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the calculateFee function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeCalculateFeeResult } from "thirdweb/extensions/tokens"; + * const result = decodeCalculateFeeResultResult("..."); + * ``` + */ +export function decodeCalculateFeeResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result); +} + +/** + * Calls the "calculateFee" function on the contract. + * @param options - The options for the calculateFee function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { calculateFee } from "thirdweb/extensions/tokens"; + * + * const result = await calculateFee({ + * contract, + * payer: ..., + * action: ..., + * amount: ..., + * maxFeeAmount: ..., + * }); + * + * ``` + */ +export async function calculateFee( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [ + options.payer, + options.action, + options.amount, + options.maxFeeAmount, + ], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts new file mode 100644 index 00000000000..886713c2b77 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xf698da25" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "bytes32", + }, +] as const; + +/** + * Checks if the `domainSeparator` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `domainSeparator` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isDomainSeparatorSupported } from "thirdweb/extensions/tokens"; + * const supported = isDomainSeparatorSupported(["0x..."]); + * ``` + */ +export function isDomainSeparatorSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the domainSeparator function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeDomainSeparatorResult } from "thirdweb/extensions/tokens"; + * const result = decodeDomainSeparatorResultResult("..."); + * ``` + */ +export function decodeDomainSeparatorResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "domainSeparator" function on the contract. + * @param options - The options for the domainSeparator function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { domainSeparator } from "thirdweb/extensions/tokens"; + * + * const result = await domainSeparator({ + * contract, + * }); + * + * ``` + */ +export async function domainSeparator(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts new file mode 100644 index 00000000000..9e4bd706913 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts @@ -0,0 +1,95 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x84b0196e" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "bytes1", + name: "fields", + }, + { + type: "string", + name: "name", + }, + { + type: "string", + name: "version", + }, + { + type: "uint256", + name: "chainId", + }, + { + type: "address", + name: "verifyingContract", + }, + { + type: "bytes32", + name: "salt", + }, + { + type: "uint256[]", + name: "extensions", + }, +] as const; + +/** + * Checks if the `eip712Domain` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `eip712Domain` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isEip712DomainSupported } from "thirdweb/extensions/tokens"; + * const supported = isEip712DomainSupported(["0x..."]); + * ``` + */ +export function isEip712DomainSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the eip712Domain function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeEip712DomainResult } from "thirdweb/extensions/tokens"; + * const result = decodeEip712DomainResultResult("..."); + * ``` + */ +export function decodeEip712DomainResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result); +} + +/** + * Calls the "eip712Domain" function on the contract. + * @param options - The options for the eip712Domain function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { eip712Domain } from "thirdweb/extensions/tokens"; + * + * const result = await eip712Domain({ + * contract, + * }); + * + * ``` + */ +export async function eip712Domain(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts new file mode 100644 index 00000000000..60790048774 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts @@ -0,0 +1,142 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "feeConfigs" function. + */ +export type FeeConfigsParams = { + target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; +}; + +export const FN_SELECTOR = "0x758515e1" as const; +const FN_INPUTS = [ + { + type: "address", + name: "target", + }, + { + type: "bytes4", + name: "action", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "recipient", + }, + { + type: "uint8", + name: "feeType", + }, + { + type: "uint256", + name: "value", + }, +] as const; + +/** + * Checks if the `feeConfigs` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `feeConfigs` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isFeeConfigsSupported } from "thirdweb/extensions/tokens"; + * const supported = isFeeConfigsSupported(["0x..."]); + * ``` + */ +export function isFeeConfigsSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "feeConfigs" function. + * @param options - The options for the feeConfigs function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeFeeConfigsParams } from "thirdweb/extensions/tokens"; + * const result = encodeFeeConfigsParams({ + * target: ..., + * action: ..., + * }); + * ``` + */ +export function encodeFeeConfigsParams(options: FeeConfigsParams) { + return encodeAbiParameters(FN_INPUTS, [options.target, options.action]); +} + +/** + * Encodes the "feeConfigs" function into a Hex string with its parameters. + * @param options - The options for the feeConfigs function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeFeeConfigs } from "thirdweb/extensions/tokens"; + * const result = encodeFeeConfigs({ + * target: ..., + * action: ..., + * }); + * ``` + */ +export function encodeFeeConfigs(options: FeeConfigsParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeFeeConfigsParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the feeConfigs function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeFeeConfigsResult } from "thirdweb/extensions/tokens"; + * const result = decodeFeeConfigsResultResult("..."); + * ``` + */ +export function decodeFeeConfigsResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result); +} + +/** + * Calls the "feeConfigs" function on the contract. + * @param options - The options for the feeConfigs function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { feeConfigs } from "thirdweb/extensions/tokens"; + * + * const result = await feeConfigs({ + * contract, + * target: ..., + * action: ..., + * }); + * + * ``` + */ +export async function feeConfigs( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.target, options.action], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts new file mode 100644 index 00000000000..12f20f88ff4 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x46904840" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + }, +] as const; + +/** + * Checks if the `feeRecipient` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `feeRecipient` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isFeeRecipientSupported } from "thirdweb/extensions/tokens"; + * const supported = isFeeRecipientSupported(["0x..."]); + * ``` + */ +export function isFeeRecipientSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the feeRecipient function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeFeeRecipientResult } from "thirdweb/extensions/tokens"; + * const result = decodeFeeRecipientResultResult("..."); + * ``` + */ +export function decodeFeeRecipientResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "feeRecipient" function on the contract. + * @param options - The options for the feeRecipient function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { feeRecipient } from "thirdweb/extensions/tokens"; + * + * const result = await feeRecipient({ + * contract, + * }); + * + * ``` + */ +export async function feeRecipient(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts new file mode 100644 index 00000000000..43fd6562dff --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "getFeeConfig" function. + */ +export type GetFeeConfigParams = { + target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; +}; + +export const FN_SELECTOR = "0x17305ee1" as const; +const FN_INPUTS = [ + { + type: "address", + name: "target", + }, + { + type: "bytes4", + name: "action", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "tuple", + name: "config", + components: [ + { + type: "address", + name: "recipient", + }, + { + type: "uint8", + name: "feeType", + }, + { + type: "uint256", + name: "value", + }, + ], + }, +] as const; + +/** + * Checks if the `getFeeConfig` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getFeeConfig` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetFeeConfigSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetFeeConfigSupported(["0x..."]); + * ``` + */ +export function isGetFeeConfigSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "getFeeConfig" function. + * @param options - The options for the getFeeConfig function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetFeeConfigParams } from "thirdweb/extensions/tokens"; + * const result = encodeGetFeeConfigParams({ + * target: ..., + * action: ..., + * }); + * ``` + */ +export function encodeGetFeeConfigParams(options: GetFeeConfigParams) { + return encodeAbiParameters(FN_INPUTS, [options.target, options.action]); +} + +/** + * Encodes the "getFeeConfig" function into a Hex string with its parameters. + * @param options - The options for the getFeeConfig function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetFeeConfig } from "thirdweb/extensions/tokens"; + * const result = encodeGetFeeConfig({ + * target: ..., + * action: ..., + * }); + * ``` + */ +export function encodeGetFeeConfig(options: GetFeeConfigParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGetFeeConfigParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the getFeeConfig function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetFeeConfigResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetFeeConfigResultResult("..."); + * ``` + */ +export function decodeGetFeeConfigResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getFeeConfig" function on the contract. + * @param options - The options for the getFeeConfig function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getFeeConfig } from "thirdweb/extensions/tokens"; + * + * const result = await getFeeConfig({ + * contract, + * target: ..., + * action: ..., + * }); + * + * ``` + */ +export async function getFeeConfig( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.target, options.action], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts new file mode 100644 index 00000000000..1a9802f87ca --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts @@ -0,0 +1,133 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "hasAllRoles" function. + */ +export type HasAllRolesParams = { + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}; + +export const FN_SELECTOR = "0x1cd64df4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `hasAllRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `hasAllRoles` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isHasAllRolesSupported } from "thirdweb/extensions/tokens"; + * const supported = isHasAllRolesSupported(["0x..."]); + * ``` + */ +export function isHasAllRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "hasAllRoles" function. + * @param options - The options for the hasAllRoles function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeHasAllRolesParams } from "thirdweb/extensions/tokens"; + * const result = encodeHasAllRolesParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAllRolesParams(options: HasAllRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "hasAllRoles" function into a Hex string with its parameters. + * @param options - The options for the hasAllRoles function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeHasAllRoles } from "thirdweb/extensions/tokens"; + * const result = encodeHasAllRoles({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAllRoles(options: HasAllRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeHasAllRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the hasAllRoles function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeHasAllRolesResult } from "thirdweb/extensions/tokens"; + * const result = decodeHasAllRolesResultResult("..."); + * ``` + */ +export function decodeHasAllRolesResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "hasAllRoles" function on the contract. + * @param options - The options for the hasAllRoles function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { hasAllRoles } from "thirdweb/extensions/tokens"; + * + * const result = await hasAllRoles({ + * contract, + * user: ..., + * roles: ..., + * }); + * + * ``` + */ +export async function hasAllRoles( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.user, options.roles], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts new file mode 100644 index 00000000000..c788991b395 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts @@ -0,0 +1,133 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "hasAnyRole" function. + */ +export type HasAnyRoleParams = { + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}; + +export const FN_SELECTOR = "0x514e62fc" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `hasAnyRole` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `hasAnyRole` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isHasAnyRoleSupported } from "thirdweb/extensions/tokens"; + * const supported = isHasAnyRoleSupported(["0x..."]); + * ``` + */ +export function isHasAnyRoleSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "hasAnyRole" function. + * @param options - The options for the hasAnyRole function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeHasAnyRoleParams } from "thirdweb/extensions/tokens"; + * const result = encodeHasAnyRoleParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAnyRoleParams(options: HasAnyRoleParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "hasAnyRole" function into a Hex string with its parameters. + * @param options - The options for the hasAnyRole function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeHasAnyRole } from "thirdweb/extensions/tokens"; + * const result = encodeHasAnyRole({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAnyRole(options: HasAnyRoleParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeHasAnyRoleParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the hasAnyRole function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeHasAnyRoleResult } from "thirdweb/extensions/tokens"; + * const result = decodeHasAnyRoleResultResult("..."); + * ``` + */ +export function decodeHasAnyRoleResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "hasAnyRole" function on the contract. + * @param options - The options for the hasAnyRole function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { hasAnyRole } from "thirdweb/extensions/tokens"; + * + * const result = await hasAnyRole({ + * contract, + * user: ..., + * roles: ..., + * }); + * + * ``` + */ +export async function hasAnyRole( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.user, options.roles], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts new file mode 100644 index 00000000000..69277ccf299 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x8da5cb5b" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "result", + }, +] as const; + +/** + * Checks if the `owner` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `owner` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isOwnerSupported } from "thirdweb/extensions/tokens"; + * const supported = isOwnerSupported(["0x..."]); + * ``` + */ +export function isOwnerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the owner function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeOwnerResult } from "thirdweb/extensions/tokens"; + * const result = decodeOwnerResultResult("..."); + * ``` + */ +export function decodeOwnerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "owner" function on the contract. + * @param options - The options for the owner function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { owner } from "thirdweb/extensions/tokens"; + * + * const result = await owner({ + * contract, + * }); + * + * ``` + */ +export async function owner(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts new file mode 100644 index 00000000000..477cc34c0eb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts @@ -0,0 +1,135 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "ownershipHandoverExpiresAt" function. + */ +export type OwnershipHandoverExpiresAtParams = { + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}; + +export const FN_SELECTOR = "0xfee81cf4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/tokens"; + * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); + * ``` + */ +export function isOwnershipHandoverExpiresAtSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "ownershipHandoverExpiresAt" function. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/tokens"; + * const result = encodeOwnershipHandoverExpiresAtParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAtParams( + options: OwnershipHandoverExpiresAtParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/tokens"; + * const result = encodeOwnershipHandoverExpiresAt({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAt( + options: OwnershipHandoverExpiresAtParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeOwnershipHandoverExpiresAtParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the ownershipHandoverExpiresAt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/tokens"; + * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); + * ``` + */ +export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ownershipHandoverExpiresAt" function on the contract. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/tokens"; + * + * const result = await ownershipHandoverExpiresAt({ + * contract, + * pendingOwner: ..., + * }); + * + * ``` + */ +export async function ownershipHandoverExpiresAt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.pendingOwner], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts new file mode 100644 index 00000000000..f559e611df0 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts @@ -0,0 +1,122 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "rolesOf" function. + */ +export type RolesOfParams = { + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; +}; + +export const FN_SELECTOR = "0x2de94807" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "roles", + }, +] as const; + +/** + * Checks if the `rolesOf` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `rolesOf` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRolesOfSupported } from "thirdweb/extensions/tokens"; + * const supported = isRolesOfSupported(["0x..."]); + * ``` + */ +export function isRolesOfSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "rolesOf" function. + * @param options - The options for the rolesOf function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeRolesOfParams } from "thirdweb/extensions/tokens"; + * const result = encodeRolesOfParams({ + * user: ..., + * }); + * ``` + */ +export function encodeRolesOfParams(options: RolesOfParams) { + return encodeAbiParameters(FN_INPUTS, [options.user]); +} + +/** + * Encodes the "rolesOf" function into a Hex string with its parameters. + * @param options - The options for the rolesOf function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeRolesOf } from "thirdweb/extensions/tokens"; + * const result = encodeRolesOf({ + * user: ..., + * }); + * ``` + */ +export function encodeRolesOf(options: RolesOfParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeRolesOfParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the rolesOf function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeRolesOfResult } from "thirdweb/extensions/tokens"; + * const result = decodeRolesOfResultResult("..."); + * ``` + */ +export function decodeRolesOfResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "rolesOf" function on the contract. + * @param options - The options for the rolesOf function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { rolesOf } from "thirdweb/extensions/tokens"; + * + * const result = await rolesOf({ + * contract, + * user: ..., + * }); + * + * ``` + */ +export async function rolesOf(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.user], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts new file mode 100644 index 00000000000..a43a178112c --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts @@ -0,0 +1,129 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "usedNonces" function. + */ +export type UsedNoncesParams = { + signerNonce: AbiParameterToPrimitiveType<{ + type: "bytes32"; + name: "signerNonce"; + }>; +}; + +export const FN_SELECTOR = "0xfeb61724" as const; +const FN_INPUTS = [ + { + type: "bytes32", + name: "signerNonce", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + name: "used", + }, +] as const; + +/** + * Checks if the `usedNonces` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `usedNonces` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isUsedNoncesSupported } from "thirdweb/extensions/tokens"; + * const supported = isUsedNoncesSupported(["0x..."]); + * ``` + */ +export function isUsedNoncesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "usedNonces" function. + * @param options - The options for the usedNonces function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeUsedNoncesParams } from "thirdweb/extensions/tokens"; + * const result = encodeUsedNoncesParams({ + * signerNonce: ..., + * }); + * ``` + */ +export function encodeUsedNoncesParams(options: UsedNoncesParams) { + return encodeAbiParameters(FN_INPUTS, [options.signerNonce]); +} + +/** + * Encodes the "usedNonces" function into a Hex string with its parameters. + * @param options - The options for the usedNonces function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeUsedNonces } from "thirdweb/extensions/tokens"; + * const result = encodeUsedNonces({ + * signerNonce: ..., + * }); + * ``` + */ +export function encodeUsedNonces(options: UsedNoncesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeUsedNoncesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the usedNonces function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeUsedNoncesResult } from "thirdweb/extensions/tokens"; + * const result = decodeUsedNoncesResultResult("..."); + * ``` + */ +export function decodeUsedNoncesResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "usedNonces" function on the contract. + * @param options - The options for the usedNonces function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { usedNonces } from "thirdweb/extensions/tokens"; + * + * const result = await usedNonces({ + * contract, + * signerNonce: ..., + * }); + * + * ``` + */ +export async function usedNonces( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.signerNonce], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts new file mode 100644 index 00000000000..801dc93983d --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x54d1f13d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `cancelOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCancelOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCancelOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. + * @param options - The options for the "cancelOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { cancelOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = cancelOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function cancelOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts new file mode 100644 index 00000000000..a1a66858c05 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "completeOwnershipHandover" function. + */ +export type CompleteOwnershipHandoverParams = WithOverrides<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}>; + +export const FN_SELECTOR = "0xf04e283e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `completeOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCompleteOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "completeOwnershipHandover" function. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/tokens"; + * const result = encodeCompleteOwnershipHandoverParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandoverParams( + options: CompleteOwnershipHandoverParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/tokens"; + * const result = encodeCompleteOwnershipHandover({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandover( + options: CompleteOwnershipHandoverParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCompleteOwnershipHandoverParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. + * @param options - The options for the "completeOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { completeOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = completeOwnershipHandover({ + * contract, + * pendingOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function completeOwnershipHandover( + options: BaseTransactionOptions< + | CompleteOwnershipHandoverParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.pendingOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts new file mode 100644 index 00000000000..922a8038ad1 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts @@ -0,0 +1,147 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "grantRoles" function. + */ +export type GrantRolesParams = WithOverrides<{ + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}>; + +export const FN_SELECTOR = "0x1c10893f" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `grantRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `grantRoles` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGrantRolesSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isGrantRolesSupported(["0x..."]); + * ``` + */ +export function isGrantRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "grantRoles" function. + * @param options - The options for the grantRoles function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeGrantRolesParams } from "thirdweb/extensions/tokens"; + * const result = encodeGrantRolesParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeGrantRolesParams(options: GrantRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "grantRoles" function into a Hex string with its parameters. + * @param options - The options for the grantRoles function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeGrantRoles } from "thirdweb/extensions/tokens"; + * const result = encodeGrantRoles({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeGrantRoles(options: GrantRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGrantRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "grantRoles" function on the contract. + * @param options - The options for the "grantRoles" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { grantRoles } from "thirdweb/extensions/tokens"; + * + * const transaction = grantRoles({ + * contract, + * user: ..., + * roles: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function grantRoles( + options: BaseTransactionOptions< + | GrantRolesParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.user, resolvedOptions.roles] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts new file mode 100644 index 00000000000..28b4cb69e17 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts @@ -0,0 +1,50 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x715018a6" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceOwnership` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRenounceOwnershipSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRenounceOwnershipSupported(["0x..."]); + * ``` + */ +export function isRenounceOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "renounceOwnership" function on the contract. + * @param options - The options for the "renounceOwnership" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceOwnership } from "thirdweb/extensions/tokens"; + * + * const transaction = renounceOwnership(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceOwnership(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts new file mode 100644 index 00000000000..e5aebc6ebfb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "renounceRoles" function. + */ +export type RenounceRolesParams = WithOverrides<{ + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}>; + +export const FN_SELECTOR = "0x183a4f6e" as const; +const FN_INPUTS = [ + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceRoles` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRenounceRolesSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRenounceRolesSupported(["0x..."]); + * ``` + */ +export function isRenounceRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "renounceRoles" function. + * @param options - The options for the renounceRoles function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeRenounceRolesParams } from "thirdweb/extensions/tokens"; + * const result = encodeRenounceRolesParams({ + * roles: ..., + * }); + * ``` + */ +export function encodeRenounceRolesParams(options: RenounceRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.roles]); +} + +/** + * Encodes the "renounceRoles" function into a Hex string with its parameters. + * @param options - The options for the renounceRoles function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeRenounceRoles } from "thirdweb/extensions/tokens"; + * const result = encodeRenounceRoles({ + * roles: ..., + * }); + * ``` + */ +export function encodeRenounceRoles(options: RenounceRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeRenounceRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "renounceRoles" function on the contract. + * @param options - The options for the "renounceRoles" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceRoles } from "thirdweb/extensions/tokens"; + * + * const transaction = renounceRoles({ + * contract, + * roles: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceRoles( + options: BaseTransactionOptions< + | RenounceRolesParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.roles] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts new file mode 100644 index 00000000000..b6d7e224e58 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x25692962" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `requestOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRequestOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isRequestOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. + * @param options - The options for the "requestOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { requestOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = requestOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function requestOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts new file mode 100644 index 00000000000..7957513d7aa --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts @@ -0,0 +1,147 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "revokeRoles" function. + */ +export type RevokeRolesParams = WithOverrides<{ + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}>; + +export const FN_SELECTOR = "0x4a4ee7b1" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `revokeRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `revokeRoles` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRevokeRolesSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRevokeRolesSupported(["0x..."]); + * ``` + */ +export function isRevokeRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "revokeRoles" function. + * @param options - The options for the revokeRoles function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeRevokeRolesParams } from "thirdweb/extensions/tokens"; + * const result = encodeRevokeRolesParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeRevokeRolesParams(options: RevokeRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "revokeRoles" function into a Hex string with its parameters. + * @param options - The options for the revokeRoles function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeRevokeRoles } from "thirdweb/extensions/tokens"; + * const result = encodeRevokeRoles({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeRevokeRoles(options: RevokeRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeRevokeRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "revokeRoles" function on the contract. + * @param options - The options for the "revokeRoles" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { revokeRoles } from "thirdweb/extensions/tokens"; + * + * const transaction = revokeRoles({ + * contract, + * user: ..., + * roles: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function revokeRoles( + options: BaseTransactionOptions< + | RevokeRolesParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.user, resolvedOptions.roles] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts new file mode 100644 index 00000000000..51679730be4 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts @@ -0,0 +1,163 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setFeeConfig" function. + */ +export type SetFeeConfigParams = WithOverrides<{ + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; + feeType: AbiParameterToPrimitiveType<{ type: "uint8"; name: "feeType" }>; + value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; +}>; + +export const FN_SELECTOR = "0x636d2be9" as const; +const FN_INPUTS = [ + { + type: "bytes4", + name: "action", + }, + { + type: "uint8", + name: "feeType", + }, + { + type: "uint256", + name: "value", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setFeeConfig` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setFeeConfig` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSetFeeConfigSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isSetFeeConfigSupported(["0x..."]); + * ``` + */ +export function isSetFeeConfigSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setFeeConfig" function. + * @param options - The options for the setFeeConfig function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetFeeConfigParams } from "thirdweb/extensions/tokens"; + * const result = encodeSetFeeConfigParams({ + * action: ..., + * feeType: ..., + * value: ..., + * }); + * ``` + */ +export function encodeSetFeeConfigParams(options: SetFeeConfigParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.action, + options.feeType, + options.value, + ]); +} + +/** + * Encodes the "setFeeConfig" function into a Hex string with its parameters. + * @param options - The options for the setFeeConfig function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetFeeConfig } from "thirdweb/extensions/tokens"; + * const result = encodeSetFeeConfig({ + * action: ..., + * feeType: ..., + * value: ..., + * }); + * ``` + */ +export function encodeSetFeeConfig(options: SetFeeConfigParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetFeeConfigParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setFeeConfig" function on the contract. + * @param options - The options for the "setFeeConfig" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setFeeConfig } from "thirdweb/extensions/tokens"; + * + * const transaction = setFeeConfig({ + * contract, + * action: ..., + * feeType: ..., + * value: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setFeeConfig( + options: BaseTransactionOptions< + | SetFeeConfigParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.action, + resolvedOptions.feeType, + resolvedOptions.value, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts new file mode 100644 index 00000000000..46021169b71 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts @@ -0,0 +1,222 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setFeeConfigBySignature" function. + */ +export type SetFeeConfigBySignatureParams = WithOverrides<{ + target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; + recipient: AbiParameterToPrimitiveType<{ + type: "address"; + name: "recipient"; + }>; + feeType: AbiParameterToPrimitiveType<{ type: "uint8"; name: "feeType" }>; + value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; + nonce: AbiParameterToPrimitiveType<{ type: "uint256"; name: "nonce" }>; + deadline: AbiParameterToPrimitiveType<{ type: "uint256"; name: "deadline" }>; + signature: AbiParameterToPrimitiveType<{ type: "bytes"; name: "signature" }>; +}>; + +export const FN_SELECTOR = "0x9ba861e3" as const; +const FN_INPUTS = [ + { + type: "address", + name: "target", + }, + { + type: "bytes4", + name: "action", + }, + { + type: "address", + name: "recipient", + }, + { + type: "uint8", + name: "feeType", + }, + { + type: "uint256", + name: "value", + }, + { + type: "uint256", + name: "nonce", + }, + { + type: "uint256", + name: "deadline", + }, + { + type: "bytes", + name: "signature", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setFeeConfigBySignature` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setFeeConfigBySignature` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSetFeeConfigBySignatureSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isSetFeeConfigBySignatureSupported(["0x..."]); + * ``` + */ +export function isSetFeeConfigBySignatureSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setFeeConfigBySignature" function. + * @param options - The options for the setFeeConfigBySignature function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetFeeConfigBySignatureParams } from "thirdweb/extensions/tokens"; + * const result = encodeSetFeeConfigBySignatureParams({ + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * nonce: ..., + * deadline: ..., + * signature: ..., + * }); + * ``` + */ +export function encodeSetFeeConfigBySignatureParams( + options: SetFeeConfigBySignatureParams, +) { + return encodeAbiParameters(FN_INPUTS, [ + options.target, + options.action, + options.recipient, + options.feeType, + options.value, + options.nonce, + options.deadline, + options.signature, + ]); +} + +/** + * Encodes the "setFeeConfigBySignature" function into a Hex string with its parameters. + * @param options - The options for the setFeeConfigBySignature function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetFeeConfigBySignature } from "thirdweb/extensions/tokens"; + * const result = encodeSetFeeConfigBySignature({ + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * nonce: ..., + * deadline: ..., + * signature: ..., + * }); + * ``` + */ +export function encodeSetFeeConfigBySignature( + options: SetFeeConfigBySignatureParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetFeeConfigBySignatureParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setFeeConfigBySignature" function on the contract. + * @param options - The options for the "setFeeConfigBySignature" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setFeeConfigBySignature } from "thirdweb/extensions/tokens"; + * + * const transaction = setFeeConfigBySignature({ + * contract, + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * nonce: ..., + * deadline: ..., + * signature: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setFeeConfigBySignature( + options: BaseTransactionOptions< + | SetFeeConfigBySignatureParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.target, + resolvedOptions.action, + resolvedOptions.recipient, + resolvedOptions.feeType, + resolvedOptions.value, + resolvedOptions.nonce, + resolvedOptions.deadline, + resolvedOptions.signature, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts new file mode 100644 index 00000000000..28bca8913fc --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts @@ -0,0 +1,142 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setFeeRecipient" function. + */ +export type SetFeeRecipientParams = WithOverrides<{ + feeRecipient: AbiParameterToPrimitiveType<{ + type: "address"; + name: "_feeRecipient"; + }>; +}>; + +export const FN_SELECTOR = "0xe74b981b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "_feeRecipient", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setFeeRecipient` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setFeeRecipient` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSetFeeRecipientSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isSetFeeRecipientSupported(["0x..."]); + * ``` + */ +export function isSetFeeRecipientSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setFeeRecipient" function. + * @param options - The options for the setFeeRecipient function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetFeeRecipientParams } from "thirdweb/extensions/tokens"; + * const result = encodeSetFeeRecipientParams({ + * feeRecipient: ..., + * }); + * ``` + */ +export function encodeSetFeeRecipientParams(options: SetFeeRecipientParams) { + return encodeAbiParameters(FN_INPUTS, [options.feeRecipient]); +} + +/** + * Encodes the "setFeeRecipient" function into a Hex string with its parameters. + * @param options - The options for the setFeeRecipient function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetFeeRecipient } from "thirdweb/extensions/tokens"; + * const result = encodeSetFeeRecipient({ + * feeRecipient: ..., + * }); + * ``` + */ +export function encodeSetFeeRecipient(options: SetFeeRecipientParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetFeeRecipientParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setFeeRecipient" function on the contract. + * @param options - The options for the "setFeeRecipient" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setFeeRecipient } from "thirdweb/extensions/tokens"; + * + * const transaction = setFeeRecipient({ + * contract, + * feeRecipient: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setFeeRecipient( + options: BaseTransactionOptions< + | SetFeeRecipientParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.feeRecipient] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts new file mode 100644 index 00000000000..e373255b4fd --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts @@ -0,0 +1,188 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setTargetFeeConfig" function. + */ +export type SetTargetFeeConfigParams = WithOverrides<{ + target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; + action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; + recipient: AbiParameterToPrimitiveType<{ + type: "address"; + name: "recipient"; + }>; + feeType: AbiParameterToPrimitiveType<{ type: "uint8"; name: "feeType" }>; + value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; +}>; + +export const FN_SELECTOR = "0xd20caa1a" as const; +const FN_INPUTS = [ + { + type: "address", + name: "target", + }, + { + type: "bytes4", + name: "action", + }, + { + type: "address", + name: "recipient", + }, + { + type: "uint8", + name: "feeType", + }, + { + type: "uint256", + name: "value", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setTargetFeeConfig` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setTargetFeeConfig` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSetTargetFeeConfigSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isSetTargetFeeConfigSupported(["0x..."]); + * ``` + */ +export function isSetTargetFeeConfigSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setTargetFeeConfig" function. + * @param options - The options for the setTargetFeeConfig function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetTargetFeeConfigParams } from "thirdweb/extensions/tokens"; + * const result = encodeSetTargetFeeConfigParams({ + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * }); + * ``` + */ +export function encodeSetTargetFeeConfigParams( + options: SetTargetFeeConfigParams, +) { + return encodeAbiParameters(FN_INPUTS, [ + options.target, + options.action, + options.recipient, + options.feeType, + options.value, + ]); +} + +/** + * Encodes the "setTargetFeeConfig" function into a Hex string with its parameters. + * @param options - The options for the setTargetFeeConfig function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetTargetFeeConfig } from "thirdweb/extensions/tokens"; + * const result = encodeSetTargetFeeConfig({ + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * }); + * ``` + */ +export function encodeSetTargetFeeConfig(options: SetTargetFeeConfigParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetTargetFeeConfigParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setTargetFeeConfig" function on the contract. + * @param options - The options for the "setTargetFeeConfig" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setTargetFeeConfig } from "thirdweb/extensions/tokens"; + * + * const transaction = setTargetFeeConfig({ + * contract, + * target: ..., + * action: ..., + * recipient: ..., + * feeType: ..., + * value: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setTargetFeeConfig( + options: BaseTransactionOptions< + | SetTargetFeeConfigParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.target, + resolvedOptions.action, + resolvedOptions.recipient, + resolvedOptions.feeType, + resolvedOptions.value, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts new file mode 100644 index 00000000000..c365c21efdb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts @@ -0,0 +1,141 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferOwnership" function. + */ +export type TransferOwnershipParams = WithOverrides<{ + newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; +}>; + +export const FN_SELECTOR = "0xf2fde38b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `transferOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferOwnership` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isTransferOwnershipSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isTransferOwnershipSupported(["0x..."]); + * ``` + */ +export function isTransferOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferOwnership" function. + * @param options - The options for the transferOwnership function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferOwnershipParams } from "thirdweb/extensions/tokens"; + * const result = encodeTransferOwnershipParams({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnershipParams( + options: TransferOwnershipParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.newOwner]); +} + +/** + * Encodes the "transferOwnership" function into a Hex string with its parameters. + * @param options - The options for the transferOwnership function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferOwnership } from "thirdweb/extensions/tokens"; + * const result = encodeTransferOwnership({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnership(options: TransferOwnershipParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferOwnershipParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferOwnership" function on the contract. + * @param options - The options for the "transferOwnership" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferOwnership } from "thirdweb/extensions/tokens"; + * + * const transaction = transferOwnership({ + * contract, + * newOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferOwnership( + options: BaseTransactionOptions< + | TransferOwnershipParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts new file mode 100644 index 00000000000..23cbdedda13 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "PositionLocked" event. + */ +export type PositionLockedEventFilters = Partial<{ + owner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "owner"; + indexed: true; + }>; + asset: AbiParameterToPrimitiveType<{ + type: "address"; + name: "asset"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the PositionLocked event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { positionLockedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * positionLockedEvent({ + * owner: ..., + * asset: ..., + * }) + * ], + * }); + * ``` + */ +export function positionLockedEvent(filters: PositionLockedEventFilters = {}) { + return prepareEvent({ + signature: + "event PositionLocked(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, address recipient, address referrer)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts new file mode 100644 index 00000000000..7558d80ed4c --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "RewardCollected" event. + */ +export type RewardCollectedEventFilters = Partial<{ + owner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "owner"; + indexed: true; + }>; + asset: AbiParameterToPrimitiveType<{ + type: "address"; + name: "asset"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the RewardCollected event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { rewardCollectedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * rewardCollectedEvent({ + * owner: ..., + * asset: ..., + * }) + * ], + * }); + * ``` + */ +export function rewardCollectedEvent( + filters: RewardCollectedEventFilters = {}, +) { + return prepareEvent({ + signature: + "event RewardCollected(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, uint256 amount0, uint256 amount1)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts new file mode 100644 index 00000000000..a0562899bf9 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xd0fb0203" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + }, +] as const; + +/** + * Checks if the `feeManager` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `feeManager` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isFeeManagerSupported } from "thirdweb/extensions/tokens"; + * const supported = isFeeManagerSupported(["0x..."]); + * ``` + */ +export function isFeeManagerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the feeManager function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeFeeManagerResult } from "thirdweb/extensions/tokens"; + * const result = decodeFeeManagerResultResult("..."); + * ``` + */ +export function decodeFeeManagerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "feeManager" function on the contract. + * @param options - The options for the feeManager function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { feeManager } from "thirdweb/extensions/tokens"; + * + * const result = await feeManager({ + * contract, + * }); + * + * ``` + */ +export async function feeManager(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts new file mode 100644 index 00000000000..cd62468bd69 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts @@ -0,0 +1,150 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "positions" function. + */ +export type PositionsParams = { + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; +}; + +export const FN_SELECTOR = "0x4bd21445" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, + { + type: "address", + name: "asset", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "positionManager", + }, + { + type: "uint256", + name: "tokenId", + }, + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "uint16", + name: "referrerBps", + }, +] as const; + +/** + * Checks if the `positions` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `positions` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isPositionsSupported } from "thirdweb/extensions/tokens"; + * const supported = isPositionsSupported(["0x..."]); + * ``` + */ +export function isPositionsSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "positions" function. + * @param options - The options for the positions function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodePositionsParams } from "thirdweb/extensions/tokens"; + * const result = encodePositionsParams({ + * owner: ..., + * asset: ..., + * }); + * ``` + */ +export function encodePositionsParams(options: PositionsParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner, options.asset]); +} + +/** + * Encodes the "positions" function into a Hex string with its parameters. + * @param options - The options for the positions function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodePositions } from "thirdweb/extensions/tokens"; + * const result = encodePositions({ + * owner: ..., + * asset: ..., + * }); + * ``` + */ +export function encodePositions(options: PositionsParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodePositionsParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the positions function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodePositionsResult } from "thirdweb/extensions/tokens"; + * const result = decodePositionsResultResult("..."); + * ``` + */ +export function decodePositionsResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result); +} + +/** + * Calls the "positions" function on the contract. + * @param options - The options for the positions function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { positions } from "thirdweb/extensions/tokens"; + * + * const result = await positions({ + * contract, + * owner: ..., + * asset: ..., + * }); + * + * ``` + */ +export async function positions( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.owner, options.asset], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts new file mode 100644 index 00000000000..cbedd02d2de --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x39406c50" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + }, +] as const; + +/** + * Checks if the `v3PositionManager` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `v3PositionManager` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isV3PositionManagerSupported } from "thirdweb/extensions/tokens"; + * const supported = isV3PositionManagerSupported(["0x..."]); + * ``` + */ +export function isV3PositionManagerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the v3PositionManager function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeV3PositionManagerResult } from "thirdweb/extensions/tokens"; + * const result = decodeV3PositionManagerResultResult("..."); + * ``` + */ +export function decodeV3PositionManagerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "v3PositionManager" function on the contract. + * @param options - The options for the v3PositionManager function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { v3PositionManager } from "thirdweb/extensions/tokens"; + * + * const result = await v3PositionManager({ + * contract, + * }); + * + * ``` + */ +export async function v3PositionManager(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts new file mode 100644 index 00000000000..2977f674304 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0xe2f4dd43" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + }, +] as const; + +/** + * Checks if the `v4PositionManager` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `v4PositionManager` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isV4PositionManagerSupported } from "thirdweb/extensions/tokens"; + * const supported = isV4PositionManagerSupported(["0x..."]); + * ``` + */ +export function isV4PositionManagerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the v4PositionManager function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeV4PositionManagerResult } from "thirdweb/extensions/tokens"; + * const result = decodeV4PositionManagerResultResult("..."); + * ``` + */ +export function decodeV4PositionManagerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "v4PositionManager" function on the contract. + * @param options - The options for the v4PositionManager function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { v4PositionManager } from "thirdweb/extensions/tokens"; + * + * const result = await v4PositionManager({ + * contract, + * }); + * + * ``` + */ +export async function v4PositionManager(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts new file mode 100644 index 00000000000..9affd3f9efb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts @@ -0,0 +1,164 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "collectReward" function. + */ +export type CollectRewardParams = WithOverrides<{ + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; +}>; + +export const FN_SELECTOR = "0x7bb87377" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, + { + type: "address", + name: "asset", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "token0", + }, + { + type: "address", + name: "token1", + }, + { + type: "uint256", + name: "amount0", + }, + { + type: "uint256", + name: "amount1", + }, +] as const; + +/** + * Checks if the `collectReward` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `collectReward` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCollectRewardSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCollectRewardSupported(["0x..."]); + * ``` + */ +export function isCollectRewardSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "collectReward" function. + * @param options - The options for the collectReward function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCollectRewardParams } from "thirdweb/extensions/tokens"; + * const result = encodeCollectRewardParams({ + * owner: ..., + * asset: ..., + * }); + * ``` + */ +export function encodeCollectRewardParams(options: CollectRewardParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner, options.asset]); +} + +/** + * Encodes the "collectReward" function into a Hex string with its parameters. + * @param options - The options for the collectReward function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCollectReward } from "thirdweb/extensions/tokens"; + * const result = encodeCollectReward({ + * owner: ..., + * asset: ..., + * }); + * ``` + */ +export function encodeCollectReward(options: CollectRewardParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCollectRewardParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "collectReward" function on the contract. + * @param options - The options for the "collectReward" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { collectReward } from "thirdweb/extensions/tokens"; + * + * const transaction = collectReward({ + * contract, + * owner: ..., + * asset: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function collectReward( + options: BaseTransactionOptions< + | CollectRewardParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.owner, resolvedOptions.asset] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts new file mode 100644 index 00000000000..1fec63d2dc4 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts @@ -0,0 +1,202 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "lockPosition" function. + */ +export type LockPositionParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; + positionManager: AbiParameterToPrimitiveType<{ + type: "address"; + name: "positionManager"; + }>; + tokenId: AbiParameterToPrimitiveType<{ type: "uint256"; name: "tokenId" }>; + recipient: AbiParameterToPrimitiveType<{ + type: "address"; + name: "recipient"; + }>; + referrer: AbiParameterToPrimitiveType<{ type: "address"; name: "referrer" }>; + referrerBps: AbiParameterToPrimitiveType<{ + type: "uint16"; + name: "referrerBps"; + }>; +}>; + +export const FN_SELECTOR = "0x2cde40c2" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, + { + type: "address", + name: "positionManager", + }, + { + type: "uint256", + name: "tokenId", + }, + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "uint16", + name: "referrerBps", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `lockPosition` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `lockPosition` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isLockPositionSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isLockPositionSupported(["0x..."]); + * ``` + */ +export function isLockPositionSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "lockPosition" function. + * @param options - The options for the lockPosition function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeLockPositionParams } from "thirdweb/extensions/tokens"; + * const result = encodeLockPositionParams({ + * asset: ..., + * positionManager: ..., + * tokenId: ..., + * recipient: ..., + * referrer: ..., + * referrerBps: ..., + * }); + * ``` + */ +export function encodeLockPositionParams(options: LockPositionParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.asset, + options.positionManager, + options.tokenId, + options.recipient, + options.referrer, + options.referrerBps, + ]); +} + +/** + * Encodes the "lockPosition" function into a Hex string with its parameters. + * @param options - The options for the lockPosition function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeLockPosition } from "thirdweb/extensions/tokens"; + * const result = encodeLockPosition({ + * asset: ..., + * positionManager: ..., + * tokenId: ..., + * recipient: ..., + * referrer: ..., + * referrerBps: ..., + * }); + * ``` + */ +export function encodeLockPosition(options: LockPositionParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeLockPositionParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "lockPosition" function on the contract. + * @param options - The options for the "lockPosition" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { lockPosition } from "thirdweb/extensions/tokens"; + * + * const transaction = lockPosition({ + * contract, + * asset: ..., + * positionManager: ..., + * tokenId: ..., + * recipient: ..., + * referrer: ..., + * referrerBps: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function lockPosition( + options: BaseTransactionOptions< + | LockPositionParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [ + resolvedOptions.asset, + resolvedOptions.positionManager, + resolvedOptions.tokenId, + resolvedOptions.recipient, + resolvedOptions.referrer, + resolvedOptions.referrerBps, + ] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterDisabled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterDisabled.ts new file mode 100644 index 00000000000..deace9d05de --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterDisabled.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the AdapterDisabled event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { adapterDisabledEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * adapterDisabledEvent() + * ], + * }); + * ``` + */ +export function adapterDisabledEvent() { + return prepareEvent({ + signature: "event AdapterDisabled(uint8 adapterType)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterEnabled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterEnabled.ts new file mode 100644 index 00000000000..20810cdef23 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterEnabled.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the AdapterEnabled event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { adapterEnabledEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * adapterEnabledEvent() + * ], + * }); + * ``` + */ +export function adapterEnabledEvent() { + return prepareEvent({ + signature: "event AdapterEnabled(uint8 adapterType)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Initialized.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Initialized.ts new file mode 100644 index 00000000000..1061653b3d4 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Initialized.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the Initialized event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { initializedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * initializedEvent() + * ], + * }); + * ``` + */ +export function initializedEvent() { + return prepareEvent({ + signature: "event Initialized(uint64 version)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts new file mode 100644 index 00000000000..45010946b7e --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverCanceled" event. + */ +export type OwnershipHandoverCanceledEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverCanceled event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverCanceledEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverCanceledEvent( + filters: OwnershipHandoverCanceledEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts new file mode 100644 index 00000000000..9e1813f4ebb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverRequested" event. + */ +export type OwnershipHandoverRequestedEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverRequested event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverRequestedEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverRequestedEvent( + filters: OwnershipHandoverRequestedEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts new file mode 100644 index 00000000000..1282b4f57e7 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipTransferred" event. + */ +export type OwnershipTransferredEventFilters = Partial<{ + oldOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "oldOwner"; + indexed: true; + }>; + newOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipTransferred event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipTransferredEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipTransferredEvent({ + * oldOwner: ..., + * newOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipTransferredEvent( + filters: OwnershipTransferredEventFilters = {}, +) { + return prepareEvent({ + signature: + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts new file mode 100644 index 00000000000..3a27b26fd27 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts @@ -0,0 +1,53 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "SwapExecuted" event. + */ +export type SwapExecutedEventFilters = Partial<{ + sender: AbiParameterToPrimitiveType<{ + type: "address"; + name: "sender"; + indexed: true; + }>; + tokenIn: AbiParameterToPrimitiveType<{ + type: "address"; + name: "tokenIn"; + indexed: true; + }>; + tokenOut: AbiParameterToPrimitiveType<{ + type: "address"; + name: "tokenOut"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the SwapExecuted event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { swapExecutedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * swapExecutedEvent({ + * sender: ..., + * tokenIn: ..., + * tokenOut: ..., + * }) + * ], + * }); + * ``` + */ +export function swapExecutedEvent(filters: SwapExecutedEventFilters = {}) { + return prepareEvent({ + signature: + "event SwapExecuted(address indexed sender, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut, uint8 adapterUsed)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts new file mode 100644 index 00000000000..5009e49908a --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts @@ -0,0 +1,40 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "Upgraded" event. + */ +export type UpgradedEventFilters = Partial<{ + implementation: AbiParameterToPrimitiveType<{ + type: "address"; + name: "implementation"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the Upgraded event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { upgradedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * upgradedEvent({ + * implementation: ..., + * }) + * ], + * }); + * ``` + */ +export function upgradedEvent(filters: UpgradedEventFilters = {}) { + return prepareEvent({ + signature: "event Upgraded(address indexed implementation)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts new file mode 100644 index 00000000000..8b9fdf864d4 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x31f7d964" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + }, +] as const; + +/** + * Checks if the `NATIVE_TOKEN` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `NATIVE_TOKEN` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isNATIVE_TOKENSupported } from "thirdweb/extensions/tokens"; + * const supported = isNATIVE_TOKENSupported(["0x..."]); + * ``` + */ +export function isNATIVE_TOKENSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the NATIVE_TOKEN function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeNATIVE_TOKENResult } from "thirdweb/extensions/tokens"; + * const result = decodeNATIVE_TOKENResultResult("..."); + * ``` + */ +export function decodeNATIVE_TOKENResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "NATIVE_TOKEN" function on the contract. + * @param options - The options for the NATIVE_TOKEN function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { NATIVE_TOKEN } from "thirdweb/extensions/tokens"; + * + * const result = await NATIVE_TOKEN({ + * contract, + * }); + * + * ``` + */ +export async function NATIVE_TOKEN(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts new file mode 100644 index 00000000000..69277ccf299 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x8da5cb5b" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "result", + }, +] as const; + +/** + * Checks if the `owner` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `owner` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isOwnerSupported } from "thirdweb/extensions/tokens"; + * const supported = isOwnerSupported(["0x..."]); + * ``` + */ +export function isOwnerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the owner function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeOwnerResult } from "thirdweb/extensions/tokens"; + * const result = decodeOwnerResultResult("..."); + * ``` + */ +export function decodeOwnerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "owner" function on the contract. + * @param options - The options for the owner function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { owner } from "thirdweb/extensions/tokens"; + * + * const result = await owner({ + * contract, + * }); + * + * ``` + */ +export async function owner(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts new file mode 100644 index 00000000000..477cc34c0eb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts @@ -0,0 +1,135 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "ownershipHandoverExpiresAt" function. + */ +export type OwnershipHandoverExpiresAtParams = { + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}; + +export const FN_SELECTOR = "0xfee81cf4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/tokens"; + * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); + * ``` + */ +export function isOwnershipHandoverExpiresAtSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "ownershipHandoverExpiresAt" function. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/tokens"; + * const result = encodeOwnershipHandoverExpiresAtParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAtParams( + options: OwnershipHandoverExpiresAtParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/tokens"; + * const result = encodeOwnershipHandoverExpiresAt({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAt( + options: OwnershipHandoverExpiresAtParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeOwnershipHandoverExpiresAtParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the ownershipHandoverExpiresAt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/tokens"; + * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); + * ``` + */ +export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ownershipHandoverExpiresAt" function on the contract. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/tokens"; + * + * const result = await ownershipHandoverExpiresAt({ + * contract, + * pendingOwner: ..., + * }); + * + * ``` + */ +export async function ownershipHandoverExpiresAt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.pendingOwner], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts new file mode 100644 index 00000000000..e4a93094309 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts @@ -0,0 +1,70 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x52d1902d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "bytes32", + }, +] as const; + +/** + * Checks if the `proxiableUUID` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `proxiableUUID` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isProxiableUUIDSupported } from "thirdweb/extensions/tokens"; + * const supported = isProxiableUUIDSupported(["0x..."]); + * ``` + */ +export function isProxiableUUIDSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the proxiableUUID function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeProxiableUUIDResult } from "thirdweb/extensions/tokens"; + * const result = decodeProxiableUUIDResultResult("..."); + * ``` + */ +export function decodeProxiableUUIDResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "proxiableUUID" function on the contract. + * @param options - The options for the proxiableUUID function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { proxiableUUID } from "thirdweb/extensions/tokens"; + * + * const result = await proxiableUUID({ + * contract, + * }); + * + * ``` + */ +export async function proxiableUUID(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts new file mode 100644 index 00000000000..801dc93983d --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x54d1f13d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `cancelOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCancelOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCancelOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. + * @param options - The options for the "cancelOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { cancelOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = cancelOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function cancelOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts new file mode 100644 index 00000000000..a1a66858c05 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "completeOwnershipHandover" function. + */ +export type CompleteOwnershipHandoverParams = WithOverrides<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}>; + +export const FN_SELECTOR = "0xf04e283e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `completeOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCompleteOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "completeOwnershipHandover" function. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/tokens"; + * const result = encodeCompleteOwnershipHandoverParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandoverParams( + options: CompleteOwnershipHandoverParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/tokens"; + * const result = encodeCompleteOwnershipHandover({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandover( + options: CompleteOwnershipHandoverParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCompleteOwnershipHandoverParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. + * @param options - The options for the "completeOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { completeOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = completeOwnershipHandover({ + * contract, + * pendingOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function completeOwnershipHandover( + options: BaseTransactionOptions< + | CompleteOwnershipHandoverParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.pendingOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts new file mode 100644 index 00000000000..f2792076b4c --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts @@ -0,0 +1,202 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "createPool" function. + */ +export type CreatePoolParams = WithOverrides<{ + createPoolConfig: AbiParameterToPrimitiveType<{ + type: "tuple"; + name: "createPoolConfig"; + components: [ + { type: "address"; name: "recipient" }, + { type: "address"; name: "referrer" }, + { type: "address"; name: "tokenA" }, + { type: "address"; name: "tokenB" }, + { type: "uint256"; name: "amountA" }, + { type: "uint256"; name: "amountB" }, + { type: "bytes"; name: "data" }, + ]; + }>; +}>; + +export const FN_SELECTOR = "0xa1970c55" as const; +const FN_INPUTS = [ + { + type: "tuple", + name: "createPoolConfig", + components: [ + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "address", + name: "tokenA", + }, + { + type: "address", + name: "tokenB", + }, + { + type: "uint256", + name: "amountA", + }, + { + type: "uint256", + name: "amountB", + }, + { + type: "bytes", + name: "data", + }, + ], + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "pool", + }, + { + type: "address", + name: "position", + }, + { + type: "uint256", + name: "positionId", + }, + { + type: "uint256", + name: "refundAmount0", + }, + { + type: "uint256", + name: "refundAmount1", + }, +] as const; + +/** + * Checks if the `createPool` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `createPool` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCreatePoolSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCreatePoolSupported(["0x..."]); + * ``` + */ +export function isCreatePoolSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "createPool" function. + * @param options - The options for the createPool function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCreatePoolParams } from "thirdweb/extensions/tokens"; + * const result = encodeCreatePoolParams({ + * createPoolConfig: ..., + * }); + * ``` + */ +export function encodeCreatePoolParams(options: CreatePoolParams) { + return encodeAbiParameters(FN_INPUTS, [options.createPoolConfig]); +} + +/** + * Encodes the "createPool" function into a Hex string with its parameters. + * @param options - The options for the createPool function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCreatePool } from "thirdweb/extensions/tokens"; + * const result = encodeCreatePool({ + * createPoolConfig: ..., + * }); + * ``` + */ +export function encodeCreatePool(options: CreatePoolParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCreatePoolParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "createPool" function on the contract. + * @param options - The options for the "createPool" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { createPool } from "thirdweb/extensions/tokens"; + * + * const transaction = createPool({ + * contract, + * createPoolConfig: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function createPool( + options: BaseTransactionOptions< + | CreatePoolParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.createPoolConfig] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts new file mode 100644 index 00000000000..f9fad21e9e3 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts @@ -0,0 +1,142 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "disableAdapter" function. + */ +export type DisableAdapterParams = WithOverrides<{ + adapterType: AbiParameterToPrimitiveType<{ + type: "uint8"; + name: "adapterType"; + }>; +}>; + +export const FN_SELECTOR = "0xa3f3a7bd" as const; +const FN_INPUTS = [ + { + type: "uint8", + name: "adapterType", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `disableAdapter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `disableAdapter` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isDisableAdapterSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isDisableAdapterSupported(["0x..."]); + * ``` + */ +export function isDisableAdapterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "disableAdapter" function. + * @param options - The options for the disableAdapter function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeDisableAdapterParams } from "thirdweb/extensions/tokens"; + * const result = encodeDisableAdapterParams({ + * adapterType: ..., + * }); + * ``` + */ +export function encodeDisableAdapterParams(options: DisableAdapterParams) { + return encodeAbiParameters(FN_INPUTS, [options.adapterType]); +} + +/** + * Encodes the "disableAdapter" function into a Hex string with its parameters. + * @param options - The options for the disableAdapter function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeDisableAdapter } from "thirdweb/extensions/tokens"; + * const result = encodeDisableAdapter({ + * adapterType: ..., + * }); + * ``` + */ +export function encodeDisableAdapter(options: DisableAdapterParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeDisableAdapterParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "disableAdapter" function on the contract. + * @param options - The options for the "disableAdapter" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { disableAdapter } from "thirdweb/extensions/tokens"; + * + * const transaction = disableAdapter({ + * contract, + * adapterType: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function disableAdapter( + options: BaseTransactionOptions< + | DisableAdapterParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.adapterType] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts new file mode 100644 index 00000000000..c1e3a199c9d --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts @@ -0,0 +1,150 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "enableAdapter" function. + */ +export type EnableAdapterParams = WithOverrides<{ + adapterType: AbiParameterToPrimitiveType<{ + type: "uint8"; + name: "adapterType"; + }>; + config: AbiParameterToPrimitiveType<{ type: "bytes"; name: "config" }>; +}>; + +export const FN_SELECTOR = "0xab348bdb" as const; +const FN_INPUTS = [ + { + type: "uint8", + name: "adapterType", + }, + { + type: "bytes", + name: "config", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `enableAdapter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `enableAdapter` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isEnableAdapterSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isEnableAdapterSupported(["0x..."]); + * ``` + */ +export function isEnableAdapterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "enableAdapter" function. + * @param options - The options for the enableAdapter function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeEnableAdapterParams } from "thirdweb/extensions/tokens"; + * const result = encodeEnableAdapterParams({ + * adapterType: ..., + * config: ..., + * }); + * ``` + */ +export function encodeEnableAdapterParams(options: EnableAdapterParams) { + return encodeAbiParameters(FN_INPUTS, [options.adapterType, options.config]); +} + +/** + * Encodes the "enableAdapter" function into a Hex string with its parameters. + * @param options - The options for the enableAdapter function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeEnableAdapter } from "thirdweb/extensions/tokens"; + * const result = encodeEnableAdapter({ + * adapterType: ..., + * config: ..., + * }); + * ``` + */ +export function encodeEnableAdapter(options: EnableAdapterParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeEnableAdapterParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "enableAdapter" function on the contract. + * @param options - The options for the "enableAdapter" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { enableAdapter } from "thirdweb/extensions/tokens"; + * + * const transaction = enableAdapter({ + * contract, + * adapterType: ..., + * config: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function enableAdapter( + options: BaseTransactionOptions< + | EnableAdapterParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.adapterType, resolvedOptions.config] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts new file mode 100644 index 00000000000..ef13191b19d --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "initialize" function. + */ +export type InitializeParams = WithOverrides<{ + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; +}>; + +export const FN_SELECTOR = "0xc4d66de8" as const; +const FN_INPUTS = [ + { + type: "address", + name: "owner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `initialize` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `initialize` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isInitializeSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isInitializeSupported(["0x..."]); + * ``` + */ +export function isInitializeSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "initialize" function. + * @param options - The options for the initialize function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeInitializeParams } from "thirdweb/extensions/tokens"; + * const result = encodeInitializeParams({ + * owner: ..., + * }); + * ``` + */ +export function encodeInitializeParams(options: InitializeParams) { + return encodeAbiParameters(FN_INPUTS, [options.owner]); +} + +/** + * Encodes the "initialize" function into a Hex string with its parameters. + * @param options - The options for the initialize function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeInitialize } from "thirdweb/extensions/tokens"; + * const result = encodeInitialize({ + * owner: ..., + * }); + * ``` + */ +export function encodeInitialize(options: InitializeParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeInitializeParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "initialize" function on the contract. + * @param options - The options for the "initialize" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { initialize } from "thirdweb/extensions/tokens"; + * + * const transaction = initialize({ + * contract, + * owner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function initialize( + options: BaseTransactionOptions< + | InitializeParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.owner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts new file mode 100644 index 00000000000..28b4cb69e17 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts @@ -0,0 +1,50 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x715018a6" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceOwnership` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRenounceOwnershipSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRenounceOwnershipSupported(["0x..."]); + * ``` + */ +export function isRenounceOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "renounceOwnership" function on the contract. + * @param options - The options for the "renounceOwnership" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceOwnership } from "thirdweb/extensions/tokens"; + * + * const transaction = renounceOwnership(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceOwnership(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts new file mode 100644 index 00000000000..b6d7e224e58 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x25692962" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `requestOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRequestOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isRequestOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. + * @param options - The options for the "requestOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { requestOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = requestOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function requestOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/swap.ts similarity index 53% rename from packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/Router/write/swap.ts index da24e172a44..60f688e7332 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createMarket.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/swap.ts @@ -1,46 +1,39 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "createMarket" function. + * Represents the parameters for the "swap" function. */ -export type CreateMarketParams = WithOverrides<{ - createMarketConfig: AbiParameterToPrimitiveType<{ +export type SwapParams = WithOverrides<{ + config: AbiParameterToPrimitiveType<{ type: "tuple"; - name: "createMarketConfig"; + name: "config"; components: [ - { type: "address"; name: "creator" }, { type: "address"; name: "tokenIn" }, { type: "address"; name: "tokenOut" }, - { type: "uint256"; name: "pricePerUnit" }, - { type: "uint8"; name: "priceDenominator" }, - { type: "uint256"; name: "totalSupply" }, - { type: "uint48"; name: "startTime" }, - { type: "uint48"; name: "endTime" }, - { type: "uint256"; name: "tokenId" }, - { type: "address"; name: "hook" }, - { type: "bytes"; name: "createHookData" }, + { type: "uint256"; name: "amountIn" }, + { type: "uint256"; name: "minAmountOut" }, + { type: "address"; name: "recipient" }, + { type: "address"; name: "refundRecipient" }, + { type: "uint256"; name: "deadline" }, + { type: "bytes"; name: "data" }, ]; }>; }>; -export const FN_SELECTOR = "0xc6d6be45" as const; +export const FN_SELECTOR = "0x8892376c" as const; const FN_INPUTS = [ { type: "tuple", - name: "createMarketConfig", + name: "config", components: [ - { - type: "address", - name: "creator", - }, { type: "address", name: "tokenIn", @@ -51,67 +44,65 @@ const FN_INPUTS = [ }, { type: "uint256", - name: "pricePerUnit", - }, - { - type: "uint8", - name: "priceDenominator", + name: "amountIn", }, { type: "uint256", - name: "totalSupply", + name: "minAmountOut", }, { - type: "uint48", - name: "startTime", + type: "address", + name: "recipient", }, { - type: "uint48", - name: "endTime", + type: "address", + name: "refundRecipient", }, { type: "uint256", - name: "tokenId", - }, - { - type: "address", - name: "hook", + name: "deadline", }, { type: "bytes", - name: "createHookData", + name: "data", }, ], }, ] as const; const FN_OUTPUTS = [ { - type: "address", - name: "sale", - }, - { - type: "address", - name: "position", - }, - { - type: "uint256", - name: "positionId", + type: "tuple", + name: "result", + components: [ + { + type: "uint256", + name: "amountIn", + }, + { + type: "uint256", + name: "amountOut", + }, + { + type: "address", + name: "source", + }, + ], }, ] as const; /** - * Checks if the `createMarket` method is supported by the given contract. + * Checks if the `swap` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `createMarket` method is supported. - * @extension ASSETS + * @returns A boolean indicating if the `swap` method is supported. + * @extension TOKENS * @example * ```ts - * import { isCreateMarketSupported } from "thirdweb/extensions/assets"; + * import { isSwapSupported } from "thirdweb/extensions/tokens"; * - * const supported = isCreateMarketSupported(["0x..."]); + * const supported = isSwapSupported(["0x..."]); * ``` */ -export function isCreateMarketSupported(availableSelectors: string[]) { +export function isSwapSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -119,57 +110,55 @@ export function isCreateMarketSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "createMarket" function. - * @param options - The options for the createMarket function. + * Encodes the parameters for the "swap" function. + * @param options - The options for the swap function. * @returns The encoded ABI parameters. - * @extension ASSETS + * @extension TOKENS * @example * ```ts - * import { encodeCreateMarketParams } from "thirdweb/extensions/assets"; - * const result = encodeCreateMarketParams({ - * createMarketConfig: ..., + * import { encodeSwapParams } from "thirdweb/extensions/tokens"; + * const result = encodeSwapParams({ + * config: ..., * }); * ``` */ -export function encodeCreateMarketParams(options: CreateMarketParams) { - return encodeAbiParameters(FN_INPUTS, [options.createMarketConfig]); +export function encodeSwapParams(options: SwapParams) { + return encodeAbiParameters(FN_INPUTS, [options.config]); } /** - * Encodes the "createMarket" function into a Hex string with its parameters. - * @param options - The options for the createMarket function. + * Encodes the "swap" function into a Hex string with its parameters. + * @param options - The options for the swap function. * @returns The encoded hexadecimal string. - * @extension ASSETS + * @extension TOKENS * @example * ```ts - * import { encodeCreateMarket } from "thirdweb/extensions/assets"; - * const result = encodeCreateMarket({ - * createMarketConfig: ..., + * import { encodeSwap } from "thirdweb/extensions/tokens"; + * const result = encodeSwap({ + * config: ..., * }); * ``` */ -export function encodeCreateMarket(options: CreateMarketParams) { +export function encodeSwap(options: SwapParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeCreateMarketParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; + encodeSwapParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "createMarket" function on the contract. - * @param options - The options for the "createMarket" function. + * Prepares a transaction to call the "swap" function on the contract. + * @param options - The options for the "swap" function. * @returns A prepared transaction object. - * @extension ASSETS + * @extension TOKENS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { createMarket } from "thirdweb/extensions/assets"; + * import { swap } from "thirdweb/extensions/tokens"; * - * const transaction = createMarket({ + * const transaction = swap({ * contract, - * createMarketConfig: ..., + * config: ..., * overrides: { * ... * } @@ -179,11 +168,11 @@ export function encodeCreateMarket(options: CreateMarketParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function createMarket( +export function swap( options: BaseTransactionOptions< - | CreateMarketParams + | SwapParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { @@ -196,7 +185,7 @@ export function createMarket( method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, params: async () => { const resolvedOptions = await asyncOptions(); - return [resolvedOptions.createMarketConfig] as const; + return [resolvedOptions.config] as const; }, value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts new file mode 100644 index 00000000000..c365c21efdb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts @@ -0,0 +1,141 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferOwnership" function. + */ +export type TransferOwnershipParams = WithOverrides<{ + newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; +}>; + +export const FN_SELECTOR = "0xf2fde38b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `transferOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferOwnership` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isTransferOwnershipSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isTransferOwnershipSupported(["0x..."]); + * ``` + */ +export function isTransferOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferOwnership" function. + * @param options - The options for the transferOwnership function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferOwnershipParams } from "thirdweb/extensions/tokens"; + * const result = encodeTransferOwnershipParams({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnershipParams( + options: TransferOwnershipParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.newOwner]); +} + +/** + * Encodes the "transferOwnership" function into a Hex string with its parameters. + * @param options - The options for the transferOwnership function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferOwnership } from "thirdweb/extensions/tokens"; + * const result = encodeTransferOwnership({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnership(options: TransferOwnershipParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferOwnershipParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferOwnership" function on the contract. + * @param options - The options for the "transferOwnership" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferOwnership } from "thirdweb/extensions/tokens"; + * + * const transaction = transferOwnership({ + * contract, + * newOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferOwnership( + options: BaseTransactionOptions< + | TransferOwnershipParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts new file mode 100644 index 00000000000..2647a840a19 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts @@ -0,0 +1,153 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "upgradeToAndCall" function. + */ +export type UpgradeToAndCallParams = WithOverrides<{ + newImplementation: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newImplementation"; + }>; + data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; +}>; + +export const FN_SELECTOR = "0x4f1ef286" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newImplementation", + }, + { + type: "bytes", + name: "data", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `upgradeToAndCall` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `upgradeToAndCall` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isUpgradeToAndCallSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isUpgradeToAndCallSupported(["0x..."]); + * ``` + */ +export function isUpgradeToAndCallSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "upgradeToAndCall" function. + * @param options - The options for the upgradeToAndCall function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeUpgradeToAndCallParams } from "thirdweb/extensions/tokens"; + * const result = encodeUpgradeToAndCallParams({ + * newImplementation: ..., + * data: ..., + * }); + * ``` + */ +export function encodeUpgradeToAndCallParams(options: UpgradeToAndCallParams) { + return encodeAbiParameters(FN_INPUTS, [ + options.newImplementation, + options.data, + ]); +} + +/** + * Encodes the "upgradeToAndCall" function into a Hex string with its parameters. + * @param options - The options for the upgradeToAndCall function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeUpgradeToAndCall } from "thirdweb/extensions/tokens"; + * const result = encodeUpgradeToAndCall({ + * newImplementation: ..., + * data: ..., + * }); + * ``` + */ +export function encodeUpgradeToAndCall(options: UpgradeToAndCallParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeUpgradeToAndCallParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "upgradeToAndCall" function on the contract. + * @param options - The options for the "upgradeToAndCall" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { upgradeToAndCall } from "thirdweb/extensions/tokens"; + * + * const transaction = upgradeToAndCall({ + * contract, + * newImplementation: ..., + * data: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function upgradeToAndCall( + options: BaseTransactionOptions< + | UpgradeToAndCallParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newImplementation, resolvedOptions.data] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts index 93ca28a8d86..a5b2de9ba3d 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactInput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts index f2baf013d7b..e2f2bd0b25f 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactInputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts index 948e8b4716b..e70abf27fa9 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactOutput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts index 962e1b2233d..40571bef183 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactOutputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts index e8c72448821..62b9d01cce6 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactInput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts index 74801a6fd77..7e3abba3449 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactInputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts index ad12cfeb388..dcbeb08a4a1 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactOutput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts index d49a1333baf..da33aaa7b58 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactOutputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts index 0a338fba5a1..7ecf70ce4c8 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnerChanged" event. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts index 08c5be9c5c5..e58a4baf468 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PoolCreated" event. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts index 0bdf634fbb2..255f43c261a 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "feeAmountTickSpacing" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts index 5464e0e6f11..0ba8694755b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPool" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts index c4a193d970e..5c788ce980c 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts index 7a0564dfebb..9fb6af4ed9a 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPool" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts index 02a8bbc64a1..c8e4e71ccd4 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "enableFeeAmount" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts index dc6112bab1d..6e4c1ba930b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts index f53337ebd10..f4a9b84da2c 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exists" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts index 2a5b24385b4..e108e47b49f 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMany" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts index d56c354bfee..1f4ff5195b1 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "namehash" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts index 42f892a3904..b86c1c4bd8a 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "reverseNameOf" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts index 060fe07c78a..ec04f2d479a 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xdeaaa7cc" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts index 1a0672fb8cc..6734c8b2303 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xdd4e2ba5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts index 67cf2f01d31..4325be6c282 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcceb68f5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts index 341cb80315b..c2b66c0be2a 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getVotes" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts index 2034cf1dddc..f8eca80d4bf 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getVotesWithParams" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts index f2b60cf3bca..5815f1c8684 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasVoted" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts index 1639665197e..87e81f3c2ec 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hashProposal" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts index 2e4f570cd64..e0640658526 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposalDeadline" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts index d1b77a0eeca..a8d1ccb5c76 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x5977e0f2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts index e1667b05f5d..593f248d154 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposalSnapshot" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts index ced5cabd45f..098c4dc79c8 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb58131b0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts index 8a510a2aa46..5bc8c234e58 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposalVotes" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts index d58e899e6d7..3c89313b550 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposals" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts index dce30a0a265..b2de58c41b0 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quorum" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts index cf3126a06d1..56636d20aee 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x97c3d334" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts index e9b56d165e4..15bcb254830 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "state" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts index 60c0d33089b..02e70e2d6c7 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts index 51689a20a6c..eff242b13e6 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3932abb1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts index 5b96e7a33aa..35de8cb92c0 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x02a251a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts index 2666f84fa71..f7c42629976 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVote" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts index adfd1fc076b..6322bdf5e39 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteBySig" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts index d32e7363312..4d5af34b63c 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteWithReason" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts index 978cb26a8fa..0c625832619 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteWithReasonAndParams" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts index a2e92478f18..20122e5859d 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteWithReasonAndParamsBySig" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts index 9012c2dfc6b..4f94b043506 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts index 6262ae30b0f..abc8a1f168c 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "propose" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts index 785a2a588d1..edd2ad5a3f3 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "relay" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts index ece4ee5abf3..9eac196fd77 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setProposalThreshold" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts index 3b34e86231e..313d949b8c2 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setVotingDelay" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts index 1f4740dd710..d74fc333fcb 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setVotingPeriod" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts index d76a5f43144..819963e4608 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateQuorumNumerator" function. diff --git a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts index 328036ce944..48964fd99a3 100644 --- a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts +++ b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ContractDeployed" event. diff --git a/packages/thirdweb/src/assets/constants.ts b/packages/thirdweb/src/tokens/constants.ts similarity index 52% rename from packages/thirdweb/src/assets/constants.ts rename to packages/thirdweb/src/tokens/constants.ts index 57016215d32..22df85ef5a4 100644 --- a/packages/thirdweb/src/assets/constants.ts +++ b/packages/thirdweb/src/tokens/constants.ts @@ -1,17 +1,16 @@ export const DEFAULT_MAX_SUPPLY_ERC20 = 1_000_000_000n; export const DEFAULT_POOL_INITIAL_TICK = 230200; -export const DEFAULT_REFERRER_REWARD_BPS = 1250; // 12.50% export const DEFAULT_INFRA_ADMIN = "0x1a472863cf21d5aa27f417df9140400324c48f22"; -export const DEFAULT_FEE_RECIPIENT = - "0x1Af20C6B23373350aD464700B5965CE4B0D2aD94"; -export const DEFAULT_SALT = "0x"; + +export const DEFAULT_REFERRER_REWARD_BPS = 625; // 6.25% (6.25% * 80% = 5%) +export const DEFAULT_REFERRER_ADDRESS = "0x1Af20C6B23373350aD464700B5965CE4B0D2aD94"; export const IMPLEMENTATIONS: Record> = { 8453: { - AssetEntrypointERC20: "0x42e3a6eB0e96641Bd6e0604D5C6Bb96db874A942", + AssetEntrypointERC20: "0x70458B0b8afA1113b5716C0e213Bc3a48bFcFF74", }, 84532: { - AssetEntrypointERC20: "0xcB8ab50D2E7E2e2f46a2BF440e60375b28A4b82f", + AssetEntrypointERC20: "0x69e8298bB5c52FF8385a5Ea51688dbEe13e75ece", }, }; @@ -25,7 +24,6 @@ export enum ImplementationType { export enum CreateHook { NONE = 0, // do nothing CREATE_POOL = 1, // create a DEX pool via Router - CREATE_MARKET = 2, // create a market sale via Router - DISTRIBUTE = 3, // distribute tokens to recipients - EXTERNAL_HOOK = 4, // call an external hook contract + DISTRIBUTE = 2, // distribute tokens to recipients + EXTERNAL_HOOK = 3, // call an external hook contract } diff --git a/packages/thirdweb/src/tokens/create-token.ts b/packages/thirdweb/src/tokens/create-token.ts new file mode 100644 index 00000000000..1fbdd3997ec --- /dev/null +++ b/packages/thirdweb/src/tokens/create-token.ts @@ -0,0 +1,71 @@ +import type { Hex } from "viem"; +import { parseEventLogs } from "../event/actions/parse-logs.js"; +import { createdEvent } from "../extensions/tokens/__generated__/ERC20Entrypoint/events/Created.js"; +import { create } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/create.js"; +import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; +import { keccakId } from "../utils/any-evm/keccak-id.js"; +import { toHex } from "../utils/encoding/hex.js"; +import { DEFAULT_REFERRER_ADDRESS } from "./constants.js"; +import { getOrDeployEntrypointERC20 } from "./get-entrypoint-erc20.js"; +import { + encodeInitParams, + encodePoolConfig, +} from "./token-utils.js"; +import type { CreateTokenOptions } from "./types.js"; + +export async function createToken(options: CreateTokenOptions) { + const { client, account, params, launchConfig } = options; + + const creator = params.owner || account.address; + const encodedInitData = await encodeInitParams({ + client, + creator, + params, + }); + + let salt: Hex = "0x"; + if (!options.salt) { + salt = `0x1f${toHex(creator, { + size: 32, + }).substring(4)}`; + } else { + if (options.salt.startsWith("0x") && options.salt.length === 66) { + salt = options.salt; + } else { + salt = `0x1f${keccakId(options.salt).substring(4)}`; + } + } + + const entrypoint = await getOrDeployEntrypointERC20(options); + + let hookData: Hex = "0x"; + if (launchConfig?.kind === "pool") { + hookData = encodePoolConfig(launchConfig.config); + } + + const transaction = create({ + contract: entrypoint, + createParams: { + data: encodedInitData, + hookData, + referrer: options.referrerAddress || DEFAULT_REFERRER_ADDRESS, + salt, + }, + creator, + }); + + const receipt = await sendAndConfirmTransaction({ account, transaction }); + const assetEvent = createdEvent(); + const decodedEvent = parseEventLogs({ + events: [assetEvent], + logs: receipt.logs, + }); + + if (decodedEvent.length === 0 || !decodedEvent[0]) { + throw new Error( + `No AssetCreated event found in transaction: ${receipt.transactionHash}`, + ); + } + + return decodedEvent[0]?.args.asset; +} diff --git a/packages/thirdweb/src/assets/distribute-token.ts b/packages/thirdweb/src/tokens/distribute-token.ts similarity index 84% rename from packages/thirdweb/src/assets/distribute-token.ts rename to packages/thirdweb/src/tokens/distribute-token.ts index 93a37d87111..c3e0233a3c4 100644 --- a/packages/thirdweb/src/assets/distribute-token.ts +++ b/packages/thirdweb/src/tokens/distribute-token.ts @@ -1,4 +1,4 @@ -import { distributeAsset } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/write/distributeAsset.js"; +import { distribute } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.js"; import type { ClientAndChain } from "../utils/types.js"; import { toUnits } from "../utils/units.js"; import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; @@ -16,7 +16,7 @@ export async function distributeToken(options: DistrbuteTokenParams) { throw new Error(`Entrypoint not found on chain: ${options.chain.id}`); } - return distributeAsset({ + return distribute({ asset: options.tokenAddress, contents: options.contents.map((a) => { return { ...a, amount: toUnits(a.amount.toString(), 18) }; diff --git a/packages/thirdweb/src/assets/get-entrypoint-erc20.ts b/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts similarity index 100% rename from packages/thirdweb/src/assets/get-entrypoint-erc20.ts rename to packages/thirdweb/src/tokens/get-entrypoint-erc20.ts diff --git a/packages/thirdweb/src/assets/is-router-enabled.ts b/packages/thirdweb/src/tokens/is-router-enabled.ts similarity index 82% rename from packages/thirdweb/src/assets/is-router-enabled.ts rename to packages/thirdweb/src/tokens/is-router-enabled.ts index 5da30b4cc34..c7c1a5ec061 100644 --- a/packages/thirdweb/src/assets/is-router-enabled.ts +++ b/packages/thirdweb/src/tokens/is-router-enabled.ts @@ -1,5 +1,5 @@ import { ZERO_ADDRESS } from "../constants/addresses.js"; -import { getRouter } from "../extensions/assets/__generated__/ERC20AssetEntrypoint/read/getRouter.js"; +import { getRouter } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.js"; import type { ClientAndChain } from "../utils/types.js"; import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; diff --git a/packages/thirdweb/src/assets/token-utils.ts b/packages/thirdweb/src/tokens/token-utils.ts similarity index 63% rename from packages/thirdweb/src/assets/token-utils.ts rename to packages/thirdweb/src/tokens/token-utils.ts index 9f8cafaf538..bca039098ec 100644 --- a/packages/thirdweb/src/assets/token-utils.ts +++ b/packages/thirdweb/src/tokens/token-utils.ts @@ -1,7 +1,7 @@ import type { Hex } from "viem"; import type { ThirdwebClient } from "../client/client.js"; -import { NATIVE_TOKEN_ADDRESS, ZERO_ADDRESS } from "../constants/addresses.js"; -import { encodeInitialize } from "../extensions/assets/__generated__/ERC20Asset/write/initialize.js"; +import { NATIVE_TOKEN_ADDRESS } from "../constants/addresses.js"; +import { encodeInitialize } from "../extensions/tokens/__generated__/ERC20Asset/write/initialize.js"; import { upload } from "../storage/upload.js"; import { encodeAbiParameters } from "../utils/abi/encodeAbiParameters.js"; import { toUnits } from "../utils/units.js"; @@ -10,7 +10,7 @@ import { DEFAULT_POOL_INITIAL_TICK, DEFAULT_REFERRER_REWARD_BPS, } from "./constants.js"; -import type { MarketConfig, PoolConfig, TokenParams } from "./types.js"; +import type { PoolConfig, TokenParams } from "./types.js"; export async function encodeInitParams(options: { client: ThirdwebClient; @@ -38,13 +38,13 @@ export async function encodeInitParams(options: { return encodeInitialize({ contractURI, + owner: creator, + name: params.name, + symbol: params.symbol || params.name, maxSupply: toUnits( params.maxSupply.toString() || DEFAULT_MAX_SUPPLY_ERC20.toString(), 18, ), - name: params.name, - owner: creator, - symbol: params.symbol || params.name, }); } @@ -76,47 +76,3 @@ export function encodePoolConfig(poolConfig: PoolConfig): Hex { ]); } -export function encodeMarketConfig( - marketConfig: MarketConfig & { decimals: number }, -): Hex { - const MARKET_PARAMS = [ - { - name: "tokenOut", - type: "address", - }, - { - name: "pricePerUnit", - type: "uint256", - }, - { - name: "priceDenominator", - type: "uint8", - }, - { - name: "startTime", - type: "uint48", - }, - { - name: "endTime", - type: "uint48", - }, - { - name: "hook", - type: "address", - }, - { - name: "hookInit", - type: "bytes", - }, - ] as const; - - return encodeAbiParameters(MARKET_PARAMS, [ - marketConfig.tokenOut || NATIVE_TOKEN_ADDRESS, - marketConfig.pricePerUnit, - marketConfig.priceDenominator || marketConfig.decimals || 18, - marketConfig.startTime || 0, - marketConfig.endTime || 0, - ZERO_ADDRESS, - "0x", - ]); -} diff --git a/packages/thirdweb/src/assets/types.ts b/packages/thirdweb/src/tokens/types.ts similarity index 82% rename from packages/thirdweb/src/assets/types.ts rename to packages/thirdweb/src/tokens/types.ts index 7828ce4bae3..b5726050d48 100644 --- a/packages/thirdweb/src/assets/types.ts +++ b/packages/thirdweb/src/tokens/types.ts @@ -21,16 +21,6 @@ export type PoolConfig = { referrerRewardBps?: number; }; -export type MarketConfig = { - tokenOut?: string; - pricePerUnit: bigint; - priceDenominator?: number; - startTime?: number; - endTime?: number; - hookAddress?: string; - hookInitData?: string; -}; - export type DistributeContent = { amount: bigint; recipient: string; @@ -42,7 +32,6 @@ type DistributeConfig = { type LaunchConfig = | { kind: "pool"; config: PoolConfig } - | { kind: "market"; config: MarketConfig } | { kind: "distribute"; config: DistributeConfig }; export type CreateTokenOptions = ClientAndChainAndAccount & { From 705aa97ca675af869c8899ae73b6b8bfb76d698b Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Wed, 23 Jul 2025 20:58:58 +0530 Subject: [PATCH 21/32] pnpm run fix --- packages/thirdweb/src/exports/tokens.ts | 4 ++-- .../airdrop/__generated__/Airdrop/events/OwnerUpdated.ts | 2 +- .../airdrop/__generated__/Airdrop/read/eip712Domain.ts | 5 ++--- .../airdrop/__generated__/Airdrop/read/isClaimed.ts | 4 ++-- .../extensions/airdrop/__generated__/Airdrop/read/owner.ts | 5 ++--- .../airdrop/__generated__/Airdrop/read/tokenConditionId.ts | 4 ++-- .../airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/airdropERC1155.ts | 4 ++-- .../Airdrop/write/airdropERC1155WithSignature.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/airdropERC20.ts | 4 ++-- .../__generated__/Airdrop/write/airdropERC20WithSignature.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/airdropERC721.ts | 4 ++-- .../Airdrop/write/airdropERC721WithSignature.ts | 4 ++-- .../__generated__/Airdrop/write/airdropNativeToken.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/claimERC1155.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/claimERC20.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/claimERC721.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/initialize.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/setMerkleRoot.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/setOwner.ts | 4 ++-- .../assets/__generated__/ERC20Asset/events/Approval.ts | 2 +- .../ERC20Asset/events/OwnershipHandoverCanceled.ts | 2 +- .../ERC20Asset/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/ERC20Asset/events/OwnershipTransferred.ts | 2 +- .../assets/__generated__/ERC20Asset/events/Transfer.ts | 2 +- .../assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts | 5 ++--- .../assets/__generated__/ERC20Asset/read/allowance.ts | 4 ++-- .../assets/__generated__/ERC20Asset/read/balanceOf.ts | 4 ++-- .../assets/__generated__/ERC20Asset/read/contractURI.ts | 5 ++--- .../assets/__generated__/ERC20Asset/read/decimals.ts | 5 ++--- .../extensions/assets/__generated__/ERC20Asset/read/name.ts | 5 ++--- .../assets/__generated__/ERC20Asset/read/nonces.ts | 4 ++-- .../extensions/assets/__generated__/ERC20Asset/read/owner.ts | 5 ++--- .../ERC20Asset/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../__generated__/ERC20Asset/read/supportsInterface.ts | 4 ++-- .../assets/__generated__/ERC20Asset/read/symbol.ts | 5 ++--- .../assets/__generated__/ERC20Asset/read/totalSupply.ts | 5 ++--- .../assets/__generated__/ERC20Asset/write/approve.ts | 4 ++-- .../extensions/assets/__generated__/ERC20Asset/write/burn.ts | 4 ++-- .../assets/__generated__/ERC20Asset/write/burnFrom.ts | 4 ++-- .../ERC20Asset/write/cancelOwnershipHandover.ts | 2 +- .../ERC20Asset/write/completeOwnershipHandover.ts | 4 ++-- .../assets/__generated__/ERC20Asset/write/initialize.ts | 4 ++-- .../assets/__generated__/ERC20Asset/write/permit.ts | 4 ++-- .../__generated__/ERC20Asset/write/renounceOwnership.ts | 2 +- .../ERC20Asset/write/requestOwnershipHandover.ts | 2 +- .../assets/__generated__/ERC20Asset/write/setContractURI.ts | 4 ++-- .../assets/__generated__/ERC20Asset/write/transfer.ts | 4 ++-- .../assets/__generated__/ERC20Asset/write/transferFrom.ts | 4 ++-- .../__generated__/ERC20Asset/write/transferOwnership.ts | 4 ++-- .../assets/__generated__/ERC20Entrypoint/events/Created.ts | 2 +- .../ERC20Entrypoint/events/ImplementationAdded.ts | 2 +- .../ERC20Entrypoint/events/OwnershipHandoverCanceled.ts | 2 +- .../ERC20Entrypoint/events/OwnershipHandoverRequested.ts | 2 +- .../ERC20Entrypoint/events/OwnershipTransferred.ts | 2 +- .../assets/__generated__/ERC20Entrypoint/events/Upgraded.ts | 2 +- .../assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts | 5 ++--- .../__generated__/ERC20Entrypoint/read/getImplementation.ts | 4 ++-- .../assets/__generated__/ERC20Entrypoint/read/getReward.ts | 4 ++-- .../__generated__/ERC20Entrypoint/read/getRewardLocker.ts | 5 ++--- .../assets/__generated__/ERC20Entrypoint/read/getRouter.ts | 5 ++--- .../assets/__generated__/ERC20Entrypoint/read/guardSalt.ts | 4 ++-- .../assets/__generated__/ERC20Entrypoint/read/owner.ts | 5 ++--- .../ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../__generated__/ERC20Entrypoint/read/predictAddress.ts | 4 ++-- .../ERC20Entrypoint/read/predictAddressByConfig.ts | 4 ++-- .../__generated__/ERC20Entrypoint/read/proxiableUUID.ts | 5 ++--- .../__generated__/ERC20Entrypoint/write/addImplementation.ts | 4 ++-- .../assets/__generated__/ERC20Entrypoint/write/buy.ts | 4 ++-- .../ERC20Entrypoint/write/cancelOwnershipHandover.ts | 2 +- .../__generated__/ERC20Entrypoint/write/claimReward.ts | 4 ++-- .../ERC20Entrypoint/write/completeOwnershipHandover.ts | 4 ++-- .../assets/__generated__/ERC20Entrypoint/write/create.ts | 4 ++-- .../assets/__generated__/ERC20Entrypoint/write/createById.ts | 4 ++-- .../ERC20Entrypoint/write/createByImplementationConfig.ts | 4 ++-- .../assets/__generated__/ERC20Entrypoint/write/distribute.ts | 4 ++-- .../assets/__generated__/ERC20Entrypoint/write/initialize.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/renounceOwnership.ts | 2 +- .../ERC20Entrypoint/write/requestOwnershipHandover.ts | 2 +- .../assets/__generated__/ERC20Entrypoint/write/sell.ts | 4 ++-- .../assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/setRewardLocker.ts | 4 ++-- .../assets/__generated__/ERC20Entrypoint/write/setRouter.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/transferOwnership.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts | 4 ++-- .../__generated__/FeeManager/events/FeeConfigUpdated.ts | 2 +- .../FeeManager/events/FeeConfigUpdatedBySignature.ts | 2 +- .../FeeManager/events/OwnershipHandoverCanceled.ts | 2 +- .../FeeManager/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/FeeManager/events/OwnershipTransferred.ts | 2 +- .../assets/__generated__/FeeManager/events/RolesUpdated.ts | 2 +- .../assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts | 5 ++--- .../assets/__generated__/FeeManager/read/calculateFee.ts | 4 ++-- .../assets/__generated__/FeeManager/read/domainSeparator.ts | 5 ++--- .../assets/__generated__/FeeManager/read/eip712Domain.ts | 5 ++--- .../assets/__generated__/FeeManager/read/feeConfigs.ts | 4 ++-- .../assets/__generated__/FeeManager/read/feeRecipient.ts | 5 ++--- .../assets/__generated__/FeeManager/read/getFeeConfig.ts | 4 ++-- .../assets/__generated__/FeeManager/read/hasAllRoles.ts | 4 ++-- .../assets/__generated__/FeeManager/read/hasAnyRole.ts | 4 ++-- .../extensions/assets/__generated__/FeeManager/read/owner.ts | 5 ++--- .../FeeManager/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../assets/__generated__/FeeManager/read/rolesOf.ts | 4 ++-- .../assets/__generated__/FeeManager/read/usedNonces.ts | 4 ++-- .../FeeManager/write/cancelOwnershipHandover.ts | 2 +- .../FeeManager/write/completeOwnershipHandover.ts | 4 ++-- .../assets/__generated__/FeeManager/write/grantRoles.ts | 4 ++-- .../__generated__/FeeManager/write/renounceOwnership.ts | 2 +- .../assets/__generated__/FeeManager/write/renounceRoles.ts | 4 ++-- .../FeeManager/write/requestOwnershipHandover.ts | 2 +- .../assets/__generated__/FeeManager/write/revokeRoles.ts | 4 ++-- .../assets/__generated__/FeeManager/write/setFeeConfig.ts | 4 ++-- .../FeeManager/write/setFeeConfigBySignature.ts | 4 ++-- .../assets/__generated__/FeeManager/write/setFeeRecipient.ts | 4 ++-- .../__generated__/FeeManager/write/setTargetFeeConfig.ts | 4 ++-- .../__generated__/FeeManager/write/transferOwnership.ts | 4 ++-- .../__generated__/RewardLocker/events/PositionLocked.ts | 2 +- .../__generated__/RewardLocker/events/RewardCollected.ts | 2 +- .../assets/__generated__/RewardLocker/read/feeManager.ts | 5 ++--- .../assets/__generated__/RewardLocker/read/positions.ts | 4 ++-- .../__generated__/RewardLocker/read/v3PositionManager.ts | 5 ++--- .../__generated__/RewardLocker/read/v4PositionManager.ts | 5 ++--- .../assets/__generated__/RewardLocker/write/collectReward.ts | 4 ++-- .../assets/__generated__/RewardLocker/write/lockPosition.ts | 4 ++-- .../__generated__/Router/events/OwnershipHandoverCanceled.ts | 2 +- .../Router/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/Router/events/OwnershipTransferred.ts | 2 +- .../assets/__generated__/Router/events/SwapExecuted.ts | 2 +- .../assets/__generated__/Router/events/Upgraded.ts | 2 +- .../assets/__generated__/Router/read/NATIVE_TOKEN.ts | 5 ++--- .../src/extensions/assets/__generated__/Router/read/owner.ts | 5 ++--- .../__generated__/Router/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../assets/__generated__/Router/read/proxiableUUID.ts | 5 ++--- .../__generated__/Router/write/cancelOwnershipHandover.ts | 2 +- .../__generated__/Router/write/completeOwnershipHandover.ts | 4 ++-- .../assets/__generated__/Router/write/createPool.ts | 4 ++-- .../assets/__generated__/Router/write/disableAdapter.ts | 4 ++-- .../assets/__generated__/Router/write/enableAdapter.ts | 4 ++-- .../assets/__generated__/Router/write/initialize.ts | 4 ++-- .../assets/__generated__/Router/write/renounceOwnership.ts | 2 +- .../__generated__/Router/write/requestOwnershipHandover.ts | 2 +- .../src/extensions/assets/__generated__/Router/write/swap.ts | 4 ++-- .../assets/__generated__/Router/write/transferOwnership.ts | 4 ++-- .../assets/__generated__/Router/write/upgradeToAndCall.ts | 4 ++-- .../IClaimConditionsSinglePhase/write/setClaimConditions.ts | 4 ++-- .../__generated__/IContractMetadata/read/contractURI.ts | 5 ++--- .../common/__generated__/IContractMetadata/read/name.ts | 5 ++--- .../common/__generated__/IContractMetadata/read/symbol.ts | 5 ++--- .../__generated__/IContractMetadata/write/setContractURI.ts | 4 ++-- .../common/__generated__/IMulticall/write/multicall.ts | 4 ++-- .../common/__generated__/IOwnable/events/OwnerUpdated.ts | 2 +- .../extensions/common/__generated__/IOwnable/read/owner.ts | 5 ++--- .../common/__generated__/IOwnable/write/setOwner.ts | 4 ++-- .../IPlatformFee/events/PlatformFeeInfoUpdated.ts | 2 +- .../__generated__/IPlatformFee/read/getPlatformFeeInfo.ts | 5 ++--- .../__generated__/IPlatformFee/write/setPlatformFeeInfo.ts | 4 ++-- .../IPrimarySale/events/PrimarySaleRecipientUpdated.ts | 2 +- .../__generated__/IPrimarySale/read/primarySaleRecipient.ts | 5 ++--- .../IPrimarySale/write/setPrimarySaleRecipient.ts | 4 ++-- .../common/__generated__/IRoyalty/events/DefaultRoyalty.ts | 2 +- .../common/__generated__/IRoyalty/events/RoyaltyForToken.ts | 2 +- .../__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts | 5 ++--- .../__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts | 4 ++-- .../common/__generated__/IRoyalty/read/royaltyInfo.ts | 4 ++-- .../common/__generated__/IRoyalty/read/supportsInterface.ts | 4 ++-- .../__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts | 4 ++-- .../__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts | 4 ++-- .../IRoyaltyPayments/events/RoyaltyEngineUpdated.ts | 2 +- .../__generated__/IRoyaltyPayments/read/supportsInterface.ts | 4 ++-- .../__generated__/IRoyaltyPayments/write/getRoyalty.ts | 4 ++-- .../__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts | 4 ++-- .../__generated__/IExtensionManager/read/getAllExtensions.ts | 5 ++--- .../__generated__/IExtensionManager/write/addExtension.ts | 4 ++-- .../__generated__/IExtensionManager/write/removeExtension.ts | 4 ++-- .../extensions/ens/__generated__/AddressResolver/read/ABI.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/addr.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/contenthash.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/name.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/pubkey.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/text.ts | 4 ++-- .../src/extensions/ens/__generated__/L2Resolver/read/name.ts | 4 ++-- .../ens/__generated__/UniversalResolver/read/resolve.ts | 4 ++-- .../ens/__generated__/UniversalResolver/read/reverse.ts | 4 ++-- .../__generated__/BatchMintMetadata/read/getBaseURICount.ts | 5 ++--- .../BatchMintMetadata/read/getBatchIdAtIndex.ts | 4 ++-- .../erc1155/__generated__/DropERC1155/read/verifyClaim.ts | 4 ++-- .../__generated__/DropERC1155/write/freezeBatchBaseURI.ts | 4 ++-- .../__generated__/DropERC1155/write/setMaxTotalSupply.ts | 4 ++-- .../DropERC1155/write/setSaleRecipientForToken.ts | 4 ++-- .../__generated__/DropERC1155/write/updateBatchBaseURI.ts | 4 ++-- .../__generated__/IAirdropERC1155/events/AirdropFailed.ts | 2 +- .../__generated__/IAirdropERC1155/write/airdropERC1155.ts | 4 ++-- .../IAirdropERC1155Claimable/events/TokensClaimed.ts | 2 +- .../__generated__/IAirdropERC1155Claimable/write/claim.ts | 4 ++-- .../erc1155/__generated__/IBurnableERC1155/write/burn.ts | 4 ++-- .../__generated__/IBurnableERC1155/write/burnBatch.ts | 4 ++-- .../__generated__/IClaimableERC1155/events/TokensClaimed.ts | 2 +- .../erc1155/__generated__/IClaimableERC1155/write/claim.ts | 4 ++-- .../__generated__/IDrop1155/events/ClaimConditionsUpdated.ts | 2 +- .../erc1155/__generated__/IDrop1155/events/TokensClaimed.ts | 2 +- .../erc1155/__generated__/IDrop1155/read/claimCondition.ts | 4 ++-- .../IDrop1155/read/getActiveClaimConditionId.ts | 4 ++-- .../__generated__/IDrop1155/read/getClaimConditionById.ts | 4 ++-- .../erc1155/__generated__/IDrop1155/write/claim.ts | 4 ++-- .../__generated__/IDrop1155/write/setClaimConditions.ts | 4 ++-- .../IDropSinglePhase1155/events/ClaimConditionUpdated.ts | 2 +- .../IDropSinglePhase1155/events/TokensClaimed.ts | 2 +- .../IDropSinglePhase1155/read/claimCondition.ts | 4 ++-- .../__generated__/IDropSinglePhase1155/write/claim.ts | 4 ++-- .../IDropSinglePhase1155/write/setClaimConditions.ts | 4 ++-- .../erc1155/__generated__/IERC1155/events/ApprovalForAll.ts | 2 +- .../erc1155/__generated__/IERC1155/events/TransferBatch.ts | 2 +- .../erc1155/__generated__/IERC1155/events/TransferSingle.ts | 2 +- .../extensions/erc1155/__generated__/IERC1155/events/URI.ts | 2 +- .../erc1155/__generated__/IERC1155/read/balanceOf.ts | 4 ++-- .../erc1155/__generated__/IERC1155/read/balanceOfBatch.ts | 4 ++-- .../erc1155/__generated__/IERC1155/read/isApprovedForAll.ts | 4 ++-- .../erc1155/__generated__/IERC1155/read/totalSupply.ts | 4 ++-- .../extensions/erc1155/__generated__/IERC1155/read/uri.ts | 4 ++-- .../__generated__/IERC1155/write/safeBatchTransferFrom.ts | 4 ++-- .../erc1155/__generated__/IERC1155/write/safeTransferFrom.ts | 4 ++-- .../__generated__/IERC1155/write/setApprovalForAll.ts | 4 ++-- .../IERC1155Enumerable/read/nextTokenIdToMint.ts | 5 ++--- .../__generated__/IERC1155Receiver/read/supportsInterface.ts | 4 ++-- .../IERC1155Receiver/write/onERC1155BatchReceived.ts | 4 ++-- .../IERC1155Receiver/write/onERC1155Received.ts | 4 ++-- .../__generated__/IEditionStake/write/depositRewardTokens.ts | 4 ++-- .../IEditionStake/write/withdrawRewardTokens.ts | 4 ++-- .../__generated__/ILazyMint/events/TokensLazyMinted.ts | 2 +- .../erc1155/__generated__/ILazyMint/write/lazyMint.ts | 4 ++-- .../__generated__/IMintableERC1155/events/TokensMinted.ts | 2 +- .../erc1155/__generated__/IMintableERC1155/write/mintTo.ts | 4 ++-- .../__generated__/INFTMetadata/read/supportsInterface.ts | 4 ++-- .../__generated__/INFTMetadata/write/freezeMetadata.ts | 2 +- .../erc1155/__generated__/INFTMetadata/write/setTokenURI.ts | 4 ++-- .../erc1155/__generated__/IPack/events/PackCreated.ts | 2 +- .../erc1155/__generated__/IPack/events/PackOpened.ts | 2 +- .../erc1155/__generated__/IPack/events/PackUpdated.ts | 2 +- .../erc1155/__generated__/IPack/write/createPack.ts | 4 ++-- .../extensions/erc1155/__generated__/IPack/write/openPack.ts | 4 ++-- .../__generated__/IPackVRFDirect/events/PackOpenRequested.ts | 2 +- .../IPackVRFDirect/events/PackRandomnessFulfilled.ts | 2 +- .../__generated__/IPackVRFDirect/read/canClaimRewards.ts | 4 ++-- .../__generated__/IPackVRFDirect/write/claimRewards.ts | 2 +- .../IPackVRFDirect/write/openPackAndClaimRewards.ts | 4 ++-- .../events/TokensMintedWithSignature.ts | 2 +- .../__generated__/ISignatureMintERC1155/read/verify.ts | 4 ++-- .../ISignatureMintERC1155/write/mintWithSignature.ts | 4 ++-- .../__generated__/IStaking1155/events/RewardsClaimed.ts | 2 +- .../__generated__/IStaking1155/events/TokensStaked.ts | 2 +- .../__generated__/IStaking1155/events/TokensWithdrawn.ts | 2 +- .../IStaking1155/events/UpdatedRewardsPerUnitTime.ts | 2 +- .../__generated__/IStaking1155/events/UpdatedTimeUnit.ts | 2 +- .../erc1155/__generated__/IStaking1155/read/getStakeInfo.ts | 4 ++-- .../__generated__/IStaking1155/read/getStakeInfoForToken.ts | 4 ++-- .../erc1155/__generated__/IStaking1155/write/claimRewards.ts | 4 ++-- .../erc1155/__generated__/IStaking1155/write/stake.ts | 4 ++-- .../erc1155/__generated__/IStaking1155/write/withdraw.ts | 4 ++-- .../erc1155/__generated__/Zora1155/read/nextTokenId.ts | 5 ++--- .../__generated__/isValidSignature/read/isValidSignature.ts | 4 ++-- .../erc165/__generated__/IERC165/read/supportsInterface.ts | 4 ++-- .../__generated__/IERC1822Proxiable/read/proxiableUUID.ts | 5 ++--- .../erc20/__generated__/DropERC20/read/verifyClaim.ts | 4 ++-- .../__generated__/IAirdropERC20/events/AirdropFailed.ts | 2 +- .../erc20/__generated__/IAirdropERC20/write/airdropERC20.ts | 4 ++-- .../IAirdropERC20Claimable/events/TokensClaimed.ts | 2 +- .../__generated__/IAirdropERC20Claimable/write/claim.ts | 4 ++-- .../erc20/__generated__/IBurnableERC20/write/burn.ts | 4 ++-- .../erc20/__generated__/IBurnableERC20/write/burnFrom.ts | 4 ++-- .../erc20/__generated__/IDropERC20/events/TokensClaimed.ts | 2 +- .../erc20/__generated__/IDropERC20/read/claimCondition.ts | 5 ++--- .../IDropERC20/read/getActiveClaimConditionId.ts | 5 ++--- .../__generated__/IDropERC20/read/getClaimConditionById.ts | 4 ++-- .../extensions/erc20/__generated__/IDropERC20/write/claim.ts | 4 ++-- .../__generated__/IDropERC20/write/setClaimConditions.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/events/Approval.ts | 2 +- .../extensions/erc20/__generated__/IERC20/events/Transfer.ts | 2 +- .../extensions/erc20/__generated__/IERC20/read/allowance.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/read/balanceOf.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/read/decimals.ts | 5 ++--- .../erc20/__generated__/IERC20/read/totalSupply.ts | 5 ++--- .../extensions/erc20/__generated__/IERC20/write/approve.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/write/transfer.ts | 4 ++-- .../erc20/__generated__/IERC20/write/transferFrom.ts | 4 ++-- .../__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts | 5 ++--- .../erc20/__generated__/IERC20Permit/read/nonces.ts | 4 ++-- .../erc20/__generated__/IERC20Permit/write/permit.ts | 4 ++-- .../__generated__/IMintableERC20/events/TokensMinted.ts | 2 +- .../erc20/__generated__/IMintableERC20/write/mintTo.ts | 4 ++-- .../ISignatureMintERC20/events/TokensMintedWithSignature.ts | 2 +- .../erc20/__generated__/ISignatureMintERC20/read/verify.ts | 4 ++-- .../ISignatureMintERC20/write/mintWithSignature.ts | 4 ++-- .../erc20/__generated__/IStaking20/events/RewardsClaimed.ts | 2 +- .../erc20/__generated__/IStaking20/events/TokensStaked.ts | 2 +- .../erc20/__generated__/IStaking20/events/TokensWithdrawn.ts | 2 +- .../erc20/__generated__/IStaking20/read/getStakeInfo.ts | 4 ++-- .../erc20/__generated__/IStaking20/write/claimRewards.ts | 2 +- .../extensions/erc20/__generated__/IStaking20/write/stake.ts | 4 ++-- .../erc20/__generated__/IStaking20/write/withdraw.ts | 4 ++-- .../__generated__/ITokenStake/write/depositRewardTokens.ts | 4 ++-- .../__generated__/ITokenStake/write/withdrawRewardTokens.ts | 4 ++-- .../erc20/__generated__/IVotes/events/DelegateChanged.ts | 2 +- .../__generated__/IVotes/events/DelegateVotesChanged.ts | 2 +- .../extensions/erc20/__generated__/IVotes/read/delegates.ts | 4 ++-- .../erc20/__generated__/IVotes/read/getPastTotalSupply.ts | 4 ++-- .../erc20/__generated__/IVotes/read/getPastVotes.ts | 4 ++-- .../extensions/erc20/__generated__/IVotes/read/getVotes.ts | 4 ++-- .../extensions/erc20/__generated__/IVotes/write/delegate.ts | 4 ++-- .../erc20/__generated__/IVotes/write/delegateBySig.ts | 4 ++-- .../extensions/erc20/__generated__/IWETH/write/deposit.ts | 2 +- .../extensions/erc20/__generated__/IWETH/write/transfer.ts | 4 ++-- .../extensions/erc20/__generated__/IWETH/write/withdraw.ts | 4 ++-- .../__generated__/IERC2771Context/read/isTrustedForwarder.ts | 4 ++-- .../erc2981/__generated__/IERC2981/read/royaltyInfo.ts | 4 ++-- .../erc4337/__generated__/IAccount/write/validateUserOp.ts | 4 ++-- .../__generated__/IAccountFactory/events/AccountCreated.ts | 2 +- .../__generated__/IAccountFactory/events/SignerAdded.ts | 2 +- .../__generated__/IAccountFactory/events/SignerRemoved.ts | 2 +- .../IAccountFactory/read/accountImplementation.ts | 5 ++--- .../__generated__/IAccountFactory/read/getAccounts.ts | 4 ++-- .../IAccountFactory/read/getAccountsOfSigner.ts | 4 ++-- .../erc4337/__generated__/IAccountFactory/read/getAddress.ts | 4 ++-- .../__generated__/IAccountFactory/read/getAllAccounts.ts | 5 ++--- .../__generated__/IAccountFactory/read/isRegistered.ts | 4 ++-- .../__generated__/IAccountFactory/read/totalAccounts.ts | 5 ++--- .../__generated__/IAccountFactory/write/createAccount.ts | 4 ++-- .../__generated__/IAccountFactory/write/onSignerAdded.ts | 4 ++-- .../__generated__/IAccountFactory/write/onSignerRemoved.ts | 4 ++-- .../__generated__/IAccountPermissions/events/AdminUpdated.ts | 2 +- .../IAccountPermissions/events/SignerPermissionsUpdated.ts | 2 +- .../IAccountPermissions/read/getAllActiveSigners.ts | 5 ++--- .../__generated__/IAccountPermissions/read/getAllAdmins.ts | 5 ++--- .../__generated__/IAccountPermissions/read/getAllSigners.ts | 5 ++--- .../IAccountPermissions/read/getPermissionsForSigner.ts | 4 ++-- .../__generated__/IAccountPermissions/read/isActiveSigner.ts | 4 ++-- .../__generated__/IAccountPermissions/read/isAdmin.ts | 4 ++-- .../read/verifySignerPermissionRequest.ts | 4 ++-- .../IAccountPermissions/write/setPermissionsForSigner.ts | 4 ++-- .../__generated__/IEntryPoint/events/AccountDeployed.ts | 2 +- .../erc4337/__generated__/IEntryPoint/events/Deposited.ts | 2 +- .../IEntryPoint/events/SignatureAggregatorChanged.ts | 2 +- .../erc4337/__generated__/IEntryPoint/events/StakeLocked.ts | 2 +- .../__generated__/IEntryPoint/events/StakeUnlocked.ts | 2 +- .../__generated__/IEntryPoint/events/StakeWithdrawn.ts | 2 +- .../__generated__/IEntryPoint/events/UserOperationEvent.ts | 2 +- .../IEntryPoint/events/UserOperationRevertReason.ts | 2 +- .../erc4337/__generated__/IEntryPoint/events/Withdrawn.ts | 2 +- .../erc4337/__generated__/IEntryPoint/read/balanceOf.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/read/getNonce.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/addStake.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/depositTo.ts | 4 ++-- .../__generated__/IEntryPoint/write/getSenderAddress.ts | 4 ++-- .../__generated__/IEntryPoint/write/handleAggregatedOps.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/handleOps.ts | 4 ++-- .../__generated__/IEntryPoint/write/incrementNonce.ts | 4 ++-- .../__generated__/IEntryPoint/write/simulateHandleOp.ts | 4 ++-- .../__generated__/IEntryPoint/write/simulateValidation.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/unlockStake.ts | 2 +- .../erc4337/__generated__/IEntryPoint/write/withdrawStake.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/withdrawTo.ts | 4 ++-- .../IEntryPoint_v07/events/PostOpRevertReason.ts | 2 +- .../__generated__/IEntryPoint_v07/read/getUserOpHash.ts | 4 ++-- .../erc4337/__generated__/IPaymaster/write/postOp.ts | 4 ++-- .../IPaymaster/write/validatePaymasterUserOp.ts | 4 ++-- .../erc4626/__generated__/IERC4626/events/Deposit.ts | 2 +- .../erc4626/__generated__/IERC4626/events/Withdraw.ts | 2 +- .../extensions/erc4626/__generated__/IERC4626/read/asset.ts | 5 ++--- .../erc4626/__generated__/IERC4626/read/convertToAssets.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/convertToShares.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxDeposit.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxMint.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxRedeem.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxWithdraw.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewDeposit.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewMint.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewRedeem.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewWithdraw.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/totalAssets.ts | 5 ++--- .../erc4626/__generated__/IERC4626/write/deposit.ts | 4 ++-- .../extensions/erc4626/__generated__/IERC4626/write/mint.ts | 4 ++-- .../erc4626/__generated__/IERC4626/write/redeem.ts | 4 ++-- .../erc4626/__generated__/IERC4626/write/withdraw.ts | 4 ++-- .../__generated__/IERC6551Account/read/isValidSigner.ts | 4 ++-- .../erc6551/__generated__/IERC6551Account/read/state.ts | 5 ++--- .../erc6551/__generated__/IERC6551Account/read/token.ts | 5 ++--- .../erc721/__generated__/DropERC721/read/verifyClaim.ts | 4 ++-- .../__generated__/DropERC721/write/freezeBatchBaseURI.ts | 4 ++-- .../__generated__/DropERC721/write/setMaxTotalSupply.ts | 4 ++-- .../__generated__/DropERC721/write/updateBatchBaseURI.ts | 4 ++-- .../__generated__/IAirdropERC721/events/AirdropFailed.ts | 2 +- .../__generated__/IAirdropERC721/write/airdropERC721.ts | 4 ++-- .../IAirdropERC721Claimable/events/TokensClaimed.ts | 2 +- .../__generated__/IAirdropERC721Claimable/write/claim.ts | 4 ++-- .../__generated__/IBatchMintMetadata/read/getBaseURICount.ts | 5 ++--- .../IBatchMintMetadata/read/getBatchIdAtIndex.ts | 4 ++-- .../erc721/__generated__/IBurnableERC721/write/burn.ts | 4 ++-- .../__generated__/IClaimableERC721/events/TokensClaimed.ts | 2 +- .../erc721/__generated__/IClaimableERC721/write/claim.ts | 4 ++-- .../__generated__/IDelayedReveal/events/TokenURIRevealed.ts | 2 +- .../__generated__/IDelayedReveal/read/encryptDecrypt.ts | 4 ++-- .../__generated__/IDelayedReveal/read/encryptedData.ts | 4 ++-- .../erc721/__generated__/IDelayedReveal/write/reveal.ts | 4 ++-- .../erc721/__generated__/IDrop/events/TokensClaimed.ts | 2 +- .../erc721/__generated__/IDrop/read/baseURIIndices.ts | 4 ++-- .../erc721/__generated__/IDrop/read/claimCondition.ts | 5 ++--- .../__generated__/IDrop/read/getActiveClaimConditionId.ts | 5 ++--- .../erc721/__generated__/IDrop/read/getClaimConditionById.ts | 4 ++-- .../erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts | 5 ++--- .../src/extensions/erc721/__generated__/IDrop/write/claim.ts | 4 ++-- .../erc721/__generated__/IDrop/write/setClaimConditions.ts | 4 ++-- .../__generated__/IDropSinglePhase/events/TokensClaimed.ts | 2 +- .../__generated__/IDropSinglePhase/read/claimCondition.ts | 5 ++--- .../erc721/__generated__/IDropSinglePhase/write/claim.ts | 4 ++-- .../IDropSinglePhase/write/setClaimConditions.ts | 4 ++-- .../erc721/__generated__/IERC721A/events/Approval.ts | 2 +- .../erc721/__generated__/IERC721A/events/ApprovalForAll.ts | 2 +- .../erc721/__generated__/IERC721A/events/Transfer.ts | 2 +- .../erc721/__generated__/IERC721A/read/balanceOf.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/getApproved.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/isApprovedForAll.ts | 4 ++-- .../extensions/erc721/__generated__/IERC721A/read/name.ts | 5 ++--- .../extensions/erc721/__generated__/IERC721A/read/ownerOf.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/startTokenId.ts | 5 ++--- .../extensions/erc721/__generated__/IERC721A/read/symbol.ts | 5 ++--- .../erc721/__generated__/IERC721A/read/tokenURI.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/totalSupply.ts | 5 ++--- .../erc721/__generated__/IERC721A/write/approve.ts | 4 ++-- .../erc721/__generated__/IERC721A/write/safeTransferFrom.ts | 4 ++-- .../erc721/__generated__/IERC721A/write/setApprovalForAll.ts | 4 ++-- .../erc721/__generated__/IERC721A/write/transferFrom.ts | 4 ++-- .../IERC721AQueryable/events/ConsecutiveTransfer.ts | 2 +- .../__generated__/IERC721AQueryable/read/tokensOfOwner.ts | 4 ++-- .../__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts | 4 ++-- .../IERC721Enumerable/read/nextTokenIdToMint.ts | 5 ++--- .../__generated__/IERC721Enumerable/read/tokenByIndex.ts | 4 ++-- .../IERC721Enumerable/read/tokenOfOwnerByIndex.ts | 4 ++-- .../__generated__/IERC721Receiver/write/onERC721Received.ts | 4 ++-- .../__generated__/ILazyMint/events/TokensLazyMinted.ts | 2 +- .../erc721/__generated__/ILazyMint/write/lazyMint.ts | 4 ++-- .../__generated__/IMintableERC721/events/TokensMinted.ts | 2 +- .../erc721/__generated__/IMintableERC721/write/mintTo.ts | 4 ++-- .../__generated__/INFTMetadata/read/supportsInterface.ts | 4 ++-- .../__generated__/INFTMetadata/write/freezeMetadata.ts | 2 +- .../erc721/__generated__/INFTMetadata/write/setTokenURI.ts | 4 ++-- .../__generated__/INFTStake/write/depositRewardTokens.ts | 4 ++-- .../__generated__/INFTStake/write/withdrawRewardTokens.ts | 4 ++-- .../__generated__/ISharedMetadata/read/sharedMetadata.ts | 5 ++--- .../__generated__/ISharedMetadata/write/setSharedMetadata.ts | 4 ++-- .../ISharedMetadataBatch/events/SharedMetadataDeleted.ts | 2 +- .../ISharedMetadataBatch/events/SharedMetadataUpdated.ts | 2 +- .../ISharedMetadataBatch/read/getAllSharedMetadata.ts | 5 ++--- .../ISharedMetadataBatch/write/deleteSharedMetadata.ts | 4 ++-- .../ISharedMetadataBatch/write/setSharedMetadata.ts | 4 ++-- .../ISignatureMintERC721/events/TokensMintedWithSignature.ts | 2 +- .../erc721/__generated__/ISignatureMintERC721/read/verify.ts | 4 ++-- .../ISignatureMintERC721/write/mintWithSignature.ts | 4 ++-- .../events/TokensMintedWithSignature.ts | 2 +- .../__generated__/ISignatureMintERC721_v2/read/verify.ts | 4 ++-- .../ISignatureMintERC721_v2/write/mintWithSignature.ts | 4 ++-- .../__generated__/IStaking721/events/RewardsClaimed.ts | 2 +- .../erc721/__generated__/IStaking721/events/TokensStaked.ts | 2 +- .../__generated__/IStaking721/events/TokensWithdrawn.ts | 2 +- .../erc721/__generated__/IStaking721/read/getStakeInfo.ts | 4 ++-- .../erc721/__generated__/IStaking721/write/claimRewards.ts | 2 +- .../erc721/__generated__/IStaking721/write/stake.ts | 4 ++-- .../erc721/__generated__/IStaking721/write/withdraw.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/events/TokensMinted.ts | 2 +- .../LoyaltyCard/events/TokensMintedWithSignature.ts | 2 +- .../__generated__/LoyaltyCard/read/nextTokenIdToMint.ts | 5 ++--- .../__generated__/LoyaltyCard/read/supportsInterface.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/read/tokenURI.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/read/totalMinted.ts | 5 ++--- .../erc721/__generated__/LoyaltyCard/write/cancel.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/write/initialize.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/write/mintTo.ts | 4 ++-- .../__generated__/LoyaltyCard/write/mintWithSignature.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/write/revoke.ts | 4 ++-- .../erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts | 2 +- .../erc721/__generated__/Multiwrap/events/TokensWrapped.ts | 2 +- .../erc721/__generated__/Multiwrap/read/contractType.ts | 5 ++--- .../erc721/__generated__/Multiwrap/read/contractVersion.ts | 5 ++--- .../__generated__/Multiwrap/read/getWrappedContents.ts | 4 ++-- .../erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts | 5 ++--- .../erc721/__generated__/Multiwrap/read/supportsInterface.ts | 4 ++-- .../erc721/__generated__/Multiwrap/read/tokenURI.ts | 4 ++-- .../erc721/__generated__/Multiwrap/write/initialize.ts | 4 ++-- .../erc721/__generated__/Multiwrap/write/unwrap.ts | 4 ++-- .../extensions/erc721/__generated__/Multiwrap/write/wrap.ts | 4 ++-- .../__generated__/IRouterState/read/getAllExtensions.ts | 5 ++--- .../erc7579/__generated__/IERC7579Account/read/accountId.ts | 5 ++--- .../__generated__/IERC7579Account/read/isModuleInstalled.ts | 4 ++-- .../__generated__/IERC7579Account/read/isValidSignature.ts | 4 ++-- .../IERC7579Account/read/supportsExecutionMode.ts | 4 ++-- .../__generated__/IERC7579Account/read/supportsModule.ts | 4 ++-- .../erc7579/__generated__/IERC7579Account/write/execute.ts | 4 ++-- .../IERC7579Account/write/executeFromExecutor.ts | 4 ++-- .../__generated__/IERC7579Account/write/installModule.ts | 4 ++-- .../__generated__/IERC7579Account/write/uninstallModule.ts | 4 ++-- .../ModularAccountFactory/events/OwnershipTransferred.ts | 2 +- .../__generated__/ModularAccountFactory/events/Upgraded.ts | 2 +- .../ModularAccountFactory/read/accountImplementation.ts | 5 ++--- .../__generated__/ModularAccountFactory/read/entrypoint.ts | 5 ++--- .../__generated__/ModularAccountFactory/read/getAddress.ts | 4 ++-- .../ModularAccountFactory/read/implementation.ts | 5 ++--- .../__generated__/ModularAccountFactory/read/owner.ts | 5 ++--- .../__generated__/ModularAccountFactory/write/addStake.ts | 4 ++-- .../ModularAccountFactory/write/createAccountWithModules.ts | 4 ++-- .../ModularAccountFactory/write/renounceOwnership.ts | 2 +- .../ModularAccountFactory/write/transferOwnership.ts | 4 ++-- .../__generated__/ModularAccountFactory/write/unlockStake.ts | 2 +- .../__generated__/ModularAccountFactory/write/upgradeTo.ts | 4 ++-- .../__generated__/ModularAccountFactory/write/withdraw.ts | 4 ++-- .../ModularAccountFactory/write/withdrawStake.ts | 4 ++-- .../erc7702/__generated__/MinimalAccount/events/Executed.ts | 2 +- .../__generated__/MinimalAccount/events/SessionCreated.ts | 2 +- .../__generated__/MinimalAccount/read/eip712Domain.ts | 5 ++--- .../MinimalAccount/read/getCallPoliciesForSigner.ts | 4 ++-- .../MinimalAccount/read/getSessionExpirationForSigner.ts | 4 ++-- .../MinimalAccount/read/getSessionStateForSigner.ts | 4 ++-- .../MinimalAccount/read/getTransferPoliciesForSigner.ts | 4 ++-- .../__generated__/MinimalAccount/read/isWildcardSigner.ts | 4 ++-- .../MinimalAccount/write/createSessionWithSig.ts | 4 ++-- .../erc7702/__generated__/MinimalAccount/write/execute.ts | 4 ++-- .../__generated__/MinimalAccount/write/executeWithSig.ts | 4 ++-- .../farcaster/__generated__/IBundler/read/idGateway.ts | 5 ++--- .../farcaster/__generated__/IBundler/read/keyGateway.ts | 5 ++--- .../farcaster/__generated__/IBundler/read/price.ts | 4 ++-- .../farcaster/__generated__/IBundler/write/register.ts | 4 ++-- .../__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts | 5 ++--- .../farcaster/__generated__/IIdGateway/read/idRegistry.ts | 5 ++--- .../farcaster/__generated__/IIdGateway/read/price.ts | 4 ++-- .../__generated__/IIdGateway/read/storageRegistry.ts | 5 ++--- .../farcaster/__generated__/IIdGateway/write/register.ts | 4 ++-- .../farcaster/__generated__/IIdGateway/write/registerFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/events/AdminReset.ts | 2 +- .../IIdRegistry/events/ChangeRecoveryAddress.ts | 2 +- .../farcaster/__generated__/IIdRegistry/events/Recover.ts | 2 +- .../farcaster/__generated__/IIdRegistry/events/Register.ts | 2 +- .../farcaster/__generated__/IIdRegistry/events/Transfer.ts | 2 +- .../IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts | 5 ++--- .../read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts | 5 ++--- .../__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/custodyOf.ts | 4 ++-- .../__generated__/IIdRegistry/read/gatewayFrozen.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/idCounter.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/idGateway.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/idOf.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/read/recoveryOf.ts | 4 ++-- .../__generated__/IIdRegistry/read/verifyFidSignature.ts | 4 ++-- .../__generated__/IIdRegistry/write/changeRecoveryAddress.ts | 4 ++-- .../IIdRegistry/write/changeRecoveryAddressFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/recover.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/recoverFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/transfer.ts | 4 ++-- .../IIdRegistry/write/transferAndChangeRecovery.ts | 4 ++-- .../IIdRegistry/write/transferAndChangeRecoveryFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/transferFor.ts | 4 ++-- .../farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts | 5 ++--- .../farcaster/__generated__/IKeyGateway/read/keyRegistry.ts | 5 ++--- .../farcaster/__generated__/IKeyGateway/read/nonces.ts | 4 ++-- .../farcaster/__generated__/IKeyGateway/write/add.ts | 4 ++-- .../farcaster/__generated__/IKeyGateway/write/addFor.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/events/Add.ts | 2 +- .../__generated__/IKeyRegistry/events/AdminReset.ts | 2 +- .../farcaster/__generated__/IKeyRegistry/events/Remove.ts | 2 +- .../__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts | 5 ++--- .../__generated__/IKeyRegistry/read/gatewayFrozen.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/idRegistry.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/keyAt.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/read/keyGateway.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/keysOf.ts | 4 ++-- .../__generated__/IKeyRegistry/read/maxKeysPerFid.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/totalKeys.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/write/remove.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/write/removeFor.ts | 4 ++-- .../IStorageRegistry/read/deprecationTimestamp.ts | 5 ++--- .../__generated__/IStorageRegistry/read/maxUnits.ts | 5 ++--- .../farcaster/__generated__/IStorageRegistry/read/price.ts | 4 ++-- .../__generated__/IStorageRegistry/read/rentedUnits.ts | 5 ++--- .../__generated__/IStorageRegistry/read/unitPrice.ts | 5 ++--- .../__generated__/IStorageRegistry/read/usdUnitPrice.ts | 5 ++--- .../__generated__/IStorageRegistry/write/batchRent.ts | 4 ++-- .../farcaster/__generated__/IStorageRegistry/write/rent.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowData.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowTimestamp.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowTokenId.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowerCount.ts | 5 ++--- .../__generated__/FollowNFT/read/getFollowerProfileId.ts | 4 ++-- .../FollowNFT/read/getOriginalFollowTimestamp.ts | 4 ++-- .../FollowNFT/read/getProfileIdAllowedToRecover.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/isFollowing.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/mintTimestampOf.ts | 4 ++-- .../lens/__generated__/LensHandle/read/getHandle.ts | 4 ++-- .../LensHandle/read/getHandleTokenURIContract.ts | 5 ++--- .../lens/__generated__/LensHandle/read/getLocalName.ts | 4 ++-- .../lens/__generated__/LensHandle/read/getTokenId.ts | 4 ++-- .../src/extensions/lens/__generated__/LensHub/read/exists.ts | 4 ++-- .../lens/__generated__/LensHub/read/getContentURI.ts | 4 ++-- .../extensions/lens/__generated__/LensHub/read/getProfile.ts | 4 ++-- .../__generated__/LensHub/read/getProfileIdByHandleHash.ts | 4 ++-- .../lens/__generated__/LensHub/read/getPublication.ts | 4 ++-- .../lens/__generated__/LensHub/read/mintTimestampOf.ts | 4 ++-- .../src/extensions/lens/__generated__/LensHub/read/nonces.ts | 4 ++-- .../lens/__generated__/LensHub/read/tokenDataOf.ts | 4 ++-- .../lens/__generated__/ModuleRegistry/read/getModuleTypes.ts | 4 ++-- .../ModuleRegistry/read/isErc20CurrencyRegistered.ts | 4 ++-- .../__generated__/ModuleRegistry/read/isModuleRegistered.ts | 4 ++-- .../ModuleRegistry/read/isModuleRegisteredAs.ts | 4 ++-- .../TokenHandleRegistry/read/getDefaultHandle.ts | 4 ++-- .../lens/__generated__/TokenHandleRegistry/read/nonces.ts | 4 ++-- .../lens/__generated__/TokenHandleRegistry/read/resolve.ts | 4 ++-- .../IDirectListings/events/BuyerApprovedForListing.ts | 2 +- .../__generated__/IDirectListings/events/CancelledListing.ts | 2 +- .../IDirectListings/events/CurrencyApprovedForListing.ts | 2 +- .../__generated__/IDirectListings/events/NewListing.ts | 2 +- .../__generated__/IDirectListings/events/NewSale.ts | 2 +- .../__generated__/IDirectListings/events/UpdatedListing.ts | 2 +- .../IDirectListings/read/currencyPriceForListing.ts | 4 ++-- .../__generated__/IDirectListings/read/getAllListings.ts | 4 ++-- .../IDirectListings/read/getAllValidListings.ts | 4 ++-- .../__generated__/IDirectListings/read/getListing.ts | 4 ++-- .../IDirectListings/read/isBuyerApprovedForListing.ts | 4 ++-- .../IDirectListings/read/isCurrencyApprovedForListing.ts | 4 ++-- .../__generated__/IDirectListings/read/totalListings.ts | 5 ++--- .../IDirectListings/write/approveBuyerForListing.ts | 4 ++-- .../IDirectListings/write/approveCurrencyForListing.ts | 4 ++-- .../__generated__/IDirectListings/write/buyFromListing.ts | 4 ++-- .../__generated__/IDirectListings/write/cancelListing.ts | 4 ++-- .../__generated__/IDirectListings/write/createListing.ts | 4 ++-- .../__generated__/IDirectListings/write/updateListing.ts | 4 ++-- .../__generated__/IEnglishAuctions/events/AuctionClosed.ts | 2 +- .../IEnglishAuctions/events/CancelledAuction.ts | 2 +- .../__generated__/IEnglishAuctions/events/NewAuction.ts | 2 +- .../__generated__/IEnglishAuctions/events/NewBid.ts | 2 +- .../__generated__/IEnglishAuctions/read/getAllAuctions.ts | 4 ++-- .../IEnglishAuctions/read/getAllValidAuctions.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/getAuction.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/getWinningBid.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/isAuctionExpired.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/isNewWinningBid.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/totalAuctions.ts | 5 ++--- .../__generated__/IEnglishAuctions/write/bidInAuction.ts | 4 ++-- .../__generated__/IEnglishAuctions/write/cancelAuction.ts | 4 ++-- .../IEnglishAuctions/write/collectAuctionPayout.ts | 4 ++-- .../IEnglishAuctions/write/collectAuctionTokens.ts | 4 ++-- .../__generated__/IEnglishAuctions/write/createAuction.ts | 4 ++-- .../__generated__/IMarketplace/events/AuctionClosed.ts | 2 +- .../__generated__/IMarketplace/events/ListingAdded.ts | 2 +- .../__generated__/IMarketplace/events/ListingRemoved.ts | 2 +- .../__generated__/IMarketplace/events/ListingUpdated.ts | 2 +- .../__generated__/IMarketplace/events/NewOffer.ts | 2 +- .../marketplace/__generated__/IMarketplace/events/NewSale.ts | 2 +- .../IMarketplace/events/PlatformFeeInfoUpdated.ts | 2 +- .../__generated__/IMarketplace/read/contractType.ts | 5 ++--- .../__generated__/IMarketplace/read/contractURI.ts | 5 ++--- .../__generated__/IMarketplace/read/contractVersion.ts | 5 ++--- .../__generated__/IMarketplace/read/getPlatformFeeInfo.ts | 5 ++--- .../__generated__/IMarketplace/write/acceptOffer.ts | 4 ++-- .../marketplace/__generated__/IMarketplace/write/buy.ts | 4 ++-- .../__generated__/IMarketplace/write/cancelDirectListing.ts | 4 ++-- .../__generated__/IMarketplace/write/closeAuction.ts | 4 ++-- .../__generated__/IMarketplace/write/createListing.ts | 4 ++-- .../marketplace/__generated__/IMarketplace/write/offer.ts | 4 ++-- .../__generated__/IMarketplace/write/setContractURI.ts | 4 ++-- .../__generated__/IMarketplace/write/setPlatformFeeInfo.ts | 4 ++-- .../__generated__/IMarketplace/write/updateListing.ts | 4 ++-- .../__generated__/IOffers/events/AcceptedOffer.ts | 2 +- .../__generated__/IOffers/events/CancelledOffer.ts | 2 +- .../marketplace/__generated__/IOffers/events/NewOffer.ts | 2 +- .../marketplace/__generated__/IOffers/read/getAllOffers.ts | 4 ++-- .../__generated__/IOffers/read/getAllValidOffers.ts | 4 ++-- .../marketplace/__generated__/IOffers/read/getOffer.ts | 4 ++-- .../marketplace/__generated__/IOffers/read/totalOffers.ts | 5 ++--- .../marketplace/__generated__/IOffers/write/acceptOffer.ts | 4 ++-- .../marketplace/__generated__/IOffers/write/cancelOffer.ts | 4 ++-- .../marketplace/__generated__/IOffers/write/makeOffer.ts | 4 ++-- .../BatchMetadataERC1155/read/encodeBytesOnInstall.ts | 5 ++--- .../BatchMetadataERC1155/read/getAllMetadataBatches.ts | 5 ++--- .../__generated__/BatchMetadataERC1155/read/getBatchIndex.ts | 4 ++-- .../BatchMetadataERC1155/read/getMetadataBatch.ts | 4 ++-- .../BatchMetadataERC1155/read/getModuleConfig.ts | 5 ++--- .../__generated__/BatchMetadataERC1155/write/setBaseURI.ts | 4 ++-- .../BatchMetadataERC1155/write/uploadMetadata.ts | 4 ++-- .../BatchMetadataERC721/read/encodeBytesOnInstall.ts | 5 ++--- .../BatchMetadataERC721/read/getAllMetadataBatches.ts | 5 ++--- .../__generated__/BatchMetadataERC721/read/getBatchIndex.ts | 4 ++-- .../BatchMetadataERC721/read/getMetadataBatch.ts | 4 ++-- .../BatchMetadataERC721/read/getModuleConfig.ts | 5 ++--- .../__generated__/BatchMetadataERC721/write/setBaseURI.ts | 4 ++-- .../BatchMetadataERC721/write/uploadMetadata.ts | 4 ++-- .../modules/__generated__/ClaimableERC1155/module/install.ts | 4 ++-- .../ClaimableERC1155/read/getClaimConditionByTokenId.ts | 4 ++-- .../__generated__/ClaimableERC1155/read/getSaleConfig.ts | 5 ++--- .../ClaimableERC1155/write/setClaimConditionByTokenId.ts | 4 ++-- .../__generated__/ClaimableERC1155/write/setSaleConfig.ts | 4 ++-- .../modules/__generated__/ClaimableERC20/module/install.ts | 4 ++-- .../__generated__/ClaimableERC20/read/getClaimCondition.ts | 5 ++--- .../__generated__/ClaimableERC20/read/getSaleConfig.ts | 5 ++--- .../__generated__/ClaimableERC20/write/setClaimCondition.ts | 4 ++-- .../__generated__/ClaimableERC20/write/setSaleConfig.ts | 4 ++-- .../modules/__generated__/ClaimableERC721/module/install.ts | 4 ++-- .../__generated__/ClaimableERC721/read/getClaimCondition.ts | 5 ++--- .../__generated__/ClaimableERC721/read/getSaleConfig.ts | 5 ++--- .../__generated__/ClaimableERC721/write/setClaimCondition.ts | 4 ++-- .../__generated__/ClaimableERC721/write/setSaleConfig.ts | 4 ++-- .../modules/__generated__/ERC1155Core/write/burn.ts | 4 ++-- .../modules/__generated__/ERC1155Core/write/initialize.ts | 4 ++-- .../modules/__generated__/ERC1155Core/write/mint.ts | 4 ++-- .../__generated__/ERC1155Core/write/mintWithSignature.ts | 4 ++-- .../extensions/modules/__generated__/ERC20Core/write/burn.ts | 4 ++-- .../modules/__generated__/ERC20Core/write/initialize.ts | 4 ++-- .../extensions/modules/__generated__/ERC20Core/write/mint.ts | 4 ++-- .../__generated__/ERC20Core/write/mintWithSignature.ts | 4 ++-- .../modules/__generated__/ERC721Core/read/totalMinted.ts | 5 ++--- .../modules/__generated__/ERC721Core/write/burn.ts | 4 ++-- .../modules/__generated__/ERC721Core/write/initialize.ts | 4 ++-- .../modules/__generated__/ERC721Core/write/mint.ts | 4 ++-- .../__generated__/ERC721Core/write/mintWithSignature.ts | 4 ++-- .../__generated__/IModularCore/read/getInstalledModules.ts | 5 ++--- .../IModularCore/read/getSupportedCallbackFunctions.ts | 5 ++--- .../__generated__/IModularCore/read/supportsInterface.ts | 4 ++-- .../__generated__/IModularCore/write/installModule.ts | 4 ++-- .../__generated__/IModularCore/write/uninstallModule.ts | 4 ++-- .../modules/__generated__/IModule/read/getModuleConfig.ts | 5 ++--- .../modules/__generated__/MintableERC1155/module/install.ts | 4 ++-- .../__generated__/MintableERC1155/read/getSaleConfig.ts | 5 ++--- .../__generated__/MintableERC1155/write/setSaleConfig.ts | 4 ++-- .../__generated__/MintableERC1155/write/setTokenURI.ts | 4 ++-- .../modules/__generated__/MintableERC20/module/install.ts | 4 ++-- .../__generated__/MintableERC20/read/getSaleConfig.ts | 5 ++--- .../__generated__/MintableERC20/write/setSaleConfig.ts | 4 ++-- .../__generated__/MintableERC721/events/NewMetadataBatch.ts | 2 +- .../modules/__generated__/MintableERC721/module/install.ts | 4 ++-- .../__generated__/MintableERC721/read/getSaleConfig.ts | 5 ++--- .../__generated__/MintableERC721/write/setSaleConfig.ts | 4 ++-- .../OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts | 5 ++--- .../OpenEditionMetadataERC721/read/onTokenURI.ts | 4 ++-- .../OpenEditionMetadataERC721/write/setSharedMetadata.ts | 4 ++-- .../OwnableRoles/events/OwnershipHandoverCanceled.ts | 2 +- .../OwnableRoles/events/OwnershipHandoverRequested.ts | 2 +- .../OwnableRoles/events/OwnershipTransferred.ts | 2 +- .../__generated__/OwnableRoles/events/RolesUpdated.ts | 2 +- .../modules/__generated__/OwnableRoles/read/hasAllRoles.ts | 4 ++-- .../modules/__generated__/OwnableRoles/read/hasAnyRole.ts | 4 ++-- .../modules/__generated__/OwnableRoles/read/owner.ts | 5 ++--- .../OwnableRoles/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../modules/__generated__/OwnableRoles/read/rolesOf.ts | 4 ++-- .../OwnableRoles/write/cancelOwnershipHandover.ts | 2 +- .../OwnableRoles/write/completeOwnershipHandover.ts | 4 ++-- .../modules/__generated__/OwnableRoles/write/grantRoles.ts | 4 ++-- .../__generated__/OwnableRoles/write/renounceOwnership.ts | 2 +- .../__generated__/OwnableRoles/write/renounceRoles.ts | 4 ++-- .../OwnableRoles/write/requestOwnershipHandover.ts | 2 +- .../modules/__generated__/OwnableRoles/write/revokeRoles.ts | 4 ++-- .../__generated__/OwnableRoles/write/transferOwnership.ts | 4 ++-- .../RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts | 2 +- .../RoyaltyERC1155/events/TokenRoyaltyUpdated.ts | 2 +- .../modules/__generated__/RoyaltyERC1155/module/install.ts | 4 ++-- .../RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts | 5 ++--- .../RoyaltyERC1155/read/getRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC1155/read/getTransferValidationFunction.ts | 5 ++--- .../RoyaltyERC1155/read/getTransferValidator.ts | 5 ++--- .../modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts | 4 ++-- .../RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts | 4 ++-- .../RoyaltyERC1155/write/setRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC1155/write/setTransferValidator.ts | 4 ++-- .../RoyaltyERC721/events/DefaultRoyaltyUpdated.ts | 2 +- .../RoyaltyERC721/events/TokenRoyaltyUpdated.ts | 2 +- .../modules/__generated__/RoyaltyERC721/module/install.ts | 4 ++-- .../RoyaltyERC721/read/getDefaultRoyaltyInfo.ts | 5 ++--- .../RoyaltyERC721/read/getRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC721/read/getTransferValidationFunction.ts | 5 ++--- .../__generated__/RoyaltyERC721/read/getTransferValidator.ts | 5 ++--- .../modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts | 4 ++-- .../RoyaltyERC721/write/setDefaultRoyaltyInfo.ts | 4 ++-- .../RoyaltyERC721/write/setRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC721/write/setTransferValidator.ts | 4 ++-- .../__generated__/SequentialTokenIdERC1155/module/install.ts | 4 ++-- .../SequentialTokenIdERC1155/read/getModuleConfig.ts | 5 ++--- .../SequentialTokenIdERC1155/read/getNextTokenId.ts | 5 ++--- .../SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts | 4 ++-- .../TransferableERC1155/read/encodeBytesOnInstall.ts | 5 ++--- .../TransferableERC1155/read/isTransferEnabled.ts | 5 ++--- .../TransferableERC1155/read/isTransferEnabledFor.ts | 4 ++-- .../TransferableERC1155/write/setTransferable.ts | 4 ++-- .../TransferableERC1155/write/setTransferableFor.ts | 4 ++-- .../TransferableERC20/read/encodeBytesOnInstall.ts | 5 ++--- .../TransferableERC20/read/isTransferEnabled.ts | 5 ++--- .../TransferableERC20/read/isTransferEnabledFor.ts | 4 ++-- .../__generated__/TransferableERC20/write/setTransferable.ts | 4 ++-- .../TransferableERC20/write/setTransferableFor.ts | 4 ++-- .../TransferableERC721/read/encodeBytesOnInstall.ts | 5 ++--- .../TransferableERC721/read/isTransferEnabled.ts | 5 ++--- .../TransferableERC721/read/isTransferEnabledFor.ts | 4 ++-- .../TransferableERC721/write/setTransferable.ts | 4 ++-- .../TransferableERC721/write/setTransferableFor.ts | 4 ++-- .../multicall3/__generated__/IMulticall3/read/getBasefee.ts | 5 ++--- .../__generated__/IMulticall3/read/getBlockHash.ts | 4 ++-- .../__generated__/IMulticall3/read/getBlockNumber.ts | 5 ++--- .../multicall3/__generated__/IMulticall3/read/getChainId.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockCoinbase.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockDifficulty.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockGasLimit.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockTimestamp.ts | 5 ++--- .../__generated__/IMulticall3/read/getEthBalance.ts | 4 ++-- .../__generated__/IMulticall3/read/getLastBlockHash.ts | 5 ++--- .../multicall3/__generated__/IMulticall3/write/aggregate.ts | 4 ++-- .../multicall3/__generated__/IMulticall3/write/aggregate3.ts | 4 ++-- .../__generated__/IMulticall3/write/aggregate3Value.ts | 4 ++-- .../__generated__/IMulticall3/write/blockAndAggregate.ts | 4 ++-- .../__generated__/IMulticall3/write/tryAggregate.ts | 4 ++-- .../__generated__/IMulticall3/write/tryBlockAndAggregate.ts | 4 ++-- .../pack/__generated__/IPack/events/PackCreated.ts | 2 +- .../extensions/pack/__generated__/IPack/events/PackOpened.ts | 2 +- .../pack/__generated__/IPack/events/PackUpdated.ts | 2 +- .../pack/__generated__/IPack/read/canUpdatePack.ts | 4 ++-- .../pack/__generated__/IPack/read/getPackContents.ts | 4 ++-- .../pack/__generated__/IPack/read/getTokenCountOfBundle.ts | 4 ++-- .../pack/__generated__/IPack/read/getTokenOfBundle.ts | 4 ++-- .../pack/__generated__/IPack/read/getUriOfBundle.ts | 4 ++-- .../pack/__generated__/IPack/write/addPackContents.ts | 4 ++-- .../extensions/pack/__generated__/IPack/write/createPack.ts | 4 ++-- .../extensions/pack/__generated__/IPack/write/openPack.ts | 4 ++-- .../__generated__/IPackVRFDirect/events/PackOpenRequested.ts | 2 +- .../IPackVRFDirect/events/PackRandomnessFulfilled.ts | 2 +- .../__generated__/IPackVRFDirect/read/canClaimRewards.ts | 4 ++-- .../pack/__generated__/IPackVRFDirect/write/claimRewards.ts | 2 +- .../IPackVRFDirect/write/openPackAndClaimRewards.ts | 4 ++-- .../__generated__/IPermissions/events/RoleAdminChanged.ts | 2 +- .../__generated__/IPermissions/events/RoleGranted.ts | 2 +- .../__generated__/IPermissions/events/RoleRevoked.ts | 2 +- .../__generated__/IPermissions/read/getRoleAdmin.ts | 4 ++-- .../permissions/__generated__/IPermissions/read/hasRole.ts | 4 ++-- .../__generated__/IPermissions/write/grantRole.ts | 4 ++-- .../__generated__/IPermissions/write/renounceRole.ts | 4 ++-- .../__generated__/IPermissions/write/revokeRole.ts | 4 ++-- .../IPermissionsEnumerable/events/RoleAdminChanged.ts | 2 +- .../IPermissionsEnumerable/events/RoleGranted.ts | 2 +- .../IPermissionsEnumerable/events/RoleRevoked.ts | 2 +- .../IPermissionsEnumerable/read/getRoleAdmin.ts | 4 ++-- .../IPermissionsEnumerable/read/getRoleMember.ts | 4 ++-- .../IPermissionsEnumerable/read/getRoleMemberCount.ts | 4 ++-- .../__generated__/IPermissionsEnumerable/read/hasRole.ts | 4 ++-- .../__generated__/IPermissionsEnumerable/write/grantRole.ts | 4 ++-- .../IPermissionsEnumerable/write/renounceRole.ts | 4 ++-- .../__generated__/IPermissionsEnumerable/write/revokeRole.ts | 4 ++-- .../prebuilts/__generated__/DropERC1155/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/DropERC20/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/DropERC721/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/Marketplace/write/initialize.ts | 4 ++-- .../__generated__/OpenEditionERC721/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/Pack/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/Split/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/TokenERC1155/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/TokenERC20/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/TokenERC721/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/VoteERC20/write/initialize.ts | 4 ++-- .../src/extensions/split/__generated__/Split/read/payee.ts | 4 ++-- .../extensions/split/__generated__/Split/read/payeeCount.ts | 5 ++--- .../extensions/split/__generated__/Split/read/releasable.ts | 4 ++-- .../extensions/split/__generated__/Split/read/released.ts | 4 ++-- .../src/extensions/split/__generated__/Split/read/shares.ts | 4 ++-- .../split/__generated__/Split/read/totalReleased.ts | 5 ++--- .../extensions/split/__generated__/Split/read/totalShares.ts | 5 ++--- .../extensions/split/__generated__/Split/write/distribute.ts | 2 +- .../extensions/split/__generated__/Split/write/release.ts | 4 ++-- .../stylus/__generated__/IArbWasm/read/codehashVersion.ts | 4 ++-- .../stylus/__generated__/IArbWasm/write/activateProgram.ts | 4 ++-- .../IStylusConstructor/write/stylus_constructor.ts | 2 +- .../stylus/__generated__/IStylusDeployer/write/deploy.ts | 4 ++-- .../extensions/thirdweb/__generated__/IAppURI/read/appURI.ts | 5 ++--- .../thirdweb/__generated__/IAppURI/write/setAppURI.ts | 4 ++-- .../__generated__/IContractFactory/events/ProxyDeployed.ts | 2 +- .../__generated__/IContractFactory/events/ProxyDeployedV2.ts | 2 +- .../IContractFactory/write/deployProxyByImplementation.ts | 4 ++-- .../IContractFactory/write/deployProxyByImplementationV2.ts | 4 ++-- .../IContractPublisher/events/ContractPublished.ts | 2 +- .../IContractPublisher/events/ContractUnpublished.ts | 2 +- .../IContractPublisher/events/PublisherProfileUpdated.ts | 2 +- .../IContractPublisher/read/getAllPublishedContracts.ts | 4 ++-- .../IContractPublisher/read/getPublishedContract.ts | 4 ++-- .../IContractPublisher/read/getPublishedContractVersions.ts | 4 ++-- .../read/getPublishedUriFromCompilerUri.ts | 4 ++-- .../IContractPublisher/read/getPublisherProfileUri.ts | 4 ++-- .../IContractPublisher/write/publishContract.ts | 4 ++-- .../IContractPublisher/write/setPublisherProfileUri.ts | 4 ++-- .../IContractPublisher/write/unpublishContract.ts | 4 ++-- .../__generated__/IRulesEngine/events/RuleCreated.ts | 2 +- .../__generated__/IRulesEngine/events/RuleDeleted.ts | 2 +- .../IRulesEngine/events/RulesEngineOverriden.ts | 2 +- .../thirdweb/__generated__/IRulesEngine/read/getAllRules.ts | 5 ++--- .../IRulesEngine/read/getRulesEngineOverride.ts | 5 ++--- .../thirdweb/__generated__/IRulesEngine/read/getScore.ts | 4 ++-- .../IRulesEngine/write/createRuleMultiplicative.ts | 4 ++-- .../__generated__/IRulesEngine/write/createRuleThreshold.ts | 4 ++-- .../thirdweb/__generated__/IRulesEngine/write/deleteRule.ts | 4 ++-- .../IRulesEngine/write/setRulesEngineOverride.ts | 4 ++-- .../__generated__/ISignatureAction/events/RequestExecuted.ts | 2 +- .../thirdweb/__generated__/ISignatureAction/read/verify.ts | 4 ++-- .../thirdweb/__generated__/ITWFee/read/getFeeInfo.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/events/Added.ts | 2 +- .../__generated__/ITWMultichainRegistry/events/Deleted.ts | 2 +- .../__generated__/ITWMultichainRegistry/read/count.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/read/getAll.ts | 4 ++-- .../ITWMultichainRegistry/read/getMetadataUri.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/write/add.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/write/remove.ts | 4 ++-- .../__generated__/IThirdwebContract/read/contractType.ts | 5 ++--- .../__generated__/IThirdwebContract/read/contractURI.ts | 5 ++--- .../__generated__/IThirdwebContract/read/contractVersion.ts | 5 ++--- .../__generated__/IThirdwebContract/write/setContractURI.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/events/Approval.ts | 2 +- .../ERC20Asset/events/OwnershipHandoverCanceled.ts | 2 +- .../ERC20Asset/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/ERC20Asset/events/OwnershipTransferred.ts | 2 +- .../tokens/__generated__/ERC20Asset/events/Transfer.ts | 2 +- .../tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts | 5 ++--- .../tokens/__generated__/ERC20Asset/read/allowance.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/read/balanceOf.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/read/contractURI.ts | 5 ++--- .../tokens/__generated__/ERC20Asset/read/decimals.ts | 5 ++--- .../extensions/tokens/__generated__/ERC20Asset/read/name.ts | 5 ++--- .../tokens/__generated__/ERC20Asset/read/nonces.ts | 4 ++-- .../extensions/tokens/__generated__/ERC20Asset/read/owner.ts | 5 ++--- .../ERC20Asset/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../__generated__/ERC20Asset/read/supportsInterface.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/read/symbol.ts | 5 ++--- .../tokens/__generated__/ERC20Asset/read/totalSupply.ts | 5 ++--- .../tokens/__generated__/ERC20Asset/write/approve.ts | 4 ++-- .../extensions/tokens/__generated__/ERC20Asset/write/burn.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/write/burnFrom.ts | 4 ++-- .../ERC20Asset/write/cancelOwnershipHandover.ts | 2 +- .../ERC20Asset/write/completeOwnershipHandover.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/write/initialize.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/write/permit.ts | 4 ++-- .../__generated__/ERC20Asset/write/renounceOwnership.ts | 2 +- .../ERC20Asset/write/requestOwnershipHandover.ts | 2 +- .../tokens/__generated__/ERC20Asset/write/setContractURI.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/write/transfer.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/write/transferFrom.ts | 4 ++-- .../__generated__/ERC20Asset/write/transferOwnership.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/events/Created.ts | 2 +- .../ERC20Entrypoint/events/ImplementationAdded.ts | 2 +- .../ERC20Entrypoint/events/OwnershipHandoverCanceled.ts | 2 +- .../ERC20Entrypoint/events/OwnershipHandoverRequested.ts | 2 +- .../ERC20Entrypoint/events/OwnershipTransferred.ts | 2 +- .../tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts | 2 +- .../tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts | 5 ++--- .../__generated__/ERC20Entrypoint/read/getImplementation.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/read/getReward.ts | 4 ++-- .../__generated__/ERC20Entrypoint/read/getRewardLocker.ts | 5 ++--- .../tokens/__generated__/ERC20Entrypoint/read/getRouter.ts | 5 ++--- .../tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/read/owner.ts | 5 ++--- .../ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../__generated__/ERC20Entrypoint/read/predictAddress.ts | 4 ++-- .../ERC20Entrypoint/read/predictAddressByConfig.ts | 4 ++-- .../__generated__/ERC20Entrypoint/read/proxiableUUID.ts | 5 ++--- .../__generated__/ERC20Entrypoint/write/addImplementation.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/buy.ts | 4 ++-- .../ERC20Entrypoint/write/cancelOwnershipHandover.ts | 2 +- .../__generated__/ERC20Entrypoint/write/claimReward.ts | 4 ++-- .../ERC20Entrypoint/write/completeOwnershipHandover.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/create.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/createById.ts | 4 ++-- .../ERC20Entrypoint/write/createByImplementationConfig.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/distribute.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/initialize.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/renounceOwnership.ts | 2 +- .../ERC20Entrypoint/write/requestOwnershipHandover.ts | 2 +- .../tokens/__generated__/ERC20Entrypoint/write/sell.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/setRewardLocker.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/setRouter.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/transferOwnership.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts | 4 ++-- .../__generated__/FeeManager/events/FeeConfigUpdated.ts | 2 +- .../FeeManager/events/FeeConfigUpdatedBySignature.ts | 2 +- .../FeeManager/events/OwnershipHandoverCanceled.ts | 2 +- .../FeeManager/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/FeeManager/events/OwnershipTransferred.ts | 2 +- .../tokens/__generated__/FeeManager/events/RolesUpdated.ts | 2 +- .../tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts | 5 ++--- .../tokens/__generated__/FeeManager/read/calculateFee.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/domainSeparator.ts | 5 ++--- .../tokens/__generated__/FeeManager/read/eip712Domain.ts | 5 ++--- .../tokens/__generated__/FeeManager/read/feeConfigs.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/feeRecipient.ts | 5 ++--- .../tokens/__generated__/FeeManager/read/getFeeConfig.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/hasAllRoles.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/hasAnyRole.ts | 4 ++-- .../extensions/tokens/__generated__/FeeManager/read/owner.ts | 5 ++--- .../FeeManager/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/rolesOf.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/usedNonces.ts | 4 ++-- .../FeeManager/write/cancelOwnershipHandover.ts | 2 +- .../FeeManager/write/completeOwnershipHandover.ts | 4 ++-- .../tokens/__generated__/FeeManager/write/grantRoles.ts | 4 ++-- .../__generated__/FeeManager/write/renounceOwnership.ts | 2 +- .../tokens/__generated__/FeeManager/write/renounceRoles.ts | 4 ++-- .../FeeManager/write/requestOwnershipHandover.ts | 2 +- .../tokens/__generated__/FeeManager/write/revokeRoles.ts | 4 ++-- .../tokens/__generated__/FeeManager/write/setFeeConfig.ts | 4 ++-- .../FeeManager/write/setFeeConfigBySignature.ts | 4 ++-- .../tokens/__generated__/FeeManager/write/setFeeRecipient.ts | 4 ++-- .../__generated__/FeeManager/write/setTargetFeeConfig.ts | 4 ++-- .../__generated__/FeeManager/write/transferOwnership.ts | 4 ++-- .../__generated__/RewardLocker/events/PositionLocked.ts | 2 +- .../__generated__/RewardLocker/events/RewardCollected.ts | 2 +- .../tokens/__generated__/RewardLocker/read/feeManager.ts | 5 ++--- .../tokens/__generated__/RewardLocker/read/positions.ts | 4 ++-- .../__generated__/RewardLocker/read/v3PositionManager.ts | 5 ++--- .../__generated__/RewardLocker/read/v4PositionManager.ts | 5 ++--- .../tokens/__generated__/RewardLocker/write/collectReward.ts | 4 ++-- .../tokens/__generated__/RewardLocker/write/lockPosition.ts | 4 ++-- .../__generated__/Router/events/OwnershipHandoverCanceled.ts | 2 +- .../Router/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/Router/events/OwnershipTransferred.ts | 2 +- .../tokens/__generated__/Router/events/SwapExecuted.ts | 2 +- .../tokens/__generated__/Router/events/Upgraded.ts | 2 +- .../tokens/__generated__/Router/read/NATIVE_TOKEN.ts | 5 ++--- .../src/extensions/tokens/__generated__/Router/read/owner.ts | 5 ++--- .../__generated__/Router/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../tokens/__generated__/Router/read/proxiableUUID.ts | 5 ++--- .../__generated__/Router/write/cancelOwnershipHandover.ts | 2 +- .../__generated__/Router/write/completeOwnershipHandover.ts | 4 ++-- .../tokens/__generated__/Router/write/createPool.ts | 4 ++-- .../tokens/__generated__/Router/write/disableAdapter.ts | 4 ++-- .../tokens/__generated__/Router/write/enableAdapter.ts | 4 ++-- .../tokens/__generated__/Router/write/initialize.ts | 4 ++-- .../tokens/__generated__/Router/write/renounceOwnership.ts | 2 +- .../__generated__/Router/write/requestOwnershipHandover.ts | 2 +- .../src/extensions/tokens/__generated__/Router/write/swap.ts | 4 ++-- .../tokens/__generated__/Router/write/transferOwnership.ts | 4 ++-- .../tokens/__generated__/Router/write/upgradeToAndCall.ts | 4 ++-- .../uniswap/__generated__/IQuoter/write/quoteExactInput.ts | 4 ++-- .../__generated__/IQuoter/write/quoteExactInputSingle.ts | 4 ++-- .../uniswap/__generated__/IQuoter/write/quoteExactOutput.ts | 4 ++-- .../__generated__/IQuoter/write/quoteExactOutputSingle.ts | 4 ++-- .../uniswap/__generated__/ISwapRouter/write/exactInput.ts | 4 ++-- .../__generated__/ISwapRouter/write/exactInputSingle.ts | 4 ++-- .../uniswap/__generated__/ISwapRouter/write/exactOutput.ts | 4 ++-- .../__generated__/ISwapRouter/write/exactOutputSingle.ts | 4 ++-- .../__generated__/IUniswapV3Factory/events/OwnerChanged.ts | 2 +- .../__generated__/IUniswapV3Factory/events/PoolCreated.ts | 2 +- .../IUniswapV3Factory/read/feeAmountTickSpacing.ts | 4 ++-- .../uniswap/__generated__/IUniswapV3Factory/read/getPool.ts | 4 ++-- .../uniswap/__generated__/IUniswapV3Factory/read/owner.ts | 5 ++--- .../__generated__/IUniswapV3Factory/write/createPool.ts | 4 ++-- .../__generated__/IUniswapV3Factory/write/enableFeeAmount.ts | 4 ++-- .../__generated__/IUniswapV3Factory/write/setOwner.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/exists.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/getMany.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/namehash.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/reverseNameOf.ts | 4 ++-- .../vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts | 5 ++--- .../vote/__generated__/Vote/read/getAllProposals.ts | 5 ++--- .../src/extensions/vote/__generated__/Vote/read/getVotes.ts | 4 ++-- .../vote/__generated__/Vote/read/getVotesWithParams.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/hasVoted.ts | 4 ++-- .../extensions/vote/__generated__/Vote/read/hashProposal.ts | 4 ++-- .../vote/__generated__/Vote/read/proposalDeadline.ts | 4 ++-- .../extensions/vote/__generated__/Vote/read/proposalIndex.ts | 5 ++--- .../vote/__generated__/Vote/read/proposalSnapshot.ts | 4 ++-- .../vote/__generated__/Vote/read/proposalThreshold.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/proposalVotes.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/proposals.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/quorum.ts | 4 ++-- .../vote/__generated__/Vote/read/quorumDenominator.ts | 5 ++--- .../src/extensions/vote/__generated__/Vote/read/state.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/token.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/votingDelay.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/votingPeriod.ts | 5 ++--- .../src/extensions/vote/__generated__/Vote/write/castVote.ts | 4 ++-- .../vote/__generated__/Vote/write/castVoteBySig.ts | 4 ++-- .../vote/__generated__/Vote/write/castVoteWithReason.ts | 4 ++-- .../__generated__/Vote/write/castVoteWithReasonAndParams.ts | 4 ++-- .../Vote/write/castVoteWithReasonAndParamsBySig.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/write/execute.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/write/propose.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/write/relay.ts | 4 ++-- .../vote/__generated__/Vote/write/setProposalThreshold.ts | 4 ++-- .../vote/__generated__/Vote/write/setVotingDelay.ts | 4 ++-- .../vote/__generated__/Vote/write/setVotingPeriod.ts | 4 ++-- .../vote/__generated__/Vote/write/updateQuorumNumerator.ts | 4 ++-- .../ContractDeployer/events/ContractDeployed.ts | 2 +- packages/thirdweb/src/tokens/constants.ts | 3 ++- packages/thirdweb/src/tokens/create-token.ts | 5 +---- packages/thirdweb/src/tokens/token-utils.ts | 1 - 1093 files changed, 1947 insertions(+), 2142 deletions(-) diff --git a/packages/thirdweb/src/exports/tokens.ts b/packages/thirdweb/src/exports/tokens.ts index b79fd979b8f..135ebe9ae45 100644 --- a/packages/thirdweb/src/exports/tokens.ts +++ b/packages/thirdweb/src/exports/tokens.ts @@ -1,7 +1,8 @@ +export { getReward } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.js"; export { + DEFAULT_INFRA_ADMIN, DEFAULT_REFERRER_ADDRESS, DEFAULT_REFERRER_REWARD_BPS, - DEFAULT_INFRA_ADMIN, } from "../tokens/constants.js"; export { createToken } from "../tokens/create-token.js"; export { distributeToken } from "../tokens/distribute-token.js"; @@ -14,5 +15,4 @@ export type { PoolConfig, TokenParams, } from "../tokens/types.js"; -export { getReward } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.js"; export { getInitBytecodeWithSalt } from "../utils/any-evm/get-init-bytecode-with-salt.js"; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts index f256c499527..15223a95af0 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnerUpdated" event. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts index 0f3e6933df7..24655af712b 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts index 4ead09e35b3..46b4bcdfdd2 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isClaimed" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts index eee9df78552..eb5900f0f41 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts index fa0dfaf9998..c2ce62b7098 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenConditionId" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts index cf0f7ee9db1..5d50983fac2 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenMerkleRoot" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts index e7d492f3570..e05aab2b4a4 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC1155" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts index f3dfb2d6509..eae334d39f6 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC1155WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts index fa9bd57d7f7..c3be854e05e 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC20" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts index 23bf45ea43f..072a582ec09 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC20WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts index 0ee231575e2..18da4c5fe0d 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC721" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts index 303a8d546b6..a2c687402e0 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC721WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts index 0f24fc95697..4d8b5529030 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropNativeToken" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts index 80eb7e26bc7..16dc6eba70d 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimERC1155" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts index ba5895a0c69..6b9a8eec9ba 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimERC20" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts index c14bfa26737..acc2fcc4d1b 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimERC721" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts index f835779317c..e53174e9118 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts index a9efda55328..c0c704d7b6d 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setMerkleRoot" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts index b432dc441f4..ac3e96fb68e 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts index c163264f500..3d729a7e69a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts index 2ab8996b8d3..326928983b5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts index a498506409a..b7e8608233d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts index b1be6e750e1..b97cc481307 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts index 966872e8e8e..2f6ca48ee78 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts index 9d4decaf62a..6b073808cd4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts index 8ce23927dd8..1c00e9783a2 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts index 94ad6c49f8c..a790fc735fe 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts index b6823beee40..cf11c8dc22b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts index 5df67764e49..cc115a55974 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts index 6fd19af5893..42242a61796 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts index 4594b063bd0..e72a50e7432 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts index 9903177bd12..9a497818fa5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts index 5625095f262..48ca2e48867 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts index 0ae59f66e8f..5a0be932b41 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts index 717ca59cb9e..25119f40b19 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts index 1ae861539a0..17426e76558 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts index 9795cbcb955..5b5ece681a5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts index 636d1cb5503..3ffb92d60dc 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts index fd9bdeb8ac7..39fa7c6d344 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts index a1e60004b43..89b15b8c239 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts index c4bf81966fe..b4cdc7364a8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts index 4787e7cf6f3..7a44c4e8018 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts index 472b88b0954..e619caed7a4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts index 7b8b575e3b4..6b9b9db57a4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts index e0744619fae..5826bb0ee25 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts index 432d7cc92dd..b8ea8d16edd 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts index ec9cf538807..1da41ddcc7b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts index ae3ed16352b..97d4537e18b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts index 36f0df68e14..52e932c37eb 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts index e9470967c3c..085bf4fe6ab 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Created" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts index ea39ab990d0..c399fba1348 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ImplementationAdded" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts index 2ab8996b8d3..326928983b5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts index a498506409a..b7e8608233d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts index b1be6e750e1..b97cc481307 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts index 5ab5634fb24..0869e1f4557 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts index 658c082cc3e..d69fe4f40ca 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd25f82a0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts index 5e705cc3f3d..d052841976b 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getImplementation" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts index 608e593b41f..fa276412de3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getReward" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts index dbe2181ab56..1a5d7085181 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb0188df2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts index f90e6da4cde..6599cf64ec8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb0f479a1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts index 3d9bda9fed2..4299c978eb8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "guardSalt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts index 9903177bd12..9a497818fa5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts index 5625095f262..48ca2e48867 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts index 155c3db7d23..21b259dcf87 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "predictAddress" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts index 8b0c32a5826..f8a04bc4e9a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "predictAddressByConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts index fd62cd8e007..a056bb26e0d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts index 1928273a182..78c5a64e132 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addImplementation" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts index 31a837a37a9..b109d962246 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "buy" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts index a1e60004b43..89b15b8c239 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts index 0362086ed0e..1398704dfb8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimReward" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts index c4bf81966fe..b4cdc7364a8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts index 4ce3bd0abbd..2bdc3e18c03 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "create" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts index c6bfa3dc60f..9467775f9bc 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createById" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts index 5617575f245..bce7aa4e1ab 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createByImplementationConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts index f5ba6c4a271..a789aded768 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "distribute" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts index 9b4ed568539..8f97709f1ef 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts index 7b8b575e3b4..6b9b9db57a4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts index e0744619fae..5826bb0ee25 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts index 658df75703d..311b8f41143 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "sell" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts index 98ea672ed10..5045baddf45 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setAirdrop" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts index 159899d75b1..26f1da040b3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRewardLocker" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts index 5245d9c150d..d9c4892d9d7 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRouter" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts index 36f0df68e14..52e932c37eb 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts index 63e1152f422..673b1ef2dec 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts index 5128c83b16d..ce7b1c6f4df 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "FeeConfigUpdated" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts index d32666975bc..ac6938b7351 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "FeeConfigUpdatedBySignature" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts index 2ab8996b8d3..326928983b5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts index a498506409a..b7e8608233d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts index b1be6e750e1..b97cc481307 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts index 67aa23f71ff..8af28f86cda 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts index 449bf58bc2a..d97a44b8e6a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x99ba5936" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts index 325ff4c94df..5e88bc93e4f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "calculateFee" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts index 2d3a7ff9ee3..ba2ff26a9e3 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xf698da25" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts index 652bbb76ec8..421de432c4d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts index 616184e5f1f..74d6941aef1 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "feeConfigs" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts index fe9c0c425b3..bb5a72deae6 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x46904840" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts index b8de65828ce..d281419863f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts index 05ec4d41cb2..818afa6bdad 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts index 11e595201f3..95991a7c780 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts index 9903177bd12..9a497818fa5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts index 5625095f262..48ca2e48867 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts index e64c25fe267..0a4a956a84e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts index b84a31b53b7..99db4913098 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "usedNonces" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts index a1e60004b43..89b15b8c239 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts index c4bf81966fe..b4cdc7364a8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts index b2469579e29..84020071e34 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts index 7b8b575e3b4..6b9b9db57a4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts index fa83b586359..c25e20d6c27 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts index e0744619fae..5826bb0ee25 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts index c6450bfcd50..345883da046 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts index fdf708570f0..8b10233558e 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts index dac81287896..f8e2b8c1f86 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeConfigBySignature" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts index df6cb2b220c..9ddc0013590 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeRecipient" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts index abd3a0e6f54..21e8e3afa73 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTargetFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts index 36f0df68e14..52e932c37eb 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts index 1081dc5be42..65d0888d40d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PositionLocked" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts index cd14273ff7e..4eed15b8769 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardCollected" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts index 8a54aadd7b9..c7f3d8dcf25 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd0fb0203" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts index 4aebc340c58..4caa2d5af46 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "positions" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts index 6ffae04260c..f277a7a5649 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x39406c50" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts index 9af4367be8e..1c38c7fdc73 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe2f4dd43" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts index 13d69cc10d5..4a18acd4268 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "collectReward" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts index c64436a0278..03af4e56211 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "lockPosition" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts index 2ab8996b8d3..326928983b5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts index a498506409a..b7e8608233d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts index b1be6e750e1..b97cc481307 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts index a5e453c7717..f9dc48bab16 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SwapExecuted" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts index 5ab5634fb24..0869e1f4557 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts index b7a3a2b4481..32f5330401f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x31f7d964" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts index 9903177bd12..9a497818fa5 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts index 5625095f262..48ca2e48867 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts index fd62cd8e007..a056bb26e0d 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts index a1e60004b43..89b15b8c239 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts index c4bf81966fe..b4cdc7364a8 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts index 099fc89f3d8..c6f2e21345f 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPool" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts index e337f719658..e77b5424a89 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "disableAdapter" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts index a8eac8c28d5..eeaaed700cf 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "enableAdapter" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts index 3c12ac4ee92..dbe972101c4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts index 7b8b575e3b4..6b9b9db57a4 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts index e0744619fae..5826bb0ee25 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts index 4d51ce7fe8e..d0db081529a 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "swap" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts index 36f0df68e14..52e932c37eb 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts index 63e1152f422..673b1ef2dec 100644 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts index 56c279e35ce..4566ae533d4 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts index 2ea7753de27..d50373e8312 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts index 3ffea0690fc..1b93894ecfe 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts index bb275da2f18..3ded3f5529b 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts index da4fc19dbd4..f7240e15589 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts index 191addedb4a..d88bb911cfe 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "multicall" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts index b4114846977..08af112996e 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnerUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts index 91c7d953571..e7d18e25f94 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts index ccd898be5ea..5e69d08ca21 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts index 2db6b4f4412..dbe8285a417 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts index 8a762797f05..8ea7d761d26 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts index 4dd68636156..efa7ad2fe4d 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts index 435c2f003e0..ad050c4dd3a 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PrimarySaleRecipientUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts index d5bc32a66fd..56a38752334 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x079fe40e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts index 1700a8c5103..66173a2a58e 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPrimarySaleRecipient" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts index bda5d833de1..3ddbd97fa3b 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DefaultRoyalty" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts index 4dea19eac28..55dc7b798a4 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoyaltyForToken" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts index 35b885df948..586f785dd19 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts index df38082ccab..aa5aa6ebb79 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts index 9b63a90861b..7d580f21ede 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts index 2ac55df9cbf..407137179d0 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts index d50f9564b26..fdce2d9c969 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts index 7ea6f0a96e3..148ebb62fa3 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts index 4de63a5df08..9fe313c9645 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoyaltyEngineUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts index 2ac55df9cbf..407137179d0 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts index a2f63658455..8c871ee8dc9 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "getRoyalty" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts index 6b3ae0a2749..668627644da 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyEngine" function. diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts index e3a8808253c..6b40fa433e9 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts index 6ad5e011e49..d1966acff79 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addExtension" function. diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts index 34a7822686b..6374a15b117 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "removeExtension" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts index 73082960b11..bf73a866568 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ABI" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts index bad6f8ddea0..83af7231f72 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "addr" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts index dc86243a44a..ebb71e668dd 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "contenthash" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts index 660beaf8001..2de03b0c45e 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "name" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts index 26356b9a164..6ce678c089c 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "pubkey" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts index 48245cd713c..3faa66e172e 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "text" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts index 578f2a95426..63713f86a03 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "name" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts index 3fe798c55dd..9695a690140 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "resolve" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts index 6fe4e4d1c1f..f84f14b8d2d 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "reverse" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts index c676d387afb..73f45348e7c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts index 0c3088f8948..813a7ef5345 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts index b4467275ef2..b90d560ba70 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts index 6684c87c397..fe5b329335e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts index 55a70ef2392..f14b243d535 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts index 5076f66c719..81f578628a1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleRecipientForToken" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts index 0c718deff5a..be277b363a4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts index 2762fcdd17d..14dd8c83769 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts index df9e69cfcfb..660ef2ad7d5 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC1155" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts index fa7b986927c..959e9340680 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts index 7ec6e819a8d..9ec1ee4692a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts index f36a7e6d858..95abdf2729c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts index 630fd7070d8..32bc00e804b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burnBatch" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts index fa7b986927c..959e9340680 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts index daeeb9564ec..644c3576dd3 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts index 777715966d4..ee38633afc3 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ClaimConditionsUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts index e1accf0d244..02f82ec5124 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts index 64dd8ca345d..deec1d69026 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "claimCondition" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts index 1684879b155..dcff83944d7 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getActiveClaimConditionId" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts index 7da28e54495..df3813b2551 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts index 8c3db1e8d27..d00ef37b669 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts index 36b0884c34c..8874dae7893 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts index 21040cdf986..298f234735b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ClaimConditionUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts index fa7b986927c..959e9340680 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts index 04b44c4486c..36b144c74be 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "claimCondition" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts index 8c3db1e8d27..d00ef37b669 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts index 043ca48332c..4b83811da0d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts index 96daa76e1c0..b78452a80a4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ApprovalForAll" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts index e293e23488c..fe5cb14013f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TransferBatch" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts index 43726f4eeea..2f0cdab107a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TransferSingle" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts index 4993d85f7ee..3888a8693f8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "URI" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts index 06edf5575c1..a9de58c8de5 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts index ecfeac7aa8a..8929fab3b89 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOfBatch" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts index ae49f338a36..3a13e7d4011 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isApprovedForAll" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts index 293d69ec291..99962350074 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "totalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts index 16c6c93fc3b..1d746a402a6 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "uri" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts index 69941c9ab48..21f4d03cbc7 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "safeBatchTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts index 31dc293f5dc..990d55e78c4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "safeTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts index 4d62b4b8e95..540376e8822 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setApprovalForAll" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts index 19dddf43c7c..edf264b16d5 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts index 0a0627687ed..28cca2da663 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts index b21c1c5e90d..72454a87201 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onERC1155BatchReceived" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts index cb3d27032ac..16eff631963 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onERC1155Received" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts index 4f7225de3d2..a721d8b21df 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts index aab127edc73..f50c34dc977 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts index dd2a413af02..0b35913b5bb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensLazyMinted" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts index 5a175f1a89f..5326d8c783b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "lazyMint" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts index 45a4d431a21..1639017dea7 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts index b28be8d3f50..fa194b737b1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts index 0a0627687ed..28cca2da663 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts index 0ce21caab41..003e54a53cc 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts index 3d42dad88ac..ada2b7be565 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts index a2f1c1da7bb..c6376f6f324 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackCreated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts index aa6b44b5de6..e1882226a08 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpened" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts index 7b9a4ae3ada..5353551e981 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts index 651159cc31f..d937bb002f9 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPack" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts index b76754ccb3e..ab20ae3048d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPack" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index 1700b14ae6d..877c44e06ab 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpenRequested" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index 973a8afa50d..de793650734 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackRandomnessFulfilled" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts index dad4ba854e1..95900c4c2c0 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "canClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts index f27ff5f2568..4b53484ee6f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index a062fe62999..d9b0f36898b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts index ca1f6d20821..3a3d4ab049f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts index 09bb704a2ca..16cec785cf1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts index 6a85a154053..4906fe81e4b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts index 3caf37ca828..1359ef370de 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts index 57cc777cc94..91cac84cb8e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts index 93b50de0267..ac580fa73c8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts index cc60bb803ec..17da59ab8da 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UpdatedRewardsPerUnitTime" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts index 1bdc0e9edab..036d3d395a8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UpdatedTimeUnit" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts index 381a97e4ac0..c94902fa163 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts index 95246a9bf77..dc4bb9a4ae9 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts index 72773f0c947..b8423f58cae 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts index 4640d2664d8..15711543ef4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts index 261bf72277e..fc36cb2fea8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts index a1c7ae20ebc..9761a5cdbfa 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x75794a3c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts index b276e41eaab..41c64799da0 100644 --- a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isValidSignature" function. diff --git a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts index da351e0658d..bcf99543c0f 100644 --- a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts index e3d2a786c0f..e2032fab9d0 100644 --- a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts index 5033086ff1f..05b834d34c8 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts index cd60467baae..06d69c5ff16 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts index 9499d363326..fe3bb8cc142 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC20" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts index 980f90c08d6..e79f0240b1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts index 315fd89acb6..1b5c24e72ab 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts index 14e6c3521f6..02facd11679 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts index 0a39df5ef61..15628bef1f9 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts index 32ae497829f..03b681a438e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts index 543ca00aeb3..f2bb82075e1 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts index 8874f1f8b77..d05c49e0642 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts index a0bff681c08..66dc374e9ff 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts index 2c1aabd1066..502154ae933 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts index dbfd5398c08..62a00d474bf 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts index 83c90ba1373..8057c658b1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts index 392798f0938..c52084bf3e2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts index 90f936573ff..a301bde7d16 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts index 05bfa99e8b9..28fc473b542 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts index e713101a8f2..7c6f025f370 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts index a40ddadb5ea..315fc80ca09 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts index c3071082e4e..05f8b87f866 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts index bb688023945..f9e725775a4 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts index 84e581ee5d0..8f1a555dafe 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts index f3088be371b..77488bf42f4 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts index 0785785f1cf..a5729c91c33 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts index 196dae6e56c..a7374999c2f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts index 6b64f961507..03ecfce9d0f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts index e0db2221abd..f0b38100c6b 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts index edb03b78b32..167e6b98602 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts index 3d910a7024d..b252d8b1851 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts index 42821808bda..b239f00a27d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts index b727ca0d9b2..51fc2b438ba 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts index 481bb8eb721..7462592d148 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts index bdcc3f2ca69..2ac66e20af2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts index 6e8274dfa05..ac575a71b1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts index 57d0a77dff7..1704b169c28 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts index 408f9cd07a8..a102e7e40db 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts index c1c69ea396d..e351237d2eb 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts index 0c3048d17f9..8b3baff39b1 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts index 6fdc7ac02c8..b685e6934d6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts index 6ac50c18b65..8d2d1ad0f4f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DelegateChanged" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts index 3dee0b93a04..679716ea9ea 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DelegateVotesChanged" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts index c571722679d..08ea92ba0b3 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "delegates" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts index e3441230e1e..7a9fef8ca2a 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPastTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts index ae46edb8b0c..efa3696035e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPastVotes" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts index cff1749bd6b..9f60ad99262 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getVotes" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts index 7cef71ff61a..8c871e9055c 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "delegate" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts index d4ccd48cc5a..3d4a8db0d50 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "delegateBySig" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts index 71983157230..08a9dede108 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts index bb688023945..f9e725775a4 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts index c1c69ea396d..e351237d2eb 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts index 64ca336631f..f48fb6279b8 100644 --- a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts +++ b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTrustedForwarder" function. diff --git a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts index af103446eff..edbd43bb8c8 100644 --- a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts index 61732d4c768..b2894032e80 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "validateUserOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts index 9704d1c60fa..a16bc9a83cc 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AccountCreated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts index 29ba1977797..5da6ede6ac7 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignerAdded" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts index ee49f539f23..82619ea12e0 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignerRemoved" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts index 88b5f01391a..31f9d6e64c0 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts index e442c9ebe15..a26c296a7f2 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAccounts" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts index f0bac129833..846406de80f 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAccountsOfSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts index 07d3c8f0a19..0174ca08356 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAddress" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts index 49004ff07df..93cf2387dff 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x08e93d0a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts index 4213342788a..6d3eae1caf1 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isRegistered" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts index d13cf94c6b5..213525ca085 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x58451f97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts index d71e0c7bbee..b03c26c972f 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAccount" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts index 58b1f104269..8799cb8bd6d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onSignerAdded" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts index eeb95bb3887..378b00d4ce7 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onSignerRemoved" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts index 3c4cdb022dc..8da029f6d0e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AdminUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts index 49b12b5e7ca..a74536a6f7a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignerPermissionsUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts index b25927d7f3e..10a3a03b5de 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8b52d723" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts index 340e8e2b338..4a99bfd8fea 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe9523c97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts index 473f22cee70..8637d17d40e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd42f2f35" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts index 6f91832c4d4..554ab0b1511 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPermissionsForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts index f70ae69ae27..2f4acb5c7e3 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isActiveSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts index 421e3fb9b05..2e40f43ff8e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isAdmin" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts index 13c9660d679..4dd893869dd 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifySignerPermissionRequest" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts index 0dfecdfe3e3..acad573f066 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPermissionsForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts index aefeda70d1f..57c092662d1 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AccountDeployed" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts index 979246b3a32..786675249ff 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Deposited" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts index 408f596d1b3..c159efd99ae 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignatureAggregatorChanged" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts index cdb5cb7718a..64432e3e52a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "StakeLocked" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts index 2c2a521b3e8..3db5b217e5d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "StakeUnlocked" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts index d6baaadd015..fdca4a373fe 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "StakeWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts index e7361b8f242..34ab121fe48 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UserOperationEvent" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts index 651ba8f699d..ea97112e335 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UserOperationRevertReason" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts index ba6086ca941..7b4e4b377a5 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Withdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts index b7ff3081b0c..32ad1790b30 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts index ef2dd86df6b..df61606924e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getDepositInfo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts index 4047aff1316..129766b56b2 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getNonce" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts index 035be155152..75572b4e566 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getUserOpHash" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts index 9dadba06162..5385bd8265e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addStake" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts index b401e7ffe20..29803f6389d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositTo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts index 824cf867b60..b651367ee8d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "getSenderAddress" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts index 5ec1fb8864c..164d965aa5e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "handleAggregatedOps" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts index 5021df6b320..142b42768d8 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "handleOps" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts index 66aeaeb26ac..f41500266dc 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "incrementNonce" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts index 8ad17a56ed6..45436f31447 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "simulateHandleOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts index be82ffcd830..c1098fde254 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "simulateValidation" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts index c136fb4c701..3506e68345a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts index 10668f3080d..37db0a31e12 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawStake" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts index 8d0e04b7655..b34a439bdee 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawTo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts index b8d5ff51605..d9a94db53db 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PostOpRevertReason" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts index deff206f64d..ec9af361efd 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getUserOpHash" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts index cdb00c1cd44..1c7b385cc5c 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "postOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts index ce0e1b226f6..f1259034401 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "validatePaymasterUserOp" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts index dc44d6e24ab..f18b212a278 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Deposit" event. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts index 702a6b214e0..b9024da0879 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Withdraw" event. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts index c6aa2cf4a8f..c4280dffdde 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x38d52e0f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts index a336a3ba71d..aae1a9b0279 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "convertToAssets" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts index 19adbec5d30..0ea83b5498f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "convertToShares" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts index c381e4e07ce..58b4e09281a 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxDeposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts index 31d838daa75..5006143bc59 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxMint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts index c87d5ca24be..aeeb693fc77 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxRedeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts index 5d2194959f1..7ba38dd8844 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxWithdraw" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts index 55bd138d5c8..0f99cea3c14 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewDeposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts index 1c77082a6d4..443c34fb41f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewMint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts index d22c9fc5c1c..8e36a4bb59f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewRedeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts index 0b48678535b..9c250aad3bb 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewWithdraw" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts index 13444d4de6f..e16ab10ad0a 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x01e1d114" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts index f987f82b52f..cb7b09695dd 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts index 21674a7ae44..76b3e11984f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts index df351f6ff7b..fbaf5e7bff3 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "redeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts index f9d36616418..be29d49c712 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts index f48782ca657..ce17d6bf523 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isValidSigner" function. diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts index 366fa324ff1..4a94d5ca5f4 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc19d93fb" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts index 5b0fd38dc2d..17140290a66 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts index d6fbe26258f..939294b1b13 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts index 5a98dee8f1b..d859f4ba0c7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts index fef30ba5b5b..587749a9ef9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts index 80e7ca4d58c..bc8960627ce 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts index f4caa50a316..a5a0941adff 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts index 2f96fcc6574..401d92112b7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC721" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts index 6713f907a04..e508430c74a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts index c8242f26ff7..1b8c9c154f4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts index 05c14805732..28715bb477e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts index 0c742164d79..4b7f34da2c5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts index 1f66b6a3b03..a8e4728f254 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts index 96d8aeb4491..97c65f0ee9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts index b6d15533e0c..1ddcb4ea94c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts index 80887b4834b..2e2af10afbf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokenURIRevealed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts index 72fec8c3c7a..0cf4e15cb47 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "encryptDecrypt" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts index 6c8d4a2dca7..b650d93ec60 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "encryptedData" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts index d458a71158e..7a15be4a4a9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "reveal" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts index f9323d3861e..04c54d35afd 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts index 15d51107b1f..1f867c8cdca 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "baseURIIndices" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts index bdd2144fb09..536b5046012 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts index 5e4f78b73ee..05fc620d047 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts index 4c03e0387d5..f89b83a2294 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts index 409a4030ce4..a3a6212cb9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xacd083f8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts index bd199d831e0..1c30efb8cb0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts index 59a01bbc213..12d2073a0ee 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts index 96d8aeb4491..97c65f0ee9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts index 60f4078f4d2..88327db4387 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts index bd199d831e0..1c30efb8cb0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts index d07fd8efc8e..a24b8c898b3 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts index c1f8b0cb939..e60cc1a073c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts index da4f0dfc8d7..585bd7da021 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ApprovalForAll" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts index b0d19bab766..83c0e99117b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts index 0a97dbe010d..95ba9ffd8ac 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts index e6e6c742b20..62c67865417 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getApproved" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts index 48aae344fd6..ef646d5aeb4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isApprovedForAll" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts index 7f2ee48afd1..977eb71775a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts index 725b42cb89c..401e641161a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownerOf" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts index 44320640e09..a7437962276 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe6798baa" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts index 2541453f1fa..09032ae8d6a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts index cdd424d3861..968f8ffa3a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts index a19be2e4323..08c6748815e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts index 35b4af6555e..f11264daf45 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts index 6a39c3be5ca..1f5c2679cdf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "safeTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts index b2a383dd006..f4cbe38611c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setApprovalForAll" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts index 7eda6c94dfe..16b2674bffe 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts index 09dbce48836..86d66e03f66 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ConsecutiveTransfer" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts index c57aff8f227..285fff85165 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokensOfOwner" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts index fae3b29b1eb..72eb5418268 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokensOfOwnerIn" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts index abab41a1765..2bb30b6fa3b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts index a2194155e72..e8bea47ee9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenByIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts index 317ffdcd06e..fae88bc7dc4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenOfOwnerByIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts index 4e89a7ec99f..1c908156fcf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onERC721Received" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts index eb69059bee4..26bf1ce6d2f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensLazyMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts index 9889bbbb726..06ce4972ee8 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "lazyMint" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts index 667cd89e059..e9b672cdac1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts index 5541d6823a5..a66e7e3dad9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts index 0f6b2f9089d..e445a10b9db 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts index 072e98db461..4bc2551a316 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts index 2ae9e83a539..663fc79fa6d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts index bee2ca42a4e..fdd553b85a6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts index ed1eccc08f6..d3980b873a9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts index 19270af23a0..a3d246e412b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb280f703" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts index cce5712e655..0c52ecd7ecc 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts index c60a5c32c2e..fad569bc974 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SharedMetadataDeleted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts index 57d4bb484fb..a500645cb13 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SharedMetadataUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts index af641d83093..e025d2380a5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfc3c2a73" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts index 2c361c8dad4..627bff7d9d2 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deleteSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts index da44ced507e..b8cf5949eed 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts index 9da306f14a9..a000ef2b4b1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts index c1389c23da5..c126f868b3a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts index d2d2e11439a..8005a91782e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts index e51025efeaf..390c8b29837 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts index 271dd56a03a..8c64cb10777 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts index 43d69ee4691..e768fbb80c6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts index 691150f4d6b..28b8a7795ad 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts index 85cbbd5ce3f..ddfeb7efc4a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts index 0955ed53001..53692d1f2bc 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts index 8cb89434077..470d3344098 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts index c8304c9c6af..5971444a1c1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts index e15d31e6f1e..c47c2d400b3 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts index 3f20b599377..d7f2ad88809 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts index 667cd89e059..e9b672cdac1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts index 9b1685e557a..e96d9d79ff7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts index abab41a1765..2bb30b6fa3b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts index 0f6b2f9089d..e445a10b9db 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts index cdd424d3861..968f8ffa3a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts index 121dc3577cd..d9344309eea 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts index 2ffb88f2541..cd952cd72a7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancel" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts index 54ee1fb1625..31971565a3c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts index 266759ba60d..a492ce9f95d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts index 7a7692db51d..11cdff84051 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts index 76f13dfcba5..af072eb19e7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revoke" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts index 1c2e257586d..fa409453d53 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensUnwrapped" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts index 476e907ad6d..fc620668141 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWrapped" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts index 1ea0195f972..3299d46f932 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts index c8d50c84091..d4d1cac88b2 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts index 4b768cdca11..a5629461f55 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getWrappedContents" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts index abab41a1765..2bb30b6fa3b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts index 0f6b2f9089d..e445a10b9db 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts index cdd424d3861..968f8ffa3a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts index 1b88232e138..51d6ee7eb4c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts index 2ea813d8f3f..ea7207513cf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "unwrap" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts index 03582322e9c..00ddc11ce19 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "wrap" function. diff --git a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts index 6c8ce5a86d9..8e80e46a8a4 100644 --- a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts index c833872cbc4..14b6db87730 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x9cfd7cff" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts index 7225170e831..4a0f71b90f5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isModuleInstalled" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts index 88b6b0b11aa..adc179df2a8 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isValidSignature" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts index 7778eae8bee..40d1c3a2dbb 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsExecutionMode" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts index b31d7ab4910..61d1e156108 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts index 5a7c9b02cd4..e1f33cae5cf 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts index dcc7750443a..427537a9640 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "executeFromExecutor" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts index 9431c3d7dcf..fc3fb205dc1 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "installModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts index 5cf2425dcac..d9b1094c612 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uninstallModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts index bd823de97a1..93c168c64f5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts index ee84303fd0b..895b9c0faf5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts index bbf45d7fb41..5f54e325971 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts index f31566f4716..2125755adc1 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa65d69d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts index 180f8da52fc..c8adcafff58 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAddress" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts index 99a48c2f09d..2c9986eebf5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x5c60da1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts index 3323ac7ce15..076e831d264 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts index 3c7faad0ce7..f3fb0db94fc 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addStake" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts index e499f3b0187..9edabb0aaf8 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAccountWithModules" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts index 5798a31905c..0fa112c28e3 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts index 21c03f6f32a..a3049c9517e 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts index c3601ab471b..b2443506421 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts index 632ee9f2fce..cd9ae09f1db 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeTo" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts index 4a20c5590f8..c995e626bdb 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts index a8e5011d893..0cad89d40fb 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawStake" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts index 8d5f1a700d2..0e275711fcc 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Executed" event. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts index 93310f4dc59..36d4e243abf 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SessionCreated" event. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts index a8020aabb12..9ed2c26e1bf 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts index 3566c481b00..4a44f5a3fd1 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getCallPoliciesForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts index 9c789a7cfff..a5a81370ba3 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getSessionExpirationForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts index ea93606d2d6..3e948ef623e 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getSessionStateForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts index a1763951ba8..a97dfb80636 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTransferPoliciesForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts index 3287eb5fbd0..f653921de04 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isWildcardSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts index f78b186f2cf..fc57af91cb6 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createSessionWithSig" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts index 81b1df259d6..98988776faa 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts index 808b3854139..92ecb549276 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "executeWithSig" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts index 31bb53a4e44..ab6c007dacf 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts index 7ead96b0c37..b27d76ee6e0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts index 52d7a381538..f31cabf823b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts index 06c46b0a455..8931d97823a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "register" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts index 2c959f33f59..4a3345eef0f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x6a5306a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts index af26e126344..011085f6144 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts index 52d7a381538..f31cabf823b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts index 5bb15a70f8d..7a97f33ba5e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4ec77b45" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts index 9be06cdbe1e..837c7aef13b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "register" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts index dfc90dfd636..3d76100bc0c 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "registerFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts index 514c3444a8e..607bdffbbda 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AdminReset" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts index 655c8354855..a3d94326af6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ChangeRecoveryAddress" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts index a646e6f7252..653946dc4b1 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Recover" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts index 43d1195a0c1..540ee67b971 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Register" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts index e5e708c2290..ef1ff29a359 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts index e92335890f0..8cf023ced5f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd5bac7f3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts index cd9b402fa7a..16234140459 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xea2bbb83" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts index cb54955823e..f968b97b123 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x00bf26f4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts index dd5e0800b68..05486ae0fd0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "custodyOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts index 60f0638f844..b1633b0da23 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts index 86c34619ada..4670417928c 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xeb08ab28" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts index 31bb53a4e44..ab6c007dacf 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts index aa4fbda61f2..0f502bcf8dc 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "idOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts index a790ee0cf7d..1ae91834a6d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "recoveryOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts index 3b1472b3eab..41d18969b31 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyFidSignature" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts index bda18636266..d0ede787469 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "changeRecoveryAddress" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts index 60bc5bc9fc7..26fb6c23633 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "changeRecoveryAddressFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts index 8831467efb6..5bcd4720a76 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "recover" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts index af489197a44..ef075116489 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "recoverFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts index 326c6c3ab43..f4d9fc76753 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts index 2bbdcece210..04517684834 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferAndChangeRecovery" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts index f254cef9caf..d929c6a300f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferAndChangeRecoveryFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts index d4499dad613..eb7d9656e9c 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts index c4ac42ba8be..978192092e2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xab583c1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts index 32289cc6879..e9d4f945ce6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x086b5198" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts index 57aad7f4608..df21d367979 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts index 2e72ed2db94..269045165c3 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "add" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts index ab6001559a8..a7e48e33e51 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts index 82c9fe8a6e9..9d3ca5cb0dc 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Add" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts index 4ddf953a99a..f42650a0de3 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AdminReset" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts index 76876634bc2..c1a085d0e4b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Remove" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts index c3ce52a2acc..ff5dd13852a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb5775561" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts index 60f0638f844..b1633b0da23 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts index af26e126344..011085f6144 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts index c603ca366d6..22e35d301e5 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "keyAt" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts index 3ec2a78a3f8..4c55c831e17 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "keyDataOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts index 7ead96b0c37..b27d76ee6e0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts index 47e7e10c438..27051d256c2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "keysOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts index fe3c07d5561..2ba35c2da2e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe33acf38" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts index 70f25124341..57e35d5745f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "totalKeys" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts index 96d8096c9d7..69300b70490 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "remove" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts index 9f9ca5ec955..206f94866d5 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "removeFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts index 2804abcbb62..a14b1157781 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x2c39d670" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts index 95f61c0b3b5..6b44251b8fd 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06517a29" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts index b269ae251b3..e344e5323c0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts index 251d0af30af..467003b92d2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x2751c4fd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts index 0ea65e49702..cb8970c72f0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe73faa2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts index 051a7d5075d..6d9acff24e6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x40df0ba0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts index 7fe28d59ed6..b8c9defb67d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "batchRent" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts index 83175b73a06..a419f7a3bb4 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "rent" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts index 7727e542752..3fea9d326f2 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowData" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts index 790321c4822..fdc73f35d45 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowTimestamp" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts index 8ad5fa2669a..1410fcebc23 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowTokenId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts index 32715c1467b..b77f53ea762 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x7829ae4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts index 9d41e05d6ec..f9b1d1a50ea 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowerProfileId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts index 5eb6814b734..d22da8e12f8 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getOriginalFollowTimestamp" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts index 101623902a7..0166e59c268 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getProfileIdAllowedToRecover" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts index 6856b518944..fd3d19d6825 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isFollowing" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts index 1631c257613..75ead7399a6 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "mintTimestampOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts index b30d2e0f539..9d953c3622d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getHandle" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts index de298f22a2d..eac910c2726 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x35eb3cb9" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts index 099379d9c7a..7b1e7dc38df 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getLocalName" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts index e2e95574a6d..b0895520653 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTokenId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts index cc5518032e3..03b45d787ff 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "exists" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts index 114e9c70f25..3aca1b317c2 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getContentURI" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts index 849132cce2d..75ebeb39950 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getProfile" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts index 378495f5b5e..727f85cacaf 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getProfileIdByHandleHash" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts index 940c42b7539..732495fd266 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublication" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts index 1631c257613..75ead7399a6 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "mintTimestampOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts index 87a92d9f86e..b75ca15c1c7 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts index ce9edc4470c..365d29d6da7 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenDataOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts index 3e5b2b4e859..4c82ead0f23 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getModuleTypes" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts index 65cd261d708..f8e495a9b44 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isErc20CurrencyRegistered" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts index 0676878e575..6edc467ade5 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isModuleRegistered" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts index 6c94f98c632..f7bd65da099 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isModuleRegisteredAs" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts index c7a8d1aaa1b..e980545f042 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getDefaultHandle" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts index 2137f95a805..2bde91042d0 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts index 3c9809bd374..84b8abe8f34 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "resolve" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts index 3bfc6a92603..65a62931636 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "BuyerApprovedForListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts index 46d14a1b078..25f7aab04ee 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CancelledListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts index 127a498ddaf..983ca3c8c4d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CurrencyApprovedForListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts index 23f46addfec..7dcc74cbb31 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts index 4ea1ff93b92..664e583308f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewSale" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts index f33e4de028d..cd946280f87 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UpdatedListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts index e4db3be77d7..e6f15c2059e 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "currencyPriceForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts index 734378136b7..ccef2b4d391 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllListings" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts index 2b829550285..ce20b1c10a3 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllValidListings" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts index 3002d389ef2..877c774ef0a 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts index 9bcfe71cbf1..647f507c31f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isBuyerApprovedForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts index 6351c37f548..19748a64418 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isCurrencyApprovedForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts index b8d0b72e56a..742169f4f44 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc78b616c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts index be8ce99cf58..ea518f185d6 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approveBuyerForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts index ca45650bb17..6e37f564067 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approveCurrencyForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts index d695f899c51..8287263a1ba 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "buyFromListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts index 504776da5b0..2c791b9f01e 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts index 49303739da5..1edc7ce9143 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts index e484d216997..5af616b8e02 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts index b15d763c5af..ef8c6ff4409 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AuctionClosed" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts index 930e0f2aa44..aafa0ed4b28 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CancelledAuction" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts index dd69261100a..612c8dae2a4 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewAuction" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts index 27f25f28508..d63d49db766 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewBid" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts index dd88bdc4fbb..5bf0ddba132 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllAuctions" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts index 77c5116f129..2a78e300971 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllValidAuctions" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts index 036617fbd7b..0e617b97e15 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts index 9546e3db173..941d302bdc2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getWinningBid" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts index 11c8eab2430..b6063ca7b31 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isAuctionExpired" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts index aea27839d1d..09096df9c54 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isNewWinningBid" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts index 0610fda8156..6a9174b4a20 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x16002f4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts index 942bb17d0c2..e629d8e71bf 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "bidInAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts index 846aded52d0..51df278132e 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts index 8004652acac..4d65a231619 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "collectAuctionPayout" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts index 864aab2e45f..21a99f91025 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "collectAuctionTokens" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts index e48106af277..378f42640a8 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts index 37e97c246e0..62842341a63 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AuctionClosed" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts index 7fe12ca837f..5177b264957 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ListingAdded" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts index 2233c856fc7..5ca6b7e42ea 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ListingRemoved" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts index 5a9f20825a0..9de7381fbe8 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ListingUpdated" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts index b033e92129f..4efda0af611 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts index c5d506f7736..da59581ce1c 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewSale" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts index ec779ad8e7d..d32fc97edec 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts index 75061f26982..1cf532447a5 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts index ca512450a4f..63421151241 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts index cd44865ea62..3b2d58a96e6 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts index a7f71ea7315..acfdf87abf0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts index 387aed05883..406594839e2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "acceptOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts index 97a608d0a86..36f0a65a4de 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "buy" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts index 16205373cf0..277b56ec199 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelDirectListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts index f44a7290903..3c83c671942 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "closeAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts index a117cfa8e94..136cc238a5b 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts index f4e8ccdcf4f..6a8e9874143 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "offer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts index 8c2125dcf6f..f156ccd65cc 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts index f65d00c8a21..bfc107d5e07 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts index cf7822145e7..d1d0a1fb924 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts index 611ab797190..fd42fcb8462 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AcceptedOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts index 44708d6932b..c47bf357bc6 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CancelledOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts index 839757be049..a0ce2707f11 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts index 9d96cf8d183..eaaf99cd4b2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllOffers" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts index d3b4a4df5cd..6fabcc41063 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllValidOffers" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts index 8004b2e251d..72dfeaac9f3 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts index 4de665a1cb5..a9656ff8634 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa9fd8ed1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts index a055869c958..65873d8a1cd 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "acceptOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts index 449475eae93..150f01298a0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts index b57181f8d69..e8aa04508aa 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "makeOffer" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts index 70b5e739f97..b015f39ef05 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts index cb8daa93fac..388e295db59 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts index 5a193fd2cb0..8f55369e551 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIndex" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts index ca806668ee7..2685b177c57 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMetadataBatch" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts index cf036b86757..82ed8f80c64 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts index 7d42f61ef90..5c43264fbea 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setBaseURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts index 3e18197cdbc..ec8a31184f5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uploadMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts index 8fc04c50266..79e6a9a81a1 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts index ef821c8a2d7..c96956e1a57 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts index f6004039b01..c3b480fde67 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIndex" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts index 89701986e36..b2969c59369 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMetadataBatch" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts index 315f110f39a..090faeb17bd 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts index 511924b2dcf..b7de260d3fb 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setBaseURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts index 074b04bbfc1..c3d03933622 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uploadMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts index 51850c27a6b..463ec07137f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts index 37ecb3a29ec..f4173458bf5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionByTokenId" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts index ca8d248d475..e4432a6b319 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts index f9ed45eafa0..f14d386e81d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditionByTokenId" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts index de6de1fac6f..6f1c196e033 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts index 4f07605a11f..df40a231efe 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC20"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts index 88f1fa11af0..552b801b09f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts index d77a83b90b3..b9cc3df2f69 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts index 68acc8f5564..1f56dc88385 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimCondition" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts index 8f35e243b55..0ae7c9416fa 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts index 03a615c3f62..f7671768943 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts index 7040ddc3643..12ccf64b64b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts index 4be195f871d..aa68a4fcc99 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts index b4e0bba598b..1916f16a819 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimCondition" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts index 0086cabc826..320e7f3fc26 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts index 286199fdb6d..4347bf539f2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts index 75422b16100..2b4513d6448 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts index ad1b67dbc55..7210063aa4f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts index 62821e2d4fc..abd149cce03 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts index 67b1b0cfbe1..e858f58eda6 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts index a380e4ee56f..88d061e454e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts index a5540effcfc..5c229e704ea 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts index 98d9e06e4d4..97b628a53e9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts index 00be5232ce5..bd7a10125ee 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts index f0e404d832b..e3bdcea619c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts index c176139c21c..3db732e674d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts index 4b4f3ae9b43..96a62ec9124 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts index 00b3b74bad7..e4d21b1a160 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts index c3e63b2ed21..a96d9ebb14a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3e429396" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts index 719f3b0ae6a..c1681500575 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xf147db8a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts index 1ae6424e1b4..fa9b1189c8b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts index 983aead308b..4969e47a4d8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "installModule" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts index f8887d33005..61c0fdadf8a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uninstallModule" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts index f1360d0e902..583fd6ddfca 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts index 6371f09be45..8a00c16b35b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts index 673d7cc1ebf..96b5a1cfc91 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts index b81647b202d..85c77d5d648 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts index eb9899c1979..dc9f9ab39d2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts index 7a9aebc778c..cbc2b5518b4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC20"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts index 64b25a5b2f0..6a206e95b48 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts index cbe052bf6ee..813ce6bf686 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts index ca998dd2c29..bca6f2ecc50 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewMetadataBatch" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts index 9b60229de6b..d45e4be6fdb 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts index f87c6bd5c9c..2d30cd0f209 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts index 2b74aa58d07..8a51cb58b75 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts index 616dc92e9b5..dc0d78919c8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts index 5dc96770798..434b96cba6d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "onTokenURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts index 7e3187f8f91..193bcfbd117 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts index bc9687f3f35..594a00bc44e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts index b1a9f4ee776..839f211331f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts index c951a7071ba..4286731b82b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts index 82b3d8935da..2bcc4cedde4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts index b838128393f..dea971cb572 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts index d9d0e18c144..335e037490b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts index 94949dba052..d4c93faaee3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts index 10e84ec3171..8b6d28bd88b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts index 0079ccfea7e..641093af58b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts index 603d57d63fc..5508806b5ba 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts index 84cd06bad6e..579a95dbd4d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts index aa00ee8e415..2af22dfc131 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts index 28fa4ef4566..5371c300c7b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts index eb705776b19..60fcc3934d3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts index fd1aab1c092..e368991836c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts index 61079b5f6b9..c83e3816cd0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts index c02c49a5685..49e70615071 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts index 25bc5945a14..d6fafd15514 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts index f90f117f6e3..55474d84b50 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts index b7717a9d368..1d4d87e46ac 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts index 161877a044f..79bb9aec7ea 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts index 106c526e719..8b601553e0b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts index 79049e5fc58..a7b0ebc0442 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts index 218f32e8641..ad1025f8f57 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts index a8f3c6855f9..c5cfefd1ad5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts index 561504fb0fe..c7776d8cbc7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts index e41fc809383..15fe07599be 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts index 2294f18888e..4dc18b1a4f5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferValidator" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts index 4051647d5cc..ea24b039f7e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts index 75761816d99..27058bede4e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts index 7061f2b4f41..92685502b97 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts index 10575fe9af2..ca55810873a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts index 6718ff82997..f79ff81f875 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts index 8e50ecc5c12..22b0333750f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts index a4c7f3198e9..ec803676f9d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts index 521ca3e83a4..e447e4c2be9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts index db307f59b19..8219fe7e4ec 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts index cd56610879a..af6575c161d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts index 10ec0919cb2..d10219f94dd 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferValidator" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts index ce28b48f975..83455e9a96e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "SequentialTokenIdERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts index 4750da4f484..a2376d3f38d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts index 5f09bcb32ac..bd993363080 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcaa0f92a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts index 698a143391c..80e4d1c6822 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateTokenIdERC1155" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts index 5fe0ab63e3a..a96c96e2a66 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts index 5e91dbb0878..6b6d99356cf 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts index 9c3942e30e3..a53d04b1e66 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts index 586ec8163af..13c899ba0ff 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts index fc521da4fc5..658168b007a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts index f2282b92fe8..33d073e5146 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts index 03a1c407723..62ccbd551ab 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts index 370d8312c2e..31bf410891a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts index 893845f2478..ea99e6e9ed5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts index b075bc48f49..63cd4991a5c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts index bf376a7ff49..6e17d1c53f7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts index d15e0f67619..19244f93174 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts index 7ce195f07a7..d2a0815cea8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts index 6c553cf6db0..5309665361d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts index 27bb4135660..068266a1a84 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts index af544c422c1..40d8ddd6ef6 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3e64a696" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts index 3884c555518..149778a72e6 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBlockHash" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts index c14e8ec22b4..102576e9ad6 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x42cbb15c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts index 13081555936..36156b6e686 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3408e470" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts index 7f20ac5749c..2c9ba726c35 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa8b0574e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts index 38a3806a0cc..72335a2f8bd 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x72425d9d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts index 7ce8741e849..c65e5fd7676 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x86d516e8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts index 02daf1735db..d7caca01726 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0f28c97d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts index 30dca5d1fba..a224c0653b4 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getEthBalance" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts index f1a2b78e80e..27acbf25bc9 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x27e86d6e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts index f8dd64f3895..f4bb620df36 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "aggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts index d93589faf77..464c8e5b855 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "aggregate3" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts index c08826f923c..2a6f5834e5b 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "aggregate3Value" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts index aaad8b8ba9d..1e1d4317881 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "blockAndAggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts index 2e262064045..d0312ddc01b 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "tryAggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts index 148eb873fc5..4a42356cc17 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "tryBlockAndAggregate" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts index 85a8404f8e8..fb2cb5db660 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackCreated" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts index 34e6efaa1fe..d06bdadda34 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpened" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts index 5858c8f0520..4a6762257e9 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackUpdated" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts index 8f713d143a3..b8febd5014e 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "canUpdatePack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts index 233d0176ef1..92a417a3bc1 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPackContents" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts index 63551a691f3..cce2b6390db 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTokenCountOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts index 6d3292d8791..5649dc09864 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTokenOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts index 9991755461f..3cc26fb50f9 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getUriOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts index 25f164cd723..5bb0727f223 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addPackContents" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts index b73f6efe6e4..9462d48da72 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts index cb086aedfcd..4749b3478e2 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index dc0b6ac9be2..36bd14d6965 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpenRequested" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index dac830eb692..7f1745fa2ba 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackRandomnessFulfilled" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts index cac29e8419e..895c70d6748 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "canClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts index 381d4d1006c..92ab7a14f6b 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index bc954a62d72..09875c2f1c9 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts index 01a5c361ce1..18c40077c0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleAdminChanged" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts index 91f566246e0..7ac136a340d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleGranted" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts index 91fcab84e65..d148578d3dc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleRevoked" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts index 142c73b479c..6a5295c7316 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleAdmin" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts index 44c5782708b..5a856d38561 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts index d1a4941ec7c..d09f70d7b0c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts index c6e5e3be592..e6c933291cc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts index 114846fcd0d..f6473a76bc6 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts index 01a5c361ce1..18c40077c0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleAdminChanged" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts index 91f566246e0..7ac136a340d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleGranted" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts index 91fcab84e65..d148578d3dc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleRevoked" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts index 142c73b479c..6a5295c7316 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleAdmin" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts index c1eed901f0f..c4b0f166724 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleMember" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts index d6255b64f06..9d0f2a60f83 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleMemberCount" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts index 44c5782708b..5a856d38561 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts index d1a4941ec7c..d09f70d7b0c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts index c6e5e3be592..e6c933291cc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts index 114846fcd0d..f6473a76bc6 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRole" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts index c4c449c8056..f4e95dad1f3 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts index 9fccd394f82..1f3ab9ddf7c 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts index c4c449c8056..f4e95dad1f3 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts index 926c5ad6b8c..36d6778ae8b 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts index b5c91d37dd1..1a8f813bbf9 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts index dd971b7f2f4..69ec28d0568 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts index 898c849c688..a8d1282e07e 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts index 8159cb1cf0d..5e0ef5d1300 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts index 68d91821e86..0008f7a2b87 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts index c4c449c8056..f4e95dad1f3 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts index 2ce2e181c53..66d5fa8b114 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts index 78ca9f193c6..beb7ac88958 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "payee" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts index ca0a1d2018b..3a1d7c9f2da 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x00dbe109" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts index 5b08e87a951..11791d48753 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "releasable" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts index 6e4946af5fd..3aad9d307fd 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "released" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts index b8a0402e720..ccd5d4f0ea3 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "shares" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts index ee0ae7881a6..f83e68fedbb 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe33b7de3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts index 878318ebe64..e36396a24c7 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3a98ef39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts index 10c3a66ef3a..ae168c8df86 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts index b3bd48606b0..cb941c153cb 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "release" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts index ac53dea215b..746fafde3a0 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "codehashVersion" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts index 1fb37500877..b1b723248c0 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "activateProgram" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts index 619043655dc..ec91e868b68 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts index 76b4a890529..5a6d44c65ae 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deploy" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts index 46f16ea3875..ec59487b8e8 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x094ec830" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts index 0432d51a0f9..5914590d189 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setAppURI" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts index bc0db42d912..fdbd658fb2b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ProxyDeployed" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts index ecf298f13a1..d2cf5087ba9 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ProxyDeployedV2" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts index c7eee5a47d3..4f3054fa23b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deployProxyByImplementation" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts index 6918e6fc719..9c38e1b77be 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deployProxyByImplementationV2" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts index a7581368a99..cb592fe7e78 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ContractPublished" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts index 3fdc9a44132..daacec8d2fa 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ContractUnpublished" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts index 952bbb39f58..a27c7ed8a50 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PublisherProfileUpdated" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts index 3ebf22f4d5a..160d991507d 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllPublishedContracts" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts index f75744abb19..aa118da5ec4 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublishedContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts index 40b31842870..da7579bee87 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublishedContractVersions" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts index e8506e61a6d..ec4c61cd8a2 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublishedUriFromCompilerUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts index 98a7af736c7..2fcb86f7d42 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublisherProfileUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts index 27b37ddbe45..6a3349b0b27 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "publishContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts index ed3e71f44a2..6e3e25a8f16 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPublisherProfileUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts index 5c5b15fdc91..0f2780e8a7b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "unpublishContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts index 104a865aaff..703bd2203fb 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RuleCreated" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts index 67e1736ab9b..07b59b32352 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RuleDeleted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts index 03a28920054..cc1ff027a80 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RulesEngineOverriden" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts index a89a1d00220..cf01e006e62 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x1184aef2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts index f374d148564..895aa7bf039 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa7145eb4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts index 5e5b14f615f..362f6ed7cc6 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getScore" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts index 8f2dde241dd..ef265952561 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createRuleMultiplicative" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts index 846a085d5b5..db7aa40753e 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createRuleThreshold" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts index 605a10a3feb..bef08963aab 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deleteRule" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts index 704af13404f..99d7900505b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRulesEngineOverride" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts index 06a90ad62ff..d3b9ed5fec4 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RequestExecuted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts index fde6a54b1a7..e1e39e5fcc0 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts index db4ca066a73..79327e01306 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts index 40dd0fc17f8..19a26f8c345 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Added" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts index 66fb7bdc924..63fdd50ba9b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Deleted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts index 546a25e9dc1..8f0bbfd54ba 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "count" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts index 43d29ec079f..2a07856178b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAll" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts index b51c3652736..0a568674e5e 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMetadataUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts index 1de66810ea7..e111407965b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "add" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts index 58b3d8ee112..29b6635f75e 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "remove" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts index e05dc87b740..0a11a4eda0d 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts index 23912c3e211..ff69d4ffd6b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts index 9dcc8a6a8fa..3b6693d9579 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts index 73284334c06..0ba92ee95f7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts index 8e229e17a20..5228963dd34 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts index 45010946b7e..39a285efa35 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts index 9e1813f4ebb..75704cff765 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts index 1282b4f57e7..91dcf136312 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts index 462e8e865e9..c74afb3f164 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts index 59f2776fea6..7eec0943d4d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts index 1dbe7fcecb8..854c7b91223 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts index 22e5af63920..d6eb079f204 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts index 1db8273dc7a..850e4e88ec6 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts index 1d4174d9267..fd52e1e495a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts index 5b84e14dc8f..1911e1e6081 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts index 8c96e3b7a05..d8c997cfa5d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts index 69277ccf299..b0d99f234f0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts index 477cc34c0eb..0313d621929 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts index 93967631efb..ece4beb6db0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts index 27f629f4453..664f624447d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts index c7e751ca5b4..3f72b1256d8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts index 7f611094f21..97aa7f770aa 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts index f8eb656abed..4878da12849 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts index e0f91ef34e0..74d2984f38e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts index 801dc93983d..dcbc74fc6af 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts index a1a66858c05..21cad20a483 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts index 3c83d30c7c2..d555ae6d2fb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts index 8c860fbc6b4..54478293ecb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts index 28b4cb69e17..622553c35e4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts index b6d7e224e58..91b716f38a8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts index dde3c541106..dbaa63896c0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts index 16232cfe555..a78237f2dc8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts index 50a895c5223..78cb5ebcdab 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts index c365c21efdb..108df00ea3f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts index 9da8ebbd288..407d12b2068 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Created" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts index 0d93325707f..da0e6d5983e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ImplementationAdded" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts index 45010946b7e..39a285efa35 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts index 9e1813f4ebb..75704cff765 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts index 1282b4f57e7..91dcf136312 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts index 5009e49908a..115091371cf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts index b350e944ee6..7f8a6b28edf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd25f82a0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts index d8b1d81d1f3..ff7210c19c7 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getImplementation" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts index 4eb8e6c67ad..9108f74b4ca 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getReward" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts index 46352d7f85d..77fe9eb8d65 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb0188df2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts index e603f2c2505..7bd0351392e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb0f479a1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts index 3a4a44be6aa..f79eebee356 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "guardSalt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts index 69277ccf299..b0d99f234f0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts index 477cc34c0eb..0313d621929 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts index b4b617bd5f8..33a7dd9acba 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "predictAddress" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts index ed9d4d95e90..4adf4d9a442 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "predictAddressByConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts index e4a93094309..f9b76fe556a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts index bcbe75102fc..3b2cacb0cdf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addImplementation" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts index 8a64cb64dbd..4adb305411c 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "buy" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts index 801dc93983d..dcbc74fc6af 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts index 56b69fdd811..baafcc2696f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimReward" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts index a1a66858c05..21cad20a483 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts index 49e2b4866fe..165381dda01 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "create" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts index abd4d69803c..11cd3716adf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createById" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts index c91071a99bc..980c71a812a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createByImplementationConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts index 69399ef9833..0b8ea75aae3 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "distribute" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts index 4b07fe32f48..324294fd194 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts index 28b4cb69e17..622553c35e4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts index b6d7e224e58..91b716f38a8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts index 8e2ba161ead..93ed3e085a6 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "sell" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts index e0998244940..c3ed838daaf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setAirdrop" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts index 644b5dc4abc..999a8183e97 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRewardLocker" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts index b2ced564f77..2c4c7054648 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRouter" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts index c365c21efdb..108df00ea3f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts index 2647a840a19..d5af1b33184 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts index 71294cf62fa..548796d5d9e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "FeeConfigUpdated" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts index 31e3ff9025d..9eff4a197ea 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "FeeConfigUpdatedBySignature" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts index 45010946b7e..39a285efa35 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts index 9e1813f4ebb..75704cff765 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts index 1282b4f57e7..91dcf136312 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts index 1737069f0dd..947e5eed192 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts index ed4513d6263..79f8f1a40e9 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x99ba5936" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts index 50aba48e6db..567150a2376 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "calculateFee" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts index 886713c2b77..530414e18dd 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xf698da25" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts index 9e4bd706913..40c013ad46b 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts index 60790048774..41d9e902587 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "feeConfigs" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts index 12f20f88ff4..ddd961ece01 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x46904840" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts index 43fd6562dff..486a16008dc 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts index 1a9802f87ca..b005d7cb405 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts index c788991b395..ed6eba92071 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts index 69277ccf299..b0d99f234f0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts index 477cc34c0eb..0313d621929 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts index f559e611df0..c4681f40e5c 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts index a43a178112c..3fe2b4eb3a7 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "usedNonces" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts index 801dc93983d..dcbc74fc6af 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts index a1a66858c05..21cad20a483 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts index 922a8038ad1..7643c1e7899 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts index 28b4cb69e17..622553c35e4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts index e5aebc6ebfb..b9ca3a80944 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts index b6d7e224e58..91b716f38a8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts index 7957513d7aa..d8a69363eb4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts index 51679730be4..3bc6b013df5 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts index 46021169b71..401a5122861 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeConfigBySignature" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts index 28bca8913fc..fab5f82cd55 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeRecipient" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts index e373255b4fd..619d7783d67 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTargetFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts index c365c21efdb..108df00ea3f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts index 23cbdedda13..beb43a7b08e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PositionLocked" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts index 7558d80ed4c..ed150b0173c 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardCollected" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts index a0562899bf9..281a03eec01 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd0fb0203" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts index cd62468bd69..25b8fc3b814 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "positions" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts index cbedd02d2de..c832b641015 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x39406c50" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts index 2977f674304..3a5300aab46 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe2f4dd43" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts index 9affd3f9efb..39333e90e28 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "collectReward" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts index 1fec63d2dc4..14e9b1dd933 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "lockPosition" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts index 45010946b7e..39a285efa35 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts index 9e1813f4ebb..75704cff765 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts index 1282b4f57e7..91dcf136312 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts index 3a27b26fd27..256a6eaa372 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SwapExecuted" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts index 5009e49908a..115091371cf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts index 8b9fdf864d4..d2f731a87de 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x31f7d964" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts index 69277ccf299..b0d99f234f0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts index 477cc34c0eb..0313d621929 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts index e4a93094309..f9b76fe556a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts index 801dc93983d..dcbc74fc6af 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts index a1a66858c05..21cad20a483 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts index f2792076b4c..8b6a8118e25 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPool" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts index f9fad21e9e3..c05be76bf9b 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "disableAdapter" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts index c1e3a199c9d..fe212085318 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "enableAdapter" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts index ef13191b19d..d34d8491cfb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts index 28b4cb69e17..622553c35e4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts index b6d7e224e58..91b716f38a8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/swap.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/swap.ts index 60f688e7332..cf10c5e2d01 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/swap.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/swap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "swap" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts index c365c21efdb..108df00ea3f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts index 2647a840a19..d5af1b33184 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts index a5b2de9ba3d..93ca28a8d86 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactInput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts index e2f2bd0b25f..f2baf013d7b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactInputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts index e70abf27fa9..948e8b4716b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactOutput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts index 40571bef183..962e1b2233d 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactOutputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts index 62b9d01cce6..e8c72448821 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactInput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts index 7e3abba3449..74801a6fd77 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactInputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts index dcbeb08a4a1..ad12cfeb388 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactOutput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts index da33aaa7b58..d49a1333baf 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactOutputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts index 7ecf70ce4c8..0a338fba5a1 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnerChanged" event. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts index e58a4baf468..08c5be9c5c5 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PoolCreated" event. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts index 255f43c261a..0bdf634fbb2 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "feeAmountTickSpacing" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts index 0ba8694755b..5464e0e6f11 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPool" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts index 5c788ce980c..c4a193d970e 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts index 9fb6af4ed9a..7a0564dfebb 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPool" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts index c8e4e71ccd4..02a8bbc64a1 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "enableFeeAmount" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts index 6e4c1ba930b..dc6112bab1d 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts index f4a9b84da2c..f53337ebd10 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "exists" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts index e108e47b49f..2a5b24385b4 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMany" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts index 1f4ff5195b1..d56c354bfee 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "namehash" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts index b86c1c4bd8a..42f892a3904 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "reverseNameOf" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts index ec04f2d479a..060fe07c78a 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xdeaaa7cc" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts index 6734c8b2303..1a0672fb8cc 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xdd4e2ba5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts index 4325be6c282..67cf2f01d31 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcceb68f5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts index c2b66c0be2a..341cb80315b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getVotes" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts index f8eca80d4bf..2034cf1dddc 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getVotesWithParams" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts index 5815f1c8684..f2b60cf3bca 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasVoted" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts index 87e81f3c2ec..1639665197e 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hashProposal" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts index e0640658526..2e4f570cd64 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposalDeadline" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts index a8d1ccb5c76..d1b77a0eeca 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x5977e0f2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts index 593f248d154..e1667b05f5d 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposalSnapshot" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts index 098c4dc79c8..ced5cabd45f 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb58131b0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts index 5bc8c234e58..8a510a2aa46 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposalVotes" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts index 3c89313b550..d58e899e6d7 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposals" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts index b2de58c41b0..dce30a0a265 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "quorum" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts index 56636d20aee..cf3126a06d1 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x97c3d334" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts index 15bcb254830..e9b56d165e4 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "state" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts index 02e70e2d6c7..60c0d33089b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts index eff242b13e6..51689a20a6c 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3932abb1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts index 35de8cb92c0..5b96e7a33aa 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x02a251a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts index f7c42629976..2666f84fa71 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVote" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts index 6322bdf5e39..adfd1fc076b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteBySig" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts index 4d5af34b63c..d32e7363312 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteWithReason" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts index 0c625832619..978cb26a8fa 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteWithReasonAndParams" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts index 20122e5859d..a2e92478f18 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteWithReasonAndParamsBySig" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts index 4f94b043506..9012c2dfc6b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts index abc8a1f168c..6262ae30b0f 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "propose" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts index edd2ad5a3f3..785a2a588d1 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "relay" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts index 9eac196fd77..ece4ee5abf3 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setProposalThreshold" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts index 313d949b8c2..3b34e86231e 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setVotingDelay" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts index d74fc333fcb..1f4740dd710 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setVotingPeriod" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts index 819963e4608..d76a5f43144 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateQuorumNumerator" function. diff --git a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts index 48964fd99a3..328036ce944 100644 --- a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts +++ b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ContractDeployed" event. diff --git a/packages/thirdweb/src/tokens/constants.ts b/packages/thirdweb/src/tokens/constants.ts index 22df85ef5a4..844367be818 100644 --- a/packages/thirdweb/src/tokens/constants.ts +++ b/packages/thirdweb/src/tokens/constants.ts @@ -3,7 +3,8 @@ export const DEFAULT_POOL_INITIAL_TICK = 230200; export const DEFAULT_INFRA_ADMIN = "0x1a472863cf21d5aa27f417df9140400324c48f22"; export const DEFAULT_REFERRER_REWARD_BPS = 625; // 6.25% (6.25% * 80% = 5%) -export const DEFAULT_REFERRER_ADDRESS = "0x1Af20C6B23373350aD464700B5965CE4B0D2aD94"; +export const DEFAULT_REFERRER_ADDRESS = + "0x1Af20C6B23373350aD464700B5965CE4B0D2aD94"; export const IMPLEMENTATIONS: Record> = { 8453: { diff --git a/packages/thirdweb/src/tokens/create-token.ts b/packages/thirdweb/src/tokens/create-token.ts index 1fbdd3997ec..1c2af910a00 100644 --- a/packages/thirdweb/src/tokens/create-token.ts +++ b/packages/thirdweb/src/tokens/create-token.ts @@ -7,10 +7,7 @@ import { keccakId } from "../utils/any-evm/keccak-id.js"; import { toHex } from "../utils/encoding/hex.js"; import { DEFAULT_REFERRER_ADDRESS } from "./constants.js"; import { getOrDeployEntrypointERC20 } from "./get-entrypoint-erc20.js"; -import { - encodeInitParams, - encodePoolConfig, -} from "./token-utils.js"; +import { encodeInitParams, encodePoolConfig } from "./token-utils.js"; import type { CreateTokenOptions } from "./types.js"; export async function createToken(options: CreateTokenOptions) { diff --git a/packages/thirdweb/src/tokens/token-utils.ts b/packages/thirdweb/src/tokens/token-utils.ts index bca039098ec..a6f18411956 100644 --- a/packages/thirdweb/src/tokens/token-utils.ts +++ b/packages/thirdweb/src/tokens/token-utils.ts @@ -75,4 +75,3 @@ export function encodePoolConfig(poolConfig: PoolConfig): Hex { poolConfig.referrerRewardBps || DEFAULT_REFERRER_REWARD_BPS, ]); } - From 9f40f3e158a903a330850b4de03ed30b3441f16c Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Wed, 23 Jul 2025 21:07:38 +0530 Subject: [PATCH 22/32] Fix knip lint --- packages/thirdweb/src/tokens/constants.ts | 24 +++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/thirdweb/src/tokens/constants.ts b/packages/thirdweb/src/tokens/constants.ts index 844367be818..1d1a96c0e65 100644 --- a/packages/thirdweb/src/tokens/constants.ts +++ b/packages/thirdweb/src/tokens/constants.ts @@ -15,16 +15,16 @@ export const IMPLEMENTATIONS: Record> = { }, }; -export enum ImplementationType { - CLONE = 0, - CLONE_WITH_IMMUTABLE_ARGS = 1, - ERC1967 = 2, - ERC1967_WITH_IMMUTABLE_ARGS = 3, -} +// export enum ImplementationType { +// CLONE = 0, +// CLONE_WITH_IMMUTABLE_ARGS = 1, +// ERC1967 = 2, +// ERC1967_WITH_IMMUTABLE_ARGS = 3, +// } -export enum CreateHook { - NONE = 0, // do nothing - CREATE_POOL = 1, // create a DEX pool via Router - DISTRIBUTE = 2, // distribute tokens to recipients - EXTERNAL_HOOK = 3, // call an external hook contract -} +// export enum CreateHook { +// NONE = 0, // do nothing +// CREATE_POOL = 1, // create a DEX pool via Router +// DISTRIBUTE = 2, // distribute tokens to recipients +// EXTERNAL_HOOK = 3, // call an external hook contract +// } From ec263f65115833cfbf97c083026721524fbb9981 Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Wed, 23 Jul 2025 21:32:33 +0530 Subject: [PATCH 23/32] Fix /tokens exports --- packages/thirdweb/package.json | 12 ++++++------ packages/thirdweb/src/exports/tokens.ts | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index faaae0166b5..849a1d9fcc8 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -111,10 +111,10 @@ "import": "./dist/esm/exports/ai.js", "types": "./dist/types/exports/ai.d.ts" }, - "./assets": { - "default": "./dist/cjs/exports/assets.js", - "import": "./dist/esm/exports/assets.js", - "types": "./dist/types/exports/assets.d.ts" + "./tokens": { + "default": "./dist/cjs/exports/tokens.js", + "import": "./dist/esm/exports/tokens.js", + "types": "./dist/types/exports/tokens.d.ts" }, "./auth": { "default": "./dist/cjs/exports/auth.js", @@ -352,8 +352,8 @@ "ai": [ "./dist/types/exports/ai.d.ts" ], - "assets": [ - "./dist/types/exports/assets.d.ts" + "tokens": [ + "./dist/types/exports/tokens.d.ts" ], "auth": [ "./dist/types/exports/auth.d.ts" diff --git a/packages/thirdweb/src/exports/tokens.ts b/packages/thirdweb/src/exports/tokens.ts index 135ebe9ae45..440db5cf479 100644 --- a/packages/thirdweb/src/exports/tokens.ts +++ b/packages/thirdweb/src/exports/tokens.ts @@ -1,4 +1,8 @@ export { getReward } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.js"; +export { getRewardLocker } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.js"; +export { positions } from "../extensions/tokens/__generated__/RewardLocker/read/positions.js"; +export { v3PositionManager } from "../extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.js"; +export { v4PositionManager } from "../extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.js"; export { DEFAULT_INFRA_ADMIN, DEFAULT_REFERRER_ADDRESS, From 4cb15825e84071c8c4536bb5e3c575c8f4626176 Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Wed, 23 Jul 2025 21:39:02 +0530 Subject: [PATCH 24/32] export claimReward --- packages/thirdweb/src/exports/tokens.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/thirdweb/src/exports/tokens.ts b/packages/thirdweb/src/exports/tokens.ts index 440db5cf479..b1ff6427403 100644 --- a/packages/thirdweb/src/exports/tokens.ts +++ b/packages/thirdweb/src/exports/tokens.ts @@ -1,5 +1,6 @@ export { getReward } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.js"; export { getRewardLocker } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.js"; +export { claimReward } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.js"; export { positions } from "../extensions/tokens/__generated__/RewardLocker/read/positions.js"; export { v3PositionManager } from "../extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.js"; export { v4PositionManager } from "../extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.js"; From 52870793e1dbf796f630cca804c6fbf7ee5f6dff Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Wed, 23 Jul 2025 21:47:05 +0530 Subject: [PATCH 25/32] delete /extensions/assets --- .../ERC20Asset/events/Approval.ts | 47 ---- .../ERC20Asset/events/ContractURIUpdated.ts | 24 -- .../ERC20Asset/events/Initialized.ts | 24 -- .../events/OwnershipHandoverCanceled.ts | 42 ---- .../events/OwnershipHandoverRequested.ts | 42 ---- .../ERC20Asset/events/OwnershipTransferred.ts | 49 ---- .../ERC20Asset/events/Transfer.ts | 47 ---- .../ERC20Asset/read/DOMAIN_SEPARATOR.ts | 70 ------ .../ERC20Asset/read/allowance.ts | 134 ---------- .../ERC20Asset/read/balanceOf.ts | 126 ---------- .../ERC20Asset/read/contractURI.ts | 69 ------ .../__generated__/ERC20Asset/read/decimals.ts | 69 ------ .../__generated__/ERC20Asset/read/name.ts | 69 ------ .../__generated__/ERC20Asset/read/nonces.ts | 122 --------- .../__generated__/ERC20Asset/read/owner.ts | 70 ------ .../read/ownershipHandoverExpiresAt.ts | 135 ---------- .../ERC20Asset/read/supportsInterface.ts | 130 ---------- .../__generated__/ERC20Asset/read/symbol.ts | 69 ------ .../ERC20Asset/read/totalSupply.ts | 70 ------ .../__generated__/ERC20Asset/write/approve.ts | 149 ----------- .../__generated__/ERC20Asset/write/burn.ts | 137 ---------- .../ERC20Asset/write/burnFrom.ts | 145 ----------- .../write/cancelOwnershipHandover.ts | 52 ---- .../write/completeOwnershipHandover.ts | 148 ----------- .../ERC20Asset/write/initialize.ts | 189 -------------- .../__generated__/ERC20Asset/write/permit.ts | 201 --------------- .../ERC20Asset/write/renounceOwnership.ts | 50 ---- .../write/requestOwnershipHandover.ts | 52 ---- .../ERC20Asset/write/setContractURI.ts | 142 ----------- .../ERC20Asset/write/transfer.ts | 149 ----------- .../ERC20Asset/write/transferFrom.ts | 167 ------------- .../ERC20Asset/write/transferOwnership.ts | 141 ----------- .../ERC20Entrypoint/events/AirdropUpdated.ts | 24 -- .../ERC20Entrypoint/events/Created.ts | 47 ---- .../ERC20Entrypoint/events/Distributed.ts | 25 -- .../events/ImplementationAdded.ts | 43 ---- .../ERC20Entrypoint/events/Initialized.ts | 24 -- .../events/OwnershipHandoverCanceled.ts | 42 ---- .../events/OwnershipHandoverRequested.ts | 42 ---- .../events/OwnershipTransferred.ts | 49 ---- .../ERC20Entrypoint/events/RewardClaimed.ts | 24 -- .../events/RewardLockerUpdated.ts | 24 -- .../ERC20Entrypoint/events/RouterUpdated.ts | 24 -- .../ERC20Entrypoint/events/Upgraded.ts | 40 --- .../ERC20Entrypoint/read/getAirdrop.ts | 70 ------ .../ERC20Entrypoint/read/getImplementation.ts | 153 ------------ .../ERC20Entrypoint/read/getReward.ts | 147 ----------- .../ERC20Entrypoint/read/getRewardLocker.ts | 70 ------ .../ERC20Entrypoint/read/getRouter.ts | 70 ------ .../ERC20Entrypoint/read/guardSalt.ts | 165 ------------- .../ERC20Entrypoint/read/owner.ts | 70 ------ .../read/ownershipHandoverExpiresAt.ts | 135 ---------- .../ERC20Entrypoint/read/predictAddress.ts | 176 ------------- .../read/predictAddressByConfig.ts | 211 ---------------- .../ERC20Entrypoint/read/proxiableUUID.ts | 69 ------ .../write/addImplementation.ts | 181 -------------- .../ERC20Entrypoint/write/buy.ts | 196 --------------- .../write/cancelOwnershipHandover.ts | 52 ---- .../ERC20Entrypoint/write/claimReward.ts | 139 ----------- .../write/completeOwnershipHandover.ts | 148 ----------- .../ERC20Entrypoint/write/create.ts | 180 -------------- .../ERC20Entrypoint/write/createById.ts | 198 --------------- .../write/createByImplementationConfig.ts | 233 ------------------ .../ERC20Entrypoint/write/distribute.ts | 164 ------------ .../ERC20Entrypoint/write/initialize.ts | 176 ------------- .../write/renounceOwnership.ts | 50 ---- .../write/requestOwnershipHandover.ts | 52 ---- .../ERC20Entrypoint/write/sell.ts | 191 -------------- .../ERC20Entrypoint/write/setAirdrop.ts | 139 ----------- .../ERC20Entrypoint/write/setRewardLocker.ts | 142 ----------- .../ERC20Entrypoint/write/setRouter.ts | 139 ----------- .../write/transferOwnership.ts | 141 ----------- .../ERC20Entrypoint/write/upgradeToAndCall.ts | 153 ------------ .../FeeManager/events/FeeConfigUpdated.ts | 49 ---- .../events/FeeConfigUpdatedBySignature.ts | 55 ----- .../FeeManager/events/FeeRecipientUpdated.ts | 24 -- .../events/OwnershipHandoverCanceled.ts | 42 ---- .../events/OwnershipHandoverRequested.ts | 42 ---- .../FeeManager/events/OwnershipTransferred.ts | 49 ---- .../FeeManager/events/RolesUpdated.ts | 47 ---- .../FeeManager/read/ROLE_FEE_MANAGER.ts | 69 ------ .../FeeManager/read/calculateFee.ts | 167 ------------- .../FeeManager/read/domainSeparator.ts | 69 ------ .../FeeManager/read/eip712Domain.ts | 94 ------- .../FeeManager/read/feeConfigs.ts | 142 ----------- .../FeeManager/read/feeRecipient.ts | 69 ------ .../FeeManager/read/getFeeConfig.ts | 148 ----------- .../FeeManager/read/hasAllRoles.ts | 133 ---------- .../FeeManager/read/hasAnyRole.ts | 133 ---------- .../__generated__/FeeManager/read/owner.ts | 70 ------ .../read/ownershipHandoverExpiresAt.ts | 135 ---------- .../__generated__/FeeManager/read/rolesOf.ts | 122 --------- .../FeeManager/read/usedNonces.ts | 129 ---------- .../write/cancelOwnershipHandover.ts | 52 ---- .../write/completeOwnershipHandover.ts | 148 ----------- .../FeeManager/write/grantRoles.ts | 147 ----------- .../FeeManager/write/renounceOwnership.ts | 50 ---- .../FeeManager/write/renounceRoles.ts | 139 ----------- .../write/requestOwnershipHandover.ts | 52 ---- .../FeeManager/write/revokeRoles.ts | 147 ----------- .../FeeManager/write/setFeeConfig.ts | 163 ------------ .../write/setFeeConfigBySignature.ts | 222 ----------------- .../FeeManager/write/setFeeRecipient.ts | 142 ----------- .../FeeManager/write/setTargetFeeConfig.ts | 188 -------------- .../FeeManager/write/transferOwnership.ts | 141 ----------- .../RewardLocker/events/PositionLocked.ts | 47 ---- .../RewardLocker/events/RewardCollected.ts | 49 ---- .../RewardLocker/read/feeManager.ts | 69 ------ .../RewardLocker/read/positions.ts | 150 ----------- .../RewardLocker/read/v3PositionManager.ts | 69 ------ .../RewardLocker/read/v4PositionManager.ts | 69 ------ .../RewardLocker/write/collectReward.ts | 164 ------------ .../RewardLocker/write/lockPosition.ts | 202 --------------- .../Router/events/AdapterDisabled.ts | 24 -- .../Router/events/AdapterEnabled.ts | 24 -- .../Router/events/Initialized.ts | 24 -- .../events/OwnershipHandoverCanceled.ts | 42 ---- .../events/OwnershipHandoverRequested.ts | 42 ---- .../Router/events/OwnershipTransferred.ts | 49 ---- .../Router/events/SwapExecuted.ts | 53 ---- .../__generated__/Router/events/Upgraded.ts | 40 --- .../__generated__/Router/read/NATIVE_TOKEN.ts | 69 ------ .../assets/__generated__/Router/read/owner.ts | 70 ------ .../Router/read/ownershipHandoverExpiresAt.ts | 135 ---------- .../Router/read/proxiableUUID.ts | 69 ------ .../Router/write/cancelOwnershipHandover.ts | 52 ---- .../Router/write/completeOwnershipHandover.ts | 148 ----------- .../__generated__/Router/write/createPool.ts | 202 --------------- .../Router/write/disableAdapter.ts | 142 ----------- .../Router/write/enableAdapter.ts | 150 ----------- .../__generated__/Router/write/initialize.ts | 139 ----------- .../Router/write/renounceOwnership.ts | 50 ---- .../Router/write/requestOwnershipHandover.ts | 52 ---- .../assets/__generated__/Router/write/swap.ts | 203 --------------- .../Router/write/transferOwnership.ts | 141 ----------- .../Router/write/upgradeToAndCall.ts | 153 ------------ 136 files changed, 13819 deletions(-) delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/ContractURIUpdated.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Initialized.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/AirdropUpdated.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Distributed.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Initialized.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardClaimed.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardLockerUpdated.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RouterUpdated.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeRecipientUpdated.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterDisabled.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterEnabled.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/Initialized.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts delete mode 100644 packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts deleted file mode 100644 index 3d729a7e69a..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Approval.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "Approval" event. - */ -export type ApprovalEventFilters = Partial<{ - owner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "owner"; - indexed: true; - }>; - spender: AbiParameterToPrimitiveType<{ - type: "address"; - name: "spender"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the Approval event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { approvalEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * approvalEvent({ - * owner: ..., - * spender: ..., - * }) - * ], - * }); - * ``` - */ -export function approvalEvent(filters: ApprovalEventFilters = {}) { - return prepareEvent({ - signature: - "event Approval(address indexed owner, address indexed spender, uint256 amount)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/ContractURIUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/ContractURIUpdated.ts deleted file mode 100644 index 16611ea0bd1..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/ContractURIUpdated.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the ContractURIUpdated event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { contractURIUpdatedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * contractURIUpdatedEvent() - * ], - * }); - * ``` - */ -export function contractURIUpdatedEvent() { - return prepareEvent({ - signature: "event ContractURIUpdated()", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Initialized.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Initialized.ts deleted file mode 100644 index 88705c10a63..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Initialized.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the Initialized event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { initializedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * initializedEvent() - * ], - * }); - * ``` - */ -export function initializedEvent() { - return prepareEvent({ - signature: "event Initialized(uint64 version)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts deleted file mode 100644 index 326928983b5..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipHandoverCanceled" event. - */ -export type OwnershipHandoverCanceledEventFilters = Partial<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipHandoverCanceled event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipHandoverCanceledEvent({ - * pendingOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipHandoverCanceledEvent( - filters: OwnershipHandoverCanceledEventFilters = {}, -) { - return prepareEvent({ - signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts deleted file mode 100644 index b7e8608233d..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipHandoverRequested" event. - */ -export type OwnershipHandoverRequestedEventFilters = Partial<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipHandoverRequested event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipHandoverRequestedEvent({ - * pendingOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipHandoverRequestedEvent( - filters: OwnershipHandoverRequestedEventFilters = {}, -) { - return prepareEvent({ - signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts deleted file mode 100644 index b97cc481307..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/OwnershipTransferred.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipTransferred" event. - */ -export type OwnershipTransferredEventFilters = Partial<{ - oldOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "oldOwner"; - indexed: true; - }>; - newOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "newOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipTransferred event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipTransferredEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipTransferredEvent({ - * oldOwner: ..., - * newOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipTransferredEvent( - filters: OwnershipTransferredEventFilters = {}, -) { - return prepareEvent({ - signature: - "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts deleted file mode 100644 index 2f6ca48ee78..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/events/Transfer.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "Transfer" event. - */ -export type TransferEventFilters = Partial<{ - from: AbiParameterToPrimitiveType<{ - type: "address"; - name: "from"; - indexed: true; - }>; - to: AbiParameterToPrimitiveType<{ - type: "address"; - name: "to"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the Transfer event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { transferEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * transferEvent({ - * from: ..., - * to: ..., - * }) - * ], - * }); - * ``` - */ -export function transferEvent(filters: TransferEventFilters = {}) { - return prepareEvent({ - signature: - "event Transfer(address indexed from, address indexed to, uint256 amount)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts deleted file mode 100644 index 6b073808cd4..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x3644e515" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "bytes32", - name: "result", - }, -] as const; - -/** - * Checks if the `DOMAIN_SEPARATOR` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `DOMAIN_SEPARATOR` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isDOMAIN_SEPARATORSupported } from "thirdweb/extensions/assets"; - * const supported = isDOMAIN_SEPARATORSupported(["0x..."]); - * ``` - */ -export function isDOMAIN_SEPARATORSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the DOMAIN_SEPARATOR function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeDOMAIN_SEPARATORResult } from "thirdweb/extensions/assets"; - * const result = decodeDOMAIN_SEPARATORResultResult("..."); - * ``` - */ -export function decodeDOMAIN_SEPARATORResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "DOMAIN_SEPARATOR" function on the contract. - * @param options - The options for the DOMAIN_SEPARATOR function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { DOMAIN_SEPARATOR } from "thirdweb/extensions/assets"; - * - * const result = await DOMAIN_SEPARATOR({ - * contract, - * }); - * - * ``` - */ -export async function DOMAIN_SEPARATOR(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts deleted file mode 100644 index 1c00e9783a2..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/allowance.ts +++ /dev/null @@ -1,134 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "allowance" function. - */ -export type AllowanceParams = { - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; - spender: AbiParameterToPrimitiveType<{ type: "address"; name: "spender" }>; -}; - -export const FN_SELECTOR = "0xdd62ed3e" as const; -const FN_INPUTS = [ - { - type: "address", - name: "owner", - }, - { - type: "address", - name: "spender", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "result", - }, -] as const; - -/** - * Checks if the `allowance` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `allowance` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isAllowanceSupported } from "thirdweb/extensions/assets"; - * const supported = isAllowanceSupported(["0x..."]); - * ``` - */ -export function isAllowanceSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "allowance" function. - * @param options - The options for the allowance function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeAllowanceParams } from "thirdweb/extensions/assets"; - * const result = encodeAllowanceParams({ - * owner: ..., - * spender: ..., - * }); - * ``` - */ -export function encodeAllowanceParams(options: AllowanceParams) { - return encodeAbiParameters(FN_INPUTS, [options.owner, options.spender]); -} - -/** - * Encodes the "allowance" function into a Hex string with its parameters. - * @param options - The options for the allowance function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeAllowance } from "thirdweb/extensions/assets"; - * const result = encodeAllowance({ - * owner: ..., - * spender: ..., - * }); - * ``` - */ -export function encodeAllowance(options: AllowanceParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeAllowanceParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the allowance function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeAllowanceResult } from "thirdweb/extensions/assets"; - * const result = decodeAllowanceResultResult("..."); - * ``` - */ -export function decodeAllowanceResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "allowance" function on the contract. - * @param options - The options for the allowance function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { allowance } from "thirdweb/extensions/assets"; - * - * const result = await allowance({ - * contract, - * owner: ..., - * spender: ..., - * }); - * - * ``` - */ -export async function allowance( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.owner, options.spender], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts deleted file mode 100644 index a790fc735fe..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/balanceOf.ts +++ /dev/null @@ -1,126 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "balanceOf" function. - */ -export type BalanceOfParams = { - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; -}; - -export const FN_SELECTOR = "0x70a08231" as const; -const FN_INPUTS = [ - { - type: "address", - name: "owner", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "result", - }, -] as const; - -/** - * Checks if the `balanceOf` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `balanceOf` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isBalanceOfSupported } from "thirdweb/extensions/assets"; - * const supported = isBalanceOfSupported(["0x..."]); - * ``` - */ -export function isBalanceOfSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "balanceOf" function. - * @param options - The options for the balanceOf function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeBalanceOfParams } from "thirdweb/extensions/assets"; - * const result = encodeBalanceOfParams({ - * owner: ..., - * }); - * ``` - */ -export function encodeBalanceOfParams(options: BalanceOfParams) { - return encodeAbiParameters(FN_INPUTS, [options.owner]); -} - -/** - * Encodes the "balanceOf" function into a Hex string with its parameters. - * @param options - The options for the balanceOf function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeBalanceOf } from "thirdweb/extensions/assets"; - * const result = encodeBalanceOf({ - * owner: ..., - * }); - * ``` - */ -export function encodeBalanceOf(options: BalanceOfParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeBalanceOfParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the balanceOf function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeBalanceOfResult } from "thirdweb/extensions/assets"; - * const result = decodeBalanceOfResultResult("..."); - * ``` - */ -export function decodeBalanceOfResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "balanceOf" function on the contract. - * @param options - The options for the balanceOf function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { balanceOf } from "thirdweb/extensions/assets"; - * - * const result = await balanceOf({ - * contract, - * owner: ..., - * }); - * - * ``` - */ -export async function balanceOf( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.owner], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts deleted file mode 100644 index cf11c8dc22b..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/contractURI.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0xe8a3d485" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "string", - }, -] as const; - -/** - * Checks if the `contractURI` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `contractURI` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isContractURISupported } from "thirdweb/extensions/assets"; - * const supported = isContractURISupported(["0x..."]); - * ``` - */ -export function isContractURISupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the contractURI function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeContractURIResult } from "thirdweb/extensions/assets"; - * const result = decodeContractURIResultResult("..."); - * ``` - */ -export function decodeContractURIResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "contractURI" function on the contract. - * @param options - The options for the contractURI function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { contractURI } from "thirdweb/extensions/assets"; - * - * const result = await contractURI({ - * contract, - * }); - * - * ``` - */ -export async function contractURI(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts deleted file mode 100644 index cc115a55974..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/decimals.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x313ce567" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "uint8", - }, -] as const; - -/** - * Checks if the `decimals` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `decimals` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isDecimalsSupported } from "thirdweb/extensions/assets"; - * const supported = isDecimalsSupported(["0x..."]); - * ``` - */ -export function isDecimalsSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the decimals function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeDecimalsResult } from "thirdweb/extensions/assets"; - * const result = decodeDecimalsResultResult("..."); - * ``` - */ -export function decodeDecimalsResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "decimals" function on the contract. - * @param options - The options for the decimals function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { decimals } from "thirdweb/extensions/assets"; - * - * const result = await decimals({ - * contract, - * }); - * - * ``` - */ -export async function decimals(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts deleted file mode 100644 index 42242a61796..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/name.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x06fdde03" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "string", - }, -] as const; - -/** - * Checks if the `name` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `name` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isNameSupported } from "thirdweb/extensions/assets"; - * const supported = isNameSupported(["0x..."]); - * ``` - */ -export function isNameSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the name function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeNameResult } from "thirdweb/extensions/assets"; - * const result = decodeNameResultResult("..."); - * ``` - */ -export function decodeNameResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "name" function on the contract. - * @param options - The options for the name function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { name } from "thirdweb/extensions/assets"; - * - * const result = await name({ - * contract, - * }); - * - * ``` - */ -export async function name(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts deleted file mode 100644 index e72a50e7432..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/nonces.ts +++ /dev/null @@ -1,122 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "nonces" function. - */ -export type NoncesParams = { - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; -}; - -export const FN_SELECTOR = "0x7ecebe00" as const; -const FN_INPUTS = [ - { - type: "address", - name: "owner", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "result", - }, -] as const; - -/** - * Checks if the `nonces` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `nonces` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isNoncesSupported } from "thirdweb/extensions/assets"; - * const supported = isNoncesSupported(["0x..."]); - * ``` - */ -export function isNoncesSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "nonces" function. - * @param options - The options for the nonces function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeNoncesParams } from "thirdweb/extensions/assets"; - * const result = encodeNoncesParams({ - * owner: ..., - * }); - * ``` - */ -export function encodeNoncesParams(options: NoncesParams) { - return encodeAbiParameters(FN_INPUTS, [options.owner]); -} - -/** - * Encodes the "nonces" function into a Hex string with its parameters. - * @param options - The options for the nonces function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeNonces } from "thirdweb/extensions/assets"; - * const result = encodeNonces({ - * owner: ..., - * }); - * ``` - */ -export function encodeNonces(options: NoncesParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeNoncesParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the nonces function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeNoncesResult } from "thirdweb/extensions/assets"; - * const result = decodeNoncesResultResult("..."); - * ``` - */ -export function decodeNoncesResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "nonces" function on the contract. - * @param options - The options for the nonces function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { nonces } from "thirdweb/extensions/assets"; - * - * const result = await nonces({ - * contract, - * owner: ..., - * }); - * - * ``` - */ -export async function nonces(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.owner], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts deleted file mode 100644 index 9a497818fa5..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/owner.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x8da5cb5b" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "result", - }, -] as const; - -/** - * Checks if the `owner` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `owner` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isOwnerSupported } from "thirdweb/extensions/assets"; - * const supported = isOwnerSupported(["0x..."]); - * ``` - */ -export function isOwnerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the owner function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeOwnerResult } from "thirdweb/extensions/assets"; - * const result = decodeOwnerResultResult("..."); - * ``` - */ -export function decodeOwnerResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "owner" function on the contract. - * @param options - The options for the owner function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { owner } from "thirdweb/extensions/assets"; - * - * const result = await owner({ - * contract, - * }); - * - * ``` - */ -export async function owner(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts deleted file mode 100644 index 48ca2e48867..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts +++ /dev/null @@ -1,135 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "ownershipHandoverExpiresAt" function. - */ -export type OwnershipHandoverExpiresAtParams = { - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - }>; -}; - -export const FN_SELECTOR = "0xfee81cf4" as const; -const FN_INPUTS = [ - { - type: "address", - name: "pendingOwner", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "result", - }, -] as const; - -/** - * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/assets"; - * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); - * ``` - */ -export function isOwnershipHandoverExpiresAtSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "ownershipHandoverExpiresAt" function. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/assets"; - * const result = encodeOwnershipHandoverExpiresAtParams({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeOwnershipHandoverExpiresAtParams( - options: OwnershipHandoverExpiresAtParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); -} - -/** - * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/assets"; - * const result = encodeOwnershipHandoverExpiresAt({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeOwnershipHandoverExpiresAt( - options: OwnershipHandoverExpiresAtParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeOwnershipHandoverExpiresAtParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the ownershipHandoverExpiresAt function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/assets"; - * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); - * ``` - */ -export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "ownershipHandoverExpiresAt" function on the contract. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/assets"; - * - * const result = await ownershipHandoverExpiresAt({ - * contract, - * pendingOwner: ..., - * }); - * - * ``` - */ -export async function ownershipHandoverExpiresAt( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.pendingOwner], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts deleted file mode 100644 index 5a0be932b41..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/supportsInterface.ts +++ /dev/null @@ -1,130 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "supportsInterface" function. - */ -export type SupportsInterfaceParams = { - interfaceId: AbiParameterToPrimitiveType<{ - type: "bytes4"; - name: "interfaceId"; - }>; -}; - -export const FN_SELECTOR = "0x01ffc9a7" as const; -const FN_INPUTS = [ - { - type: "bytes4", - name: "interfaceId", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "bool", - }, -] as const; - -/** - * Checks if the `supportsInterface` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `supportsInterface` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSupportsInterfaceSupported } from "thirdweb/extensions/assets"; - * const supported = isSupportsInterfaceSupported(["0x..."]); - * ``` - */ -export function isSupportsInterfaceSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "supportsInterface" function. - * @param options - The options for the supportsInterface function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSupportsInterfaceParams } from "thirdweb/extensions/assets"; - * const result = encodeSupportsInterfaceParams({ - * interfaceId: ..., - * }); - * ``` - */ -export function encodeSupportsInterfaceParams( - options: SupportsInterfaceParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.interfaceId]); -} - -/** - * Encodes the "supportsInterface" function into a Hex string with its parameters. - * @param options - The options for the supportsInterface function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSupportsInterface } from "thirdweb/extensions/assets"; - * const result = encodeSupportsInterface({ - * interfaceId: ..., - * }); - * ``` - */ -export function encodeSupportsInterface(options: SupportsInterfaceParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSupportsInterfaceParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the supportsInterface function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeSupportsInterfaceResult } from "thirdweb/extensions/assets"; - * const result = decodeSupportsInterfaceResultResult("..."); - * ``` - */ -export function decodeSupportsInterfaceResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "supportsInterface" function on the contract. - * @param options - The options for the supportsInterface function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { supportsInterface } from "thirdweb/extensions/assets"; - * - * const result = await supportsInterface({ - * contract, - * interfaceId: ..., - * }); - * - * ``` - */ -export async function supportsInterface( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.interfaceId], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts deleted file mode 100644 index 25119f40b19..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/symbol.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x95d89b41" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "string", - }, -] as const; - -/** - * Checks if the `symbol` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `symbol` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSymbolSupported } from "thirdweb/extensions/assets"; - * const supported = isSymbolSupported(["0x..."]); - * ``` - */ -export function isSymbolSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the symbol function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeSymbolResult } from "thirdweb/extensions/assets"; - * const result = decodeSymbolResultResult("..."); - * ``` - */ -export function decodeSymbolResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "symbol" function on the contract. - * @param options - The options for the symbol function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { symbol } from "thirdweb/extensions/assets"; - * - * const result = await symbol({ - * contract, - * }); - * - * ``` - */ -export async function symbol(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts deleted file mode 100644 index 17426e76558..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/read/totalSupply.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x18160ddd" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "result", - }, -] as const; - -/** - * Checks if the `totalSupply` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `totalSupply` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isTotalSupplySupported } from "thirdweb/extensions/assets"; - * const supported = isTotalSupplySupported(["0x..."]); - * ``` - */ -export function isTotalSupplySupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the totalSupply function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeTotalSupplyResult } from "thirdweb/extensions/assets"; - * const result = decodeTotalSupplyResultResult("..."); - * ``` - */ -export function decodeTotalSupplyResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "totalSupply" function on the contract. - * @param options - The options for the totalSupply function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { totalSupply } from "thirdweb/extensions/assets"; - * - * const result = await totalSupply({ - * contract, - * }); - * - * ``` - */ -export async function totalSupply(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts deleted file mode 100644 index 5b5ece681a5..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/approve.ts +++ /dev/null @@ -1,149 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "approve" function. - */ -export type ApproveParams = WithOverrides<{ - spender: AbiParameterToPrimitiveType<{ type: "address"; name: "spender" }>; - amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; -}>; - -export const FN_SELECTOR = "0x095ea7b3" as const; -const FN_INPUTS = [ - { - type: "address", - name: "spender", - }, - { - type: "uint256", - name: "amount", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "bool", - }, -] as const; - -/** - * Checks if the `approve` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `approve` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isApproveSupported } from "thirdweb/extensions/assets"; - * - * const supported = isApproveSupported(["0x..."]); - * ``` - */ -export function isApproveSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "approve" function. - * @param options - The options for the approve function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeApproveParams } from "thirdweb/extensions/assets"; - * const result = encodeApproveParams({ - * spender: ..., - * amount: ..., - * }); - * ``` - */ -export function encodeApproveParams(options: ApproveParams) { - return encodeAbiParameters(FN_INPUTS, [options.spender, options.amount]); -} - -/** - * Encodes the "approve" function into a Hex string with its parameters. - * @param options - The options for the approve function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeApprove } from "thirdweb/extensions/assets"; - * const result = encodeApprove({ - * spender: ..., - * amount: ..., - * }); - * ``` - */ -export function encodeApprove(options: ApproveParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeApproveParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "approve" function on the contract. - * @param options - The options for the "approve" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { approve } from "thirdweb/extensions/assets"; - * - * const transaction = approve({ - * contract, - * spender: ..., - * amount: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function approve( - options: BaseTransactionOptions< - | ApproveParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.spender, resolvedOptions.amount] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts deleted file mode 100644 index 3ffb92d60dc..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burn.ts +++ /dev/null @@ -1,137 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "burn" function. - */ -export type BurnParams = WithOverrides<{ - amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; -}>; - -export const FN_SELECTOR = "0x42966c68" as const; -const FN_INPUTS = [ - { - type: "uint256", - name: "amount", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `burn` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `burn` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isBurnSupported } from "thirdweb/extensions/assets"; - * - * const supported = isBurnSupported(["0x..."]); - * ``` - */ -export function isBurnSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "burn" function. - * @param options - The options for the burn function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeBurnParams } from "thirdweb/extensions/assets"; - * const result = encodeBurnParams({ - * amount: ..., - * }); - * ``` - */ -export function encodeBurnParams(options: BurnParams) { - return encodeAbiParameters(FN_INPUTS, [options.amount]); -} - -/** - * Encodes the "burn" function into a Hex string with its parameters. - * @param options - The options for the burn function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeBurn } from "thirdweb/extensions/assets"; - * const result = encodeBurn({ - * amount: ..., - * }); - * ``` - */ -export function encodeBurn(options: BurnParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeBurnParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "burn" function on the contract. - * @param options - The options for the "burn" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { burn } from "thirdweb/extensions/assets"; - * - * const transaction = burn({ - * contract, - * amount: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function burn( - options: BaseTransactionOptions< - | BurnParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.amount] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts deleted file mode 100644 index 39fa7c6d344..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/burnFrom.ts +++ /dev/null @@ -1,145 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "burnFrom" function. - */ -export type BurnFromParams = WithOverrides<{ - from: AbiParameterToPrimitiveType<{ type: "address"; name: "from" }>; - amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; -}>; - -export const FN_SELECTOR = "0x79cc6790" as const; -const FN_INPUTS = [ - { - type: "address", - name: "from", - }, - { - type: "uint256", - name: "amount", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `burnFrom` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `burnFrom` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isBurnFromSupported } from "thirdweb/extensions/assets"; - * - * const supported = isBurnFromSupported(["0x..."]); - * ``` - */ -export function isBurnFromSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "burnFrom" function. - * @param options - The options for the burnFrom function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeBurnFromParams } from "thirdweb/extensions/assets"; - * const result = encodeBurnFromParams({ - * from: ..., - * amount: ..., - * }); - * ``` - */ -export function encodeBurnFromParams(options: BurnFromParams) { - return encodeAbiParameters(FN_INPUTS, [options.from, options.amount]); -} - -/** - * Encodes the "burnFrom" function into a Hex string with its parameters. - * @param options - The options for the burnFrom function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeBurnFrom } from "thirdweb/extensions/assets"; - * const result = encodeBurnFrom({ - * from: ..., - * amount: ..., - * }); - * ``` - */ -export function encodeBurnFrom(options: BurnFromParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeBurnFromParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "burnFrom" function on the contract. - * @param options - The options for the "burnFrom" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { burnFrom } from "thirdweb/extensions/assets"; - * - * const transaction = burnFrom({ - * contract, - * from: ..., - * amount: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function burnFrom( - options: BaseTransactionOptions< - | BurnFromParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.from, resolvedOptions.amount] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts deleted file mode 100644 index 89b15b8c239..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x54d1f13d" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `cancelOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCancelOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isCancelOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. - * @param options - The options for the "cancelOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { cancelOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = cancelOwnershipHandover(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function cancelOwnershipHandover(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts deleted file mode 100644 index b4cdc7364a8..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/completeOwnershipHandover.ts +++ /dev/null @@ -1,148 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "completeOwnershipHandover" function. - */ -export type CompleteOwnershipHandoverParams = WithOverrides<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - }>; -}>; - -export const FN_SELECTOR = "0xf04e283e" as const; -const FN_INPUTS = [ - { - type: "address", - name: "pendingOwner", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `completeOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isCompleteOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "completeOwnershipHandover" function. - * @param options - The options for the completeOwnershipHandover function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/assets"; - * const result = encodeCompleteOwnershipHandoverParams({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeCompleteOwnershipHandoverParams( - options: CompleteOwnershipHandoverParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); -} - -/** - * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. - * @param options - The options for the completeOwnershipHandover function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/assets"; - * const result = encodeCompleteOwnershipHandover({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeCompleteOwnershipHandover( - options: CompleteOwnershipHandoverParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeCompleteOwnershipHandoverParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. - * @param options - The options for the "completeOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { completeOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = completeOwnershipHandover({ - * contract, - * pendingOwner: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function completeOwnershipHandover( - options: BaseTransactionOptions< - | CompleteOwnershipHandoverParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.pendingOwner] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts deleted file mode 100644 index 7a44c4e8018..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/initialize.ts +++ /dev/null @@ -1,189 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "initialize" function. - */ -export type InitializeParams = WithOverrides<{ - name: AbiParameterToPrimitiveType<{ type: "string"; name: "_name" }>; - symbol: AbiParameterToPrimitiveType<{ type: "string"; name: "_symbol" }>; - contractURI: AbiParameterToPrimitiveType<{ - type: "string"; - name: "_contractURI"; - }>; - maxSupply: AbiParameterToPrimitiveType<{ - type: "uint256"; - name: "_maxSupply"; - }>; - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; -}>; - -export const FN_SELECTOR = "0x30a8ff4e" as const; -const FN_INPUTS = [ - { - type: "string", - name: "_name", - }, - { - type: "string", - name: "_symbol", - }, - { - type: "string", - name: "_contractURI", - }, - { - type: "uint256", - name: "_maxSupply", - }, - { - type: "address", - name: "_owner", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `initialize` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `initialize` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isInitializeSupported } from "thirdweb/extensions/assets"; - * - * const supported = isInitializeSupported(["0x..."]); - * ``` - */ -export function isInitializeSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "initialize" function. - * @param options - The options for the initialize function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeInitializeParams } from "thirdweb/extensions/assets"; - * const result = encodeInitializeParams({ - * name: ..., - * symbol: ..., - * contractURI: ..., - * maxSupply: ..., - * owner: ..., - * }); - * ``` - */ -export function encodeInitializeParams(options: InitializeParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.name, - options.symbol, - options.contractURI, - options.maxSupply, - options.owner, - ]); -} - -/** - * Encodes the "initialize" function into a Hex string with its parameters. - * @param options - The options for the initialize function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeInitialize } from "thirdweb/extensions/assets"; - * const result = encodeInitialize({ - * name: ..., - * symbol: ..., - * contractURI: ..., - * maxSupply: ..., - * owner: ..., - * }); - * ``` - */ -export function encodeInitialize(options: InitializeParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeInitializeParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "initialize" function on the contract. - * @param options - The options for the "initialize" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { initialize } from "thirdweb/extensions/assets"; - * - * const transaction = initialize({ - * contract, - * name: ..., - * symbol: ..., - * contractURI: ..., - * maxSupply: ..., - * owner: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function initialize( - options: BaseTransactionOptions< - | InitializeParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.name, - resolvedOptions.symbol, - resolvedOptions.contractURI, - resolvedOptions.maxSupply, - resolvedOptions.owner, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts deleted file mode 100644 index e619caed7a4..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/permit.ts +++ /dev/null @@ -1,201 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "permit" function. - */ -export type PermitParams = WithOverrides<{ - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; - spender: AbiParameterToPrimitiveType<{ type: "address"; name: "spender" }>; - value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; - deadline: AbiParameterToPrimitiveType<{ type: "uint256"; name: "deadline" }>; - v: AbiParameterToPrimitiveType<{ type: "uint8"; name: "v" }>; - r: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "r" }>; - s: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "s" }>; -}>; - -export const FN_SELECTOR = "0xd505accf" as const; -const FN_INPUTS = [ - { - type: "address", - name: "owner", - }, - { - type: "address", - name: "spender", - }, - { - type: "uint256", - name: "value", - }, - { - type: "uint256", - name: "deadline", - }, - { - type: "uint8", - name: "v", - }, - { - type: "bytes32", - name: "r", - }, - { - type: "bytes32", - name: "s", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `permit` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `permit` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isPermitSupported } from "thirdweb/extensions/assets"; - * - * const supported = isPermitSupported(["0x..."]); - * ``` - */ -export function isPermitSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "permit" function. - * @param options - The options for the permit function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodePermitParams } from "thirdweb/extensions/assets"; - * const result = encodePermitParams({ - * owner: ..., - * spender: ..., - * value: ..., - * deadline: ..., - * v: ..., - * r: ..., - * s: ..., - * }); - * ``` - */ -export function encodePermitParams(options: PermitParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.owner, - options.spender, - options.value, - options.deadline, - options.v, - options.r, - options.s, - ]); -} - -/** - * Encodes the "permit" function into a Hex string with its parameters. - * @param options - The options for the permit function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodePermit } from "thirdweb/extensions/assets"; - * const result = encodePermit({ - * owner: ..., - * spender: ..., - * value: ..., - * deadline: ..., - * v: ..., - * r: ..., - * s: ..., - * }); - * ``` - */ -export function encodePermit(options: PermitParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodePermitParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "permit" function on the contract. - * @param options - The options for the "permit" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { permit } from "thirdweb/extensions/assets"; - * - * const transaction = permit({ - * contract, - * owner: ..., - * spender: ..., - * value: ..., - * deadline: ..., - * v: ..., - * r: ..., - * s: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function permit( - options: BaseTransactionOptions< - | PermitParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.owner, - resolvedOptions.spender, - resolvedOptions.value, - resolvedOptions.deadline, - resolvedOptions.v, - resolvedOptions.r, - resolvedOptions.s, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts deleted file mode 100644 index 6b9b9db57a4..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/renounceOwnership.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x715018a6" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `renounceOwnership` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `renounceOwnership` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRenounceOwnershipSupported } from "thirdweb/extensions/assets"; - * - * const supported = isRenounceOwnershipSupported(["0x..."]); - * ``` - */ -export function isRenounceOwnershipSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "renounceOwnership" function on the contract. - * @param options - The options for the "renounceOwnership" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { renounceOwnership } from "thirdweb/extensions/assets"; - * - * const transaction = renounceOwnership(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function renounceOwnership(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts deleted file mode 100644 index 5826bb0ee25..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/requestOwnershipHandover.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x25692962" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `requestOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isRequestOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isRequestOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. - * @param options - The options for the "requestOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { requestOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = requestOwnershipHandover(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function requestOwnershipHandover(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts deleted file mode 100644 index b8ea8d16edd..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/setContractURI.ts +++ /dev/null @@ -1,142 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "setContractURI" function. - */ -export type SetContractURIParams = WithOverrides<{ - contractURI: AbiParameterToPrimitiveType<{ - type: "string"; - name: "_contractURI"; - }>; -}>; - -export const FN_SELECTOR = "0x938e3d7b" as const; -const FN_INPUTS = [ - { - type: "string", - name: "_contractURI", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `setContractURI` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `setContractURI` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSetContractURISupported } from "thirdweb/extensions/assets"; - * - * const supported = isSetContractURISupported(["0x..."]); - * ``` - */ -export function isSetContractURISupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "setContractURI" function. - * @param options - The options for the setContractURI function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetContractURIParams } from "thirdweb/extensions/assets"; - * const result = encodeSetContractURIParams({ - * contractURI: ..., - * }); - * ``` - */ -export function encodeSetContractURIParams(options: SetContractURIParams) { - return encodeAbiParameters(FN_INPUTS, [options.contractURI]); -} - -/** - * Encodes the "setContractURI" function into a Hex string with its parameters. - * @param options - The options for the setContractURI function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetContractURI } from "thirdweb/extensions/assets"; - * const result = encodeSetContractURI({ - * contractURI: ..., - * }); - * ``` - */ -export function encodeSetContractURI(options: SetContractURIParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSetContractURIParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "setContractURI" function on the contract. - * @param options - The options for the "setContractURI" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { setContractURI } from "thirdweb/extensions/assets"; - * - * const transaction = setContractURI({ - * contract, - * contractURI: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function setContractURI( - options: BaseTransactionOptions< - | SetContractURIParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.contractURI] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts deleted file mode 100644 index 1da41ddcc7b..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transfer.ts +++ /dev/null @@ -1,149 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "transfer" function. - */ -export type TransferParams = WithOverrides<{ - to: AbiParameterToPrimitiveType<{ type: "address"; name: "to" }>; - amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; -}>; - -export const FN_SELECTOR = "0xa9059cbb" as const; -const FN_INPUTS = [ - { - type: "address", - name: "to", - }, - { - type: "uint256", - name: "amount", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "bool", - }, -] as const; - -/** - * Checks if the `transfer` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `transfer` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isTransferSupported } from "thirdweb/extensions/assets"; - * - * const supported = isTransferSupported(["0x..."]); - * ``` - */ -export function isTransferSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "transfer" function. - * @param options - The options for the transfer function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferParams } from "thirdweb/extensions/assets"; - * const result = encodeTransferParams({ - * to: ..., - * amount: ..., - * }); - * ``` - */ -export function encodeTransferParams(options: TransferParams) { - return encodeAbiParameters(FN_INPUTS, [options.to, options.amount]); -} - -/** - * Encodes the "transfer" function into a Hex string with its parameters. - * @param options - The options for the transfer function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransfer } from "thirdweb/extensions/assets"; - * const result = encodeTransfer({ - * to: ..., - * amount: ..., - * }); - * ``` - */ -export function encodeTransfer(options: TransferParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeTransferParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "transfer" function on the contract. - * @param options - The options for the "transfer" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { transfer } from "thirdweb/extensions/assets"; - * - * const transaction = transfer({ - * contract, - * to: ..., - * amount: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function transfer( - options: BaseTransactionOptions< - | TransferParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.to, resolvedOptions.amount] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts deleted file mode 100644 index 97d4537e18b..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferFrom.ts +++ /dev/null @@ -1,167 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "transferFrom" function. - */ -export type TransferFromParams = WithOverrides<{ - from: AbiParameterToPrimitiveType<{ type: "address"; name: "from" }>; - to: AbiParameterToPrimitiveType<{ type: "address"; name: "to" }>; - amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; -}>; - -export const FN_SELECTOR = "0x23b872dd" as const; -const FN_INPUTS = [ - { - type: "address", - name: "from", - }, - { - type: "address", - name: "to", - }, - { - type: "uint256", - name: "amount", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "bool", - }, -] as const; - -/** - * Checks if the `transferFrom` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `transferFrom` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isTransferFromSupported } from "thirdweb/extensions/assets"; - * - * const supported = isTransferFromSupported(["0x..."]); - * ``` - */ -export function isTransferFromSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "transferFrom" function. - * @param options - The options for the transferFrom function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferFromParams } from "thirdweb/extensions/assets"; - * const result = encodeTransferFromParams({ - * from: ..., - * to: ..., - * amount: ..., - * }); - * ``` - */ -export function encodeTransferFromParams(options: TransferFromParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.from, - options.to, - options.amount, - ]); -} - -/** - * Encodes the "transferFrom" function into a Hex string with its parameters. - * @param options - The options for the transferFrom function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferFrom } from "thirdweb/extensions/assets"; - * const result = encodeTransferFrom({ - * from: ..., - * to: ..., - * amount: ..., - * }); - * ``` - */ -export function encodeTransferFrom(options: TransferFromParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeTransferFromParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "transferFrom" function on the contract. - * @param options - The options for the "transferFrom" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { transferFrom } from "thirdweb/extensions/assets"; - * - * const transaction = transferFrom({ - * contract, - * from: ..., - * to: ..., - * amount: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function transferFrom( - options: BaseTransactionOptions< - | TransferFromParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.from, - resolvedOptions.to, - resolvedOptions.amount, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts deleted file mode 100644 index 52e932c37eb..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Asset/write/transferOwnership.ts +++ /dev/null @@ -1,141 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "transferOwnership" function. - */ -export type TransferOwnershipParams = WithOverrides<{ - newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; -}>; - -export const FN_SELECTOR = "0xf2fde38b" as const; -const FN_INPUTS = [ - { - type: "address", - name: "newOwner", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `transferOwnership` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `transferOwnership` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isTransferOwnershipSupported } from "thirdweb/extensions/assets"; - * - * const supported = isTransferOwnershipSupported(["0x..."]); - * ``` - */ -export function isTransferOwnershipSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "transferOwnership" function. - * @param options - The options for the transferOwnership function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferOwnershipParams } from "thirdweb/extensions/assets"; - * const result = encodeTransferOwnershipParams({ - * newOwner: ..., - * }); - * ``` - */ -export function encodeTransferOwnershipParams( - options: TransferOwnershipParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.newOwner]); -} - -/** - * Encodes the "transferOwnership" function into a Hex string with its parameters. - * @param options - The options for the transferOwnership function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferOwnership } from "thirdweb/extensions/assets"; - * const result = encodeTransferOwnership({ - * newOwner: ..., - * }); - * ``` - */ -export function encodeTransferOwnership(options: TransferOwnershipParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeTransferOwnershipParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "transferOwnership" function on the contract. - * @param options - The options for the "transferOwnership" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { transferOwnership } from "thirdweb/extensions/assets"; - * - * const transaction = transferOwnership({ - * contract, - * newOwner: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function transferOwnership( - options: BaseTransactionOptions< - | TransferOwnershipParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.newOwner] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/AirdropUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/AirdropUpdated.ts deleted file mode 100644 index 23caf5512ad..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/AirdropUpdated.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the AirdropUpdated event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { airdropUpdatedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * airdropUpdatedEvent() - * ], - * }); - * ``` - */ -export function airdropUpdatedEvent() { - return prepareEvent({ - signature: "event AirdropUpdated(address airdrop)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts deleted file mode 100644 index 085bf4fe6ab..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Created.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "Created" event. - */ -export type CreatedEventFilters = Partial<{ - creator: AbiParameterToPrimitiveType<{ - type: "address"; - name: "creator"; - indexed: true; - }>; - asset: AbiParameterToPrimitiveType<{ - type: "address"; - name: "asset"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the Created event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { createdEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * createdEvent({ - * creator: ..., - * asset: ..., - * }) - * ], - * }); - * ``` - */ -export function createdEvent(filters: CreatedEventFilters = {}) { - return prepareEvent({ - signature: - "event Created(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Distributed.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Distributed.ts deleted file mode 100644 index 293516b3b83..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Distributed.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the Distributed event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { distributedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * distributedEvent() - * ], - * }); - * ``` - */ -export function distributedEvent() { - return prepareEvent({ - signature: - "event Distributed(address asset, uint256 recipientCount, uint256 totalAmount)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts deleted file mode 100644 index c399fba1348..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "ImplementationAdded" event. - */ -export type ImplementationAddedEventFilters = Partial<{ - implementation: AbiParameterToPrimitiveType<{ - type: "address"; - name: "implementation"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the ImplementationAdded event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { implementationAddedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * implementationAddedEvent({ - * implementation: ..., - * }) - * ], - * }); - * ``` - */ -export function implementationAddedEvent( - filters: ImplementationAddedEventFilters = {}, -) { - return prepareEvent({ - signature: - "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes createHookData)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Initialized.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Initialized.ts deleted file mode 100644 index 88705c10a63..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Initialized.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the Initialized event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { initializedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * initializedEvent() - * ], - * }); - * ``` - */ -export function initializedEvent() { - return prepareEvent({ - signature: "event Initialized(uint64 version)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts deleted file mode 100644 index 326928983b5..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipHandoverCanceled" event. - */ -export type OwnershipHandoverCanceledEventFilters = Partial<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipHandoverCanceled event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipHandoverCanceledEvent({ - * pendingOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipHandoverCanceledEvent( - filters: OwnershipHandoverCanceledEventFilters = {}, -) { - return prepareEvent({ - signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts deleted file mode 100644 index b7e8608233d..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipHandoverRequested" event. - */ -export type OwnershipHandoverRequestedEventFilters = Partial<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipHandoverRequested event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipHandoverRequestedEvent({ - * pendingOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipHandoverRequestedEvent( - filters: OwnershipHandoverRequestedEventFilters = {}, -) { - return prepareEvent({ - signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts deleted file mode 100644 index b97cc481307..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipTransferred" event. - */ -export type OwnershipTransferredEventFilters = Partial<{ - oldOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "oldOwner"; - indexed: true; - }>; - newOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "newOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipTransferred event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipTransferredEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipTransferredEvent({ - * oldOwner: ..., - * newOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipTransferredEvent( - filters: OwnershipTransferredEventFilters = {}, -) { - return prepareEvent({ - signature: - "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardClaimed.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardClaimed.ts deleted file mode 100644 index b9b5c0439e5..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardClaimed.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the RewardClaimed event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { rewardClaimedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * rewardClaimedEvent() - * ], - * }); - * ``` - */ -export function rewardClaimedEvent() { - return prepareEvent({ - signature: "event RewardClaimed(address asset, address claimer)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardLockerUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardLockerUpdated.ts deleted file mode 100644 index 5f070ae80d8..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RewardLockerUpdated.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the RewardLockerUpdated event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { rewardLockerUpdatedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * rewardLockerUpdatedEvent() - * ], - * }); - * ``` - */ -export function rewardLockerUpdatedEvent() { - return prepareEvent({ - signature: "event RewardLockerUpdated(address locker)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RouterUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RouterUpdated.ts deleted file mode 100644 index b622f2188f4..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/RouterUpdated.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the RouterUpdated event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { routerUpdatedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * routerUpdatedEvent() - * ], - * }); - * ``` - */ -export function routerUpdatedEvent() { - return prepareEvent({ - signature: "event RouterUpdated(address router)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts deleted file mode 100644 index 0869e1f4557..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/events/Upgraded.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "Upgraded" event. - */ -export type UpgradedEventFilters = Partial<{ - implementation: AbiParameterToPrimitiveType<{ - type: "address"; - name: "implementation"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the Upgraded event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { upgradedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * upgradedEvent({ - * implementation: ..., - * }) - * ], - * }); - * ``` - */ -export function upgradedEvent(filters: UpgradedEventFilters = {}) { - return prepareEvent({ - signature: "event Upgraded(address indexed implementation)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts deleted file mode 100644 index d69fe4f40ca..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getAirdrop.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0xd25f82a0" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "airdrop", - }, -] as const; - -/** - * Checks if the `getAirdrop` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `getAirdrop` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isGetAirdropSupported } from "thirdweb/extensions/assets"; - * const supported = isGetAirdropSupported(["0x..."]); - * ``` - */ -export function isGetAirdropSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the getAirdrop function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeGetAirdropResult } from "thirdweb/extensions/assets"; - * const result = decodeGetAirdropResultResult("..."); - * ``` - */ -export function decodeGetAirdropResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "getAirdrop" function on the contract. - * @param options - The options for the getAirdrop function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { getAirdrop } from "thirdweb/extensions/assets"; - * - * const result = await getAirdrop({ - * contract, - * }); - * - * ``` - */ -export async function getAirdrop(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts deleted file mode 100644 index d052841976b..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getImplementation.ts +++ /dev/null @@ -1,153 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "getImplementation" function. - */ -export type GetImplementationParams = { - contractId: AbiParameterToPrimitiveType<{ - type: "bytes32"; - name: "contractId"; - }>; -}; - -export const FN_SELECTOR = "0x3c2e0828" as const; -const FN_INPUTS = [ - { - type: "bytes32", - name: "contractId", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "tuple", - name: "config", - components: [ - { - type: "bytes32", - name: "contractId", - }, - { - type: "address", - name: "implementation", - }, - { - type: "uint8", - name: "implementationType", - }, - { - type: "uint8", - name: "createHook", - }, - { - type: "bytes", - name: "createHookData", - }, - ], - }, -] as const; - -/** - * Checks if the `getImplementation` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `getImplementation` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isGetImplementationSupported } from "thirdweb/extensions/assets"; - * const supported = isGetImplementationSupported(["0x..."]); - * ``` - */ -export function isGetImplementationSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "getImplementation" function. - * @param options - The options for the getImplementation function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeGetImplementationParams } from "thirdweb/extensions/assets"; - * const result = encodeGetImplementationParams({ - * contractId: ..., - * }); - * ``` - */ -export function encodeGetImplementationParams( - options: GetImplementationParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.contractId]); -} - -/** - * Encodes the "getImplementation" function into a Hex string with its parameters. - * @param options - The options for the getImplementation function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeGetImplementation } from "thirdweb/extensions/assets"; - * const result = encodeGetImplementation({ - * contractId: ..., - * }); - * ``` - */ -export function encodeGetImplementation(options: GetImplementationParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeGetImplementationParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the getImplementation function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeGetImplementationResult } from "thirdweb/extensions/assets"; - * const result = decodeGetImplementationResultResult("..."); - * ``` - */ -export function decodeGetImplementationResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "getImplementation" function on the contract. - * @param options - The options for the getImplementation function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { getImplementation } from "thirdweb/extensions/assets"; - * - * const result = await getImplementation({ - * contract, - * contractId: ..., - * }); - * - * ``` - */ -export async function getImplementation( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.contractId], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts deleted file mode 100644 index fa276412de3..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getReward.ts +++ /dev/null @@ -1,147 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "getReward" function. - */ -export type GetRewardParams = { - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; -}; - -export const FN_SELECTOR = "0xc00007b0" as const; -const FN_INPUTS = [ - { - type: "address", - name: "asset", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "tuple", - components: [ - { - type: "address", - name: "positionManager", - }, - { - type: "uint256", - name: "tokenId", - }, - { - type: "address", - name: "recipient", - }, - { - type: "address", - name: "referrer", - }, - { - type: "uint16", - name: "referrerBps", - }, - ], - }, -] as const; - -/** - * Checks if the `getReward` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `getReward` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isGetRewardSupported } from "thirdweb/extensions/assets"; - * const supported = isGetRewardSupported(["0x..."]); - * ``` - */ -export function isGetRewardSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "getReward" function. - * @param options - The options for the getReward function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeGetRewardParams } from "thirdweb/extensions/assets"; - * const result = encodeGetRewardParams({ - * asset: ..., - * }); - * ``` - */ -export function encodeGetRewardParams(options: GetRewardParams) { - return encodeAbiParameters(FN_INPUTS, [options.asset]); -} - -/** - * Encodes the "getReward" function into a Hex string with its parameters. - * @param options - The options for the getReward function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeGetReward } from "thirdweb/extensions/assets"; - * const result = encodeGetReward({ - * asset: ..., - * }); - * ``` - */ -export function encodeGetReward(options: GetRewardParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeGetRewardParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the getReward function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeGetRewardResult } from "thirdweb/extensions/assets"; - * const result = decodeGetRewardResultResult("..."); - * ``` - */ -export function decodeGetRewardResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "getReward" function on the contract. - * @param options - The options for the getReward function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { getReward } from "thirdweb/extensions/assets"; - * - * const result = await getReward({ - * contract, - * asset: ..., - * }); - * - * ``` - */ -export async function getReward( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.asset], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts deleted file mode 100644 index 1a5d7085181..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRewardLocker.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0xb0188df2" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "rewardLocker", - }, -] as const; - -/** - * Checks if the `getRewardLocker` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `getRewardLocker` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isGetRewardLockerSupported } from "thirdweb/extensions/assets"; - * const supported = isGetRewardLockerSupported(["0x..."]); - * ``` - */ -export function isGetRewardLockerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the getRewardLocker function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeGetRewardLockerResult } from "thirdweb/extensions/assets"; - * const result = decodeGetRewardLockerResultResult("..."); - * ``` - */ -export function decodeGetRewardLockerResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "getRewardLocker" function on the contract. - * @param options - The options for the getRewardLocker function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { getRewardLocker } from "thirdweb/extensions/assets"; - * - * const result = await getRewardLocker({ - * contract, - * }); - * - * ``` - */ -export async function getRewardLocker(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts deleted file mode 100644 index 6599cf64ec8..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/getRouter.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0xb0f479a1" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "router", - }, -] as const; - -/** - * Checks if the `getRouter` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `getRouter` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isGetRouterSupported } from "thirdweb/extensions/assets"; - * const supported = isGetRouterSupported(["0x..."]); - * ``` - */ -export function isGetRouterSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the getRouter function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeGetRouterResult } from "thirdweb/extensions/assets"; - * const result = decodeGetRouterResultResult("..."); - * ``` - */ -export function decodeGetRouterResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "getRouter" function on the contract. - * @param options - The options for the getRouter function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { getRouter } from "thirdweb/extensions/assets"; - * - * const result = await getRouter({ - * contract, - * }); - * - * ``` - */ -export async function getRouter(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts deleted file mode 100644 index 4299c978eb8..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/guardSalt.ts +++ /dev/null @@ -1,165 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "guardSalt" function. - */ -export type GuardSaltParams = { - salt: AbiParameterToPrimitiveType<{ type: "bytes32"; name: "salt" }>; - creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; - contractInitData: AbiParameterToPrimitiveType<{ - type: "bytes"; - name: "contractInitData"; - }>; - hookInitData: AbiParameterToPrimitiveType<{ - type: "bytes"; - name: "hookInitData"; - }>; -}; - -export const FN_SELECTOR = "0xd5ebb1df" as const; -const FN_INPUTS = [ - { - type: "bytes32", - name: "salt", - }, - { - type: "address", - name: "creator", - }, - { - type: "bytes", - name: "contractInitData", - }, - { - type: "bytes", - name: "hookInitData", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "bytes32", - }, -] as const; - -/** - * Checks if the `guardSalt` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `guardSalt` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isGuardSaltSupported } from "thirdweb/extensions/assets"; - * const supported = isGuardSaltSupported(["0x..."]); - * ``` - */ -export function isGuardSaltSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "guardSalt" function. - * @param options - The options for the guardSalt function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeGuardSaltParams } from "thirdweb/extensions/assets"; - * const result = encodeGuardSaltParams({ - * salt: ..., - * creator: ..., - * contractInitData: ..., - * hookInitData: ..., - * }); - * ``` - */ -export function encodeGuardSaltParams(options: GuardSaltParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.salt, - options.creator, - options.contractInitData, - options.hookInitData, - ]); -} - -/** - * Encodes the "guardSalt" function into a Hex string with its parameters. - * @param options - The options for the guardSalt function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeGuardSalt } from "thirdweb/extensions/assets"; - * const result = encodeGuardSalt({ - * salt: ..., - * creator: ..., - * contractInitData: ..., - * hookInitData: ..., - * }); - * ``` - */ -export function encodeGuardSalt(options: GuardSaltParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeGuardSaltParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the guardSalt function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeGuardSaltResult } from "thirdweb/extensions/assets"; - * const result = decodeGuardSaltResultResult("..."); - * ``` - */ -export function decodeGuardSaltResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "guardSalt" function on the contract. - * @param options - The options for the guardSalt function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { guardSalt } from "thirdweb/extensions/assets"; - * - * const result = await guardSalt({ - * contract, - * salt: ..., - * creator: ..., - * contractInitData: ..., - * hookInitData: ..., - * }); - * - * ``` - */ -export async function guardSalt( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [ - options.salt, - options.creator, - options.contractInitData, - options.hookInitData, - ], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts deleted file mode 100644 index 9a497818fa5..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/owner.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x8da5cb5b" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "result", - }, -] as const; - -/** - * Checks if the `owner` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `owner` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isOwnerSupported } from "thirdweb/extensions/assets"; - * const supported = isOwnerSupported(["0x..."]); - * ``` - */ -export function isOwnerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the owner function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeOwnerResult } from "thirdweb/extensions/assets"; - * const result = decodeOwnerResultResult("..."); - * ``` - */ -export function decodeOwnerResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "owner" function on the contract. - * @param options - The options for the owner function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { owner } from "thirdweb/extensions/assets"; - * - * const result = await owner({ - * contract, - * }); - * - * ``` - */ -export async function owner(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts deleted file mode 100644 index 48ca2e48867..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts +++ /dev/null @@ -1,135 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "ownershipHandoverExpiresAt" function. - */ -export type OwnershipHandoverExpiresAtParams = { - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - }>; -}; - -export const FN_SELECTOR = "0xfee81cf4" as const; -const FN_INPUTS = [ - { - type: "address", - name: "pendingOwner", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "result", - }, -] as const; - -/** - * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/assets"; - * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); - * ``` - */ -export function isOwnershipHandoverExpiresAtSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "ownershipHandoverExpiresAt" function. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/assets"; - * const result = encodeOwnershipHandoverExpiresAtParams({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeOwnershipHandoverExpiresAtParams( - options: OwnershipHandoverExpiresAtParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); -} - -/** - * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/assets"; - * const result = encodeOwnershipHandoverExpiresAt({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeOwnershipHandoverExpiresAt( - options: OwnershipHandoverExpiresAtParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeOwnershipHandoverExpiresAtParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the ownershipHandoverExpiresAt function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/assets"; - * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); - * ``` - */ -export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "ownershipHandoverExpiresAt" function on the contract. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/assets"; - * - * const result = await ownershipHandoverExpiresAt({ - * contract, - * pendingOwner: ..., - * }); - * - * ``` - */ -export async function ownershipHandoverExpiresAt( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.pendingOwner], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts deleted file mode 100644 index 21b259dcf87..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddress.ts +++ /dev/null @@ -1,176 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "predictAddress" function. - */ -export type PredictAddressParams = { - contractId: AbiParameterToPrimitiveType<{ - type: "bytes32"; - name: "contractId"; - }>; - creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; - params: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "params"; - components: [ - { type: "address"; name: "referrer" }, - { type: "bytes32"; name: "salt" }, - { type: "bytes"; name: "data" }, - { type: "bytes"; name: "hookData" }, - ]; - }>; -}; - -export const FN_SELECTOR = "0x6b6963c6" as const; -const FN_INPUTS = [ - { - type: "bytes32", - name: "contractId", - }, - { - type: "address", - name: "creator", - }, - { - type: "tuple", - name: "params", - components: [ - { - type: "address", - name: "referrer", - }, - { - type: "bytes32", - name: "salt", - }, - { - type: "bytes", - name: "data", - }, - { - type: "bytes", - name: "hookData", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "predicted", - }, -] as const; - -/** - * Checks if the `predictAddress` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `predictAddress` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isPredictAddressSupported } from "thirdweb/extensions/assets"; - * const supported = isPredictAddressSupported(["0x..."]); - * ``` - */ -export function isPredictAddressSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "predictAddress" function. - * @param options - The options for the predictAddress function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodePredictAddressParams } from "thirdweb/extensions/assets"; - * const result = encodePredictAddressParams({ - * contractId: ..., - * creator: ..., - * params: ..., - * }); - * ``` - */ -export function encodePredictAddressParams(options: PredictAddressParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.contractId, - options.creator, - options.params, - ]); -} - -/** - * Encodes the "predictAddress" function into a Hex string with its parameters. - * @param options - The options for the predictAddress function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodePredictAddress } from "thirdweb/extensions/assets"; - * const result = encodePredictAddress({ - * contractId: ..., - * creator: ..., - * params: ..., - * }); - * ``` - */ -export function encodePredictAddress(options: PredictAddressParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodePredictAddressParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the predictAddress function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodePredictAddressResult } from "thirdweb/extensions/assets"; - * const result = decodePredictAddressResultResult("..."); - * ``` - */ -export function decodePredictAddressResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "predictAddress" function on the contract. - * @param options - The options for the predictAddress function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { predictAddress } from "thirdweb/extensions/assets"; - * - * const result = await predictAddress({ - * contract, - * contractId: ..., - * creator: ..., - * params: ..., - * }); - * - * ``` - */ -export async function predictAddress( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.contractId, options.creator, options.params], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts deleted file mode 100644 index f8a04bc4e9a..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts +++ /dev/null @@ -1,211 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "predictAddressByConfig" function. - */ -export type PredictAddressByConfigParams = { - config: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "config"; - components: [ - { type: "bytes32"; name: "contractId" }, - { type: "address"; name: "implementation" }, - { type: "uint8"; name: "implementationType" }, - { type: "uint8"; name: "createHook" }, - { type: "bytes"; name: "createHookData" }, - ]; - }>; - creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; - params: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "params"; - components: [ - { type: "address"; name: "referrer" }, - { type: "bytes32"; name: "salt" }, - { type: "bytes"; name: "data" }, - { type: "bytes"; name: "hookData" }, - ]; - }>; -}; - -export const FN_SELECTOR = "0xbccfb6ad" as const; -const FN_INPUTS = [ - { - type: "tuple", - name: "config", - components: [ - { - type: "bytes32", - name: "contractId", - }, - { - type: "address", - name: "implementation", - }, - { - type: "uint8", - name: "implementationType", - }, - { - type: "uint8", - name: "createHook", - }, - { - type: "bytes", - name: "createHookData", - }, - ], - }, - { - type: "address", - name: "creator", - }, - { - type: "tuple", - name: "params", - components: [ - { - type: "address", - name: "referrer", - }, - { - type: "bytes32", - name: "salt", - }, - { - type: "bytes", - name: "data", - }, - { - type: "bytes", - name: "hookData", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "predicted", - }, -] as const; - -/** - * Checks if the `predictAddressByConfig` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `predictAddressByConfig` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isPredictAddressByConfigSupported } from "thirdweb/extensions/assets"; - * const supported = isPredictAddressByConfigSupported(["0x..."]); - * ``` - */ -export function isPredictAddressByConfigSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "predictAddressByConfig" function. - * @param options - The options for the predictAddressByConfig function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodePredictAddressByConfigParams } from "thirdweb/extensions/assets"; - * const result = encodePredictAddressByConfigParams({ - * config: ..., - * creator: ..., - * params: ..., - * }); - * ``` - */ -export function encodePredictAddressByConfigParams( - options: PredictAddressByConfigParams, -) { - return encodeAbiParameters(FN_INPUTS, [ - options.config, - options.creator, - options.params, - ]); -} - -/** - * Encodes the "predictAddressByConfig" function into a Hex string with its parameters. - * @param options - The options for the predictAddressByConfig function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodePredictAddressByConfig } from "thirdweb/extensions/assets"; - * const result = encodePredictAddressByConfig({ - * config: ..., - * creator: ..., - * params: ..., - * }); - * ``` - */ -export function encodePredictAddressByConfig( - options: PredictAddressByConfigParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodePredictAddressByConfigParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the predictAddressByConfig function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodePredictAddressByConfigResult } from "thirdweb/extensions/assets"; - * const result = decodePredictAddressByConfigResultResult("..."); - * ``` - */ -export function decodePredictAddressByConfigResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "predictAddressByConfig" function on the contract. - * @param options - The options for the predictAddressByConfig function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { predictAddressByConfig } from "thirdweb/extensions/assets"; - * - * const result = await predictAddressByConfig({ - * contract, - * config: ..., - * creator: ..., - * params: ..., - * }); - * - * ``` - */ -export async function predictAddressByConfig( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.config, options.creator, options.params], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts deleted file mode 100644 index a056bb26e0d..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/read/proxiableUUID.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x52d1902d" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "bytes32", - }, -] as const; - -/** - * Checks if the `proxiableUUID` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `proxiableUUID` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isProxiableUUIDSupported } from "thirdweb/extensions/assets"; - * const supported = isProxiableUUIDSupported(["0x..."]); - * ``` - */ -export function isProxiableUUIDSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the proxiableUUID function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeProxiableUUIDResult } from "thirdweb/extensions/assets"; - * const result = decodeProxiableUUIDResultResult("..."); - * ``` - */ -export function decodeProxiableUUIDResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "proxiableUUID" function on the contract. - * @param options - The options for the proxiableUUID function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { proxiableUUID } from "thirdweb/extensions/assets"; - * - * const result = await proxiableUUID({ - * contract, - * }); - * - * ``` - */ -export async function proxiableUUID(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts deleted file mode 100644 index 78c5a64e132..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/addImplementation.ts +++ /dev/null @@ -1,181 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "addImplementation" function. - */ -export type AddImplementationParams = WithOverrides<{ - config: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "config"; - components: [ - { type: "bytes32"; name: "contractId" }, - { type: "address"; name: "implementation" }, - { type: "uint8"; name: "implementationType" }, - { type: "uint8"; name: "createHook" }, - { type: "bytes"; name: "createHookData" }, - ]; - }>; - isDefault: AbiParameterToPrimitiveType<{ type: "bool"; name: "isDefault" }>; -}>; - -export const FN_SELECTOR = "0x4bf8055d" as const; -const FN_INPUTS = [ - { - type: "tuple", - name: "config", - components: [ - { - type: "bytes32", - name: "contractId", - }, - { - type: "address", - name: "implementation", - }, - { - type: "uint8", - name: "implementationType", - }, - { - type: "uint8", - name: "createHook", - }, - { - type: "bytes", - name: "createHookData", - }, - ], - }, - { - type: "bool", - name: "isDefault", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `addImplementation` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `addImplementation` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isAddImplementationSupported } from "thirdweb/extensions/assets"; - * - * const supported = isAddImplementationSupported(["0x..."]); - * ``` - */ -export function isAddImplementationSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "addImplementation" function. - * @param options - The options for the addImplementation function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeAddImplementationParams } from "thirdweb/extensions/assets"; - * const result = encodeAddImplementationParams({ - * config: ..., - * isDefault: ..., - * }); - * ``` - */ -export function encodeAddImplementationParams( - options: AddImplementationParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.config, options.isDefault]); -} - -/** - * Encodes the "addImplementation" function into a Hex string with its parameters. - * @param options - The options for the addImplementation function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeAddImplementation } from "thirdweb/extensions/assets"; - * const result = encodeAddImplementation({ - * config: ..., - * isDefault: ..., - * }); - * ``` - */ -export function encodeAddImplementation(options: AddImplementationParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeAddImplementationParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "addImplementation" function on the contract. - * @param options - The options for the "addImplementation" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { addImplementation } from "thirdweb/extensions/assets"; - * - * const transaction = addImplementation({ - * contract, - * config: ..., - * isDefault: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function addImplementation( - options: BaseTransactionOptions< - | AddImplementationParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.config, resolvedOptions.isDefault] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts deleted file mode 100644 index b109d962246..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/buy.ts +++ /dev/null @@ -1,196 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "buy" function. - */ -export type BuyParams = WithOverrides<{ - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; - params: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "params"; - components: [ - { type: "address"; name: "recipient" }, - { type: "address"; name: "referrer" }, - { type: "address"; name: "tokenIn" }, - { type: "uint256"; name: "amountIn" }, - { type: "uint256"; name: "minAmountOut" }, - { type: "uint256"; name: "deadline" }, - { type: "bytes"; name: "hookData" }, - ]; - }>; -}>; - -export const FN_SELECTOR = "0x688cb20f" as const; -const FN_INPUTS = [ - { - type: "address", - name: "asset", - }, - { - type: "tuple", - name: "params", - components: [ - { - type: "address", - name: "recipient", - }, - { - type: "address", - name: "referrer", - }, - { - type: "address", - name: "tokenIn", - }, - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "minAmountOut", - }, - { - type: "uint256", - name: "deadline", - }, - { - type: "bytes", - name: "hookData", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "amountOut", - }, -] as const; - -/** - * Checks if the `buy` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `buy` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isBuySupported } from "thirdweb/extensions/assets"; - * - * const supported = isBuySupported(["0x..."]); - * ``` - */ -export function isBuySupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "buy" function. - * @param options - The options for the buy function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeBuyParams } from "thirdweb/extensions/assets"; - * const result = encodeBuyParams({ - * asset: ..., - * params: ..., - * }); - * ``` - */ -export function encodeBuyParams(options: BuyParams) { - return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); -} - -/** - * Encodes the "buy" function into a Hex string with its parameters. - * @param options - The options for the buy function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeBuy } from "thirdweb/extensions/assets"; - * const result = encodeBuy({ - * asset: ..., - * params: ..., - * }); - * ``` - */ -export function encodeBuy(options: BuyParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeBuyParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "buy" function on the contract. - * @param options - The options for the "buy" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { buy } from "thirdweb/extensions/assets"; - * - * const transaction = buy({ - * contract, - * asset: ..., - * params: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function buy( - options: BaseTransactionOptions< - | BuyParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.asset, resolvedOptions.params] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts deleted file mode 100644 index 89b15b8c239..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x54d1f13d" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `cancelOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCancelOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isCancelOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. - * @param options - The options for the "cancelOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { cancelOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = cancelOwnershipHandover(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function cancelOwnershipHandover(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts deleted file mode 100644 index 1398704dfb8..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/claimReward.ts +++ /dev/null @@ -1,139 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "claimReward" function. - */ -export type ClaimRewardParams = WithOverrides<{ - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; -}>; - -export const FN_SELECTOR = "0xd279c191" as const; -const FN_INPUTS = [ - { - type: "address", - name: "asset", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `claimReward` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `claimReward` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isClaimRewardSupported } from "thirdweb/extensions/assets"; - * - * const supported = isClaimRewardSupported(["0x..."]); - * ``` - */ -export function isClaimRewardSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "claimReward" function. - * @param options - The options for the claimReward function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeClaimRewardParams } from "thirdweb/extensions/assets"; - * const result = encodeClaimRewardParams({ - * asset: ..., - * }); - * ``` - */ -export function encodeClaimRewardParams(options: ClaimRewardParams) { - return encodeAbiParameters(FN_INPUTS, [options.asset]); -} - -/** - * Encodes the "claimReward" function into a Hex string with its parameters. - * @param options - The options for the claimReward function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeClaimReward } from "thirdweb/extensions/assets"; - * const result = encodeClaimReward({ - * asset: ..., - * }); - * ``` - */ -export function encodeClaimReward(options: ClaimRewardParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeClaimRewardParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "claimReward" function on the contract. - * @param options - The options for the "claimReward" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { claimReward } from "thirdweb/extensions/assets"; - * - * const transaction = claimReward({ - * contract, - * asset: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function claimReward( - options: BaseTransactionOptions< - | ClaimRewardParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.asset] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts deleted file mode 100644 index b4cdc7364a8..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts +++ /dev/null @@ -1,148 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "completeOwnershipHandover" function. - */ -export type CompleteOwnershipHandoverParams = WithOverrides<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - }>; -}>; - -export const FN_SELECTOR = "0xf04e283e" as const; -const FN_INPUTS = [ - { - type: "address", - name: "pendingOwner", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `completeOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isCompleteOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "completeOwnershipHandover" function. - * @param options - The options for the completeOwnershipHandover function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/assets"; - * const result = encodeCompleteOwnershipHandoverParams({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeCompleteOwnershipHandoverParams( - options: CompleteOwnershipHandoverParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); -} - -/** - * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. - * @param options - The options for the completeOwnershipHandover function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/assets"; - * const result = encodeCompleteOwnershipHandover({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeCompleteOwnershipHandover( - options: CompleteOwnershipHandoverParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeCompleteOwnershipHandoverParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. - * @param options - The options for the "completeOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { completeOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = completeOwnershipHandover({ - * contract, - * pendingOwner: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function completeOwnershipHandover( - options: BaseTransactionOptions< - | CompleteOwnershipHandoverParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.pendingOwner] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts deleted file mode 100644 index 2bdc3e18c03..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/create.ts +++ /dev/null @@ -1,180 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "create" function. - */ -export type CreateParams = WithOverrides<{ - creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; - createParams: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "createParams"; - components: [ - { type: "address"; name: "referrer" }, - { type: "bytes32"; name: "salt" }, - { type: "bytes"; name: "data" }, - { type: "bytes"; name: "hookData" }, - ]; - }>; -}>; - -export const FN_SELECTOR = "0x65d53dd9" as const; -const FN_INPUTS = [ - { - type: "address", - name: "creator", - }, - { - type: "tuple", - name: "createParams", - components: [ - { - type: "address", - name: "referrer", - }, - { - type: "bytes32", - name: "salt", - }, - { - type: "bytes", - name: "data", - }, - { - type: "bytes", - name: "hookData", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "asset", - }, -] as const; - -/** - * Checks if the `create` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `create` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCreateSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCreateSupported(["0x..."]); - * ``` - */ -export function isCreateSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "create" function. - * @param options - The options for the create function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeCreateParams } from "thirdweb/extensions/assets"; - * const result = encodeCreateParams({ - * creator: ..., - * createParams: ..., - * }); - * ``` - */ -export function encodeCreateParams(options: CreateParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.creator, - options.createParams, - ]); -} - -/** - * Encodes the "create" function into a Hex string with its parameters. - * @param options - The options for the create function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeCreate } from "thirdweb/extensions/assets"; - * const result = encodeCreate({ - * creator: ..., - * createParams: ..., - * }); - * ``` - */ -export function encodeCreate(options: CreateParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeCreateParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "create" function on the contract. - * @param options - The options for the "create" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { create } from "thirdweb/extensions/assets"; - * - * const transaction = create({ - * contract, - * creator: ..., - * createParams: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function create( - options: BaseTransactionOptions< - | CreateParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.creator, resolvedOptions.createParams] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts deleted file mode 100644 index 9467775f9bc..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createById.ts +++ /dev/null @@ -1,198 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "createById" function. - */ -export type CreateByIdParams = WithOverrides<{ - contractId: AbiParameterToPrimitiveType<{ - type: "bytes32"; - name: "contractId"; - }>; - creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; - params: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "params"; - components: [ - { type: "address"; name: "referrer" }, - { type: "bytes32"; name: "salt" }, - { type: "bytes"; name: "data" }, - { type: "bytes"; name: "hookData" }, - ]; - }>; -}>; - -export const FN_SELECTOR = "0x1889d488" as const; -const FN_INPUTS = [ - { - type: "bytes32", - name: "contractId", - }, - { - type: "address", - name: "creator", - }, - { - type: "tuple", - name: "params", - components: [ - { - type: "address", - name: "referrer", - }, - { - type: "bytes32", - name: "salt", - }, - { - type: "bytes", - name: "data", - }, - { - type: "bytes", - name: "hookData", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "asset", - }, -] as const; - -/** - * Checks if the `createById` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `createById` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCreateByIdSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCreateByIdSupported(["0x..."]); - * ``` - */ -export function isCreateByIdSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "createById" function. - * @param options - The options for the createById function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeCreateByIdParams } from "thirdweb/extensions/assets"; - * const result = encodeCreateByIdParams({ - * contractId: ..., - * creator: ..., - * params: ..., - * }); - * ``` - */ -export function encodeCreateByIdParams(options: CreateByIdParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.contractId, - options.creator, - options.params, - ]); -} - -/** - * Encodes the "createById" function into a Hex string with its parameters. - * @param options - The options for the createById function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeCreateById } from "thirdweb/extensions/assets"; - * const result = encodeCreateById({ - * contractId: ..., - * creator: ..., - * params: ..., - * }); - * ``` - */ -export function encodeCreateById(options: CreateByIdParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeCreateByIdParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "createById" function on the contract. - * @param options - The options for the "createById" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { createById } from "thirdweb/extensions/assets"; - * - * const transaction = createById({ - * contract, - * contractId: ..., - * creator: ..., - * params: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function createById( - options: BaseTransactionOptions< - | CreateByIdParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.contractId, - resolvedOptions.creator, - resolvedOptions.params, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts deleted file mode 100644 index bce7aa4e1ab..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts +++ /dev/null @@ -1,233 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "createByImplementationConfig" function. - */ -export type CreateByImplementationConfigParams = WithOverrides<{ - config: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "config"; - components: [ - { type: "bytes32"; name: "contractId" }, - { type: "address"; name: "implementation" }, - { type: "uint8"; name: "implementationType" }, - { type: "uint8"; name: "createHook" }, - { type: "bytes"; name: "createHookData" }, - ]; - }>; - creator: AbiParameterToPrimitiveType<{ type: "address"; name: "creator" }>; - params: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "params"; - components: [ - { type: "address"; name: "referrer" }, - { type: "bytes32"; name: "salt" }, - { type: "bytes"; name: "data" }, - { type: "bytes"; name: "hookData" }, - ]; - }>; -}>; - -export const FN_SELECTOR = "0x1a1b2b88" as const; -const FN_INPUTS = [ - { - type: "tuple", - name: "config", - components: [ - { - type: "bytes32", - name: "contractId", - }, - { - type: "address", - name: "implementation", - }, - { - type: "uint8", - name: "implementationType", - }, - { - type: "uint8", - name: "createHook", - }, - { - type: "bytes", - name: "createHookData", - }, - ], - }, - { - type: "address", - name: "creator", - }, - { - type: "tuple", - name: "params", - components: [ - { - type: "address", - name: "referrer", - }, - { - type: "bytes32", - name: "salt", - }, - { - type: "bytes", - name: "data", - }, - { - type: "bytes", - name: "hookData", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "asset", - }, -] as const; - -/** - * Checks if the `createByImplementationConfig` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `createByImplementationConfig` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCreateByImplementationConfigSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCreateByImplementationConfigSupported(["0x..."]); - * ``` - */ -export function isCreateByImplementationConfigSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "createByImplementationConfig" function. - * @param options - The options for the createByImplementationConfig function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeCreateByImplementationConfigParams } from "thirdweb/extensions/assets"; - * const result = encodeCreateByImplementationConfigParams({ - * config: ..., - * creator: ..., - * params: ..., - * }); - * ``` - */ -export function encodeCreateByImplementationConfigParams( - options: CreateByImplementationConfigParams, -) { - return encodeAbiParameters(FN_INPUTS, [ - options.config, - options.creator, - options.params, - ]); -} - -/** - * Encodes the "createByImplementationConfig" function into a Hex string with its parameters. - * @param options - The options for the createByImplementationConfig function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeCreateByImplementationConfig } from "thirdweb/extensions/assets"; - * const result = encodeCreateByImplementationConfig({ - * config: ..., - * creator: ..., - * params: ..., - * }); - * ``` - */ -export function encodeCreateByImplementationConfig( - options: CreateByImplementationConfigParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeCreateByImplementationConfigParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "createByImplementationConfig" function on the contract. - * @param options - The options for the "createByImplementationConfig" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { createByImplementationConfig } from "thirdweb/extensions/assets"; - * - * const transaction = createByImplementationConfig({ - * contract, - * config: ..., - * creator: ..., - * params: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function createByImplementationConfig( - options: BaseTransactionOptions< - | CreateByImplementationConfigParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.config, - resolvedOptions.creator, - resolvedOptions.params, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts deleted file mode 100644 index a789aded768..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/distribute.ts +++ /dev/null @@ -1,164 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "distribute" function. - */ -export type DistributeParams = WithOverrides<{ - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; - contents: AbiParameterToPrimitiveType<{ - type: "tuple[]"; - name: "contents"; - components: [ - { type: "uint256"; name: "amount" }, - { type: "address"; name: "recipient" }, - ]; - }>; -}>; - -export const FN_SELECTOR = "0xe542b93b" as const; -const FN_INPUTS = [ - { - type: "address", - name: "asset", - }, - { - type: "tuple[]", - name: "contents", - components: [ - { - type: "uint256", - name: "amount", - }, - { - type: "address", - name: "recipient", - }, - ], - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `distribute` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `distribute` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isDistributeSupported } from "thirdweb/extensions/assets"; - * - * const supported = isDistributeSupported(["0x..."]); - * ``` - */ -export function isDistributeSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "distribute" function. - * @param options - The options for the distribute function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeDistributeParams } from "thirdweb/extensions/assets"; - * const result = encodeDistributeParams({ - * asset: ..., - * contents: ..., - * }); - * ``` - */ -export function encodeDistributeParams(options: DistributeParams) { - return encodeAbiParameters(FN_INPUTS, [options.asset, options.contents]); -} - -/** - * Encodes the "distribute" function into a Hex string with its parameters. - * @param options - The options for the distribute function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeDistribute } from "thirdweb/extensions/assets"; - * const result = encodeDistribute({ - * asset: ..., - * contents: ..., - * }); - * ``` - */ -export function encodeDistribute(options: DistributeParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeDistributeParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "distribute" function on the contract. - * @param options - The options for the "distribute" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { distribute } from "thirdweb/extensions/assets"; - * - * const transaction = distribute({ - * contract, - * asset: ..., - * contents: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function distribute( - options: BaseTransactionOptions< - | DistributeParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.asset, resolvedOptions.contents] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts deleted file mode 100644 index 8f97709f1ef..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/initialize.ts +++ /dev/null @@ -1,176 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "initialize" function. - */ -export type InitializeParams = WithOverrides<{ - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; - router: AbiParameterToPrimitiveType<{ type: "address"; name: "router" }>; - rewardLocker: AbiParameterToPrimitiveType<{ - type: "address"; - name: "rewardLocker"; - }>; - airdrop: AbiParameterToPrimitiveType<{ type: "address"; name: "airdrop" }>; -}>; - -export const FN_SELECTOR = "0xf8c8765e" as const; -const FN_INPUTS = [ - { - type: "address", - name: "owner", - }, - { - type: "address", - name: "router", - }, - { - type: "address", - name: "rewardLocker", - }, - { - type: "address", - name: "airdrop", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `initialize` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `initialize` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isInitializeSupported } from "thirdweb/extensions/assets"; - * - * const supported = isInitializeSupported(["0x..."]); - * ``` - */ -export function isInitializeSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "initialize" function. - * @param options - The options for the initialize function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeInitializeParams } from "thirdweb/extensions/assets"; - * const result = encodeInitializeParams({ - * owner: ..., - * router: ..., - * rewardLocker: ..., - * airdrop: ..., - * }); - * ``` - */ -export function encodeInitializeParams(options: InitializeParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.owner, - options.router, - options.rewardLocker, - options.airdrop, - ]); -} - -/** - * Encodes the "initialize" function into a Hex string with its parameters. - * @param options - The options for the initialize function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeInitialize } from "thirdweb/extensions/assets"; - * const result = encodeInitialize({ - * owner: ..., - * router: ..., - * rewardLocker: ..., - * airdrop: ..., - * }); - * ``` - */ -export function encodeInitialize(options: InitializeParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeInitializeParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "initialize" function on the contract. - * @param options - The options for the "initialize" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { initialize } from "thirdweb/extensions/assets"; - * - * const transaction = initialize({ - * contract, - * owner: ..., - * router: ..., - * rewardLocker: ..., - * airdrop: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function initialize( - options: BaseTransactionOptions< - | InitializeParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.owner, - resolvedOptions.router, - resolvedOptions.rewardLocker, - resolvedOptions.airdrop, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts deleted file mode 100644 index 6b9b9db57a4..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/renounceOwnership.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x715018a6" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `renounceOwnership` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `renounceOwnership` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRenounceOwnershipSupported } from "thirdweb/extensions/assets"; - * - * const supported = isRenounceOwnershipSupported(["0x..."]); - * ``` - */ -export function isRenounceOwnershipSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "renounceOwnership" function on the contract. - * @param options - The options for the "renounceOwnership" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { renounceOwnership } from "thirdweb/extensions/assets"; - * - * const transaction = renounceOwnership(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function renounceOwnership(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts deleted file mode 100644 index 5826bb0ee25..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x25692962" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `requestOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isRequestOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isRequestOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. - * @param options - The options for the "requestOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { requestOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = requestOwnershipHandover(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function requestOwnershipHandover(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts deleted file mode 100644 index 311b8f41143..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/sell.ts +++ /dev/null @@ -1,191 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "sell" function. - */ -export type SellParams = WithOverrides<{ - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; - params: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "params"; - components: [ - { type: "address"; name: "recipient" }, - { type: "address"; name: "tokenOut" }, - { type: "uint256"; name: "amountIn" }, - { type: "uint256"; name: "minAmountOut" }, - { type: "uint256"; name: "deadline" }, - { type: "bytes"; name: "hookData" }, - ]; - }>; -}>; - -export const FN_SELECTOR = "0xfbc84f15" as const; -const FN_INPUTS = [ - { - type: "address", - name: "asset", - }, - { - type: "tuple", - name: "params", - components: [ - { - type: "address", - name: "recipient", - }, - { - type: "address", - name: "tokenOut", - }, - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "minAmountOut", - }, - { - type: "uint256", - name: "deadline", - }, - { - type: "bytes", - name: "hookData", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "amountOut", - }, -] as const; - -/** - * Checks if the `sell` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `sell` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSellSupported } from "thirdweb/extensions/assets"; - * - * const supported = isSellSupported(["0x..."]); - * ``` - */ -export function isSellSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "sell" function. - * @param options - The options for the sell function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSellParams } from "thirdweb/extensions/assets"; - * const result = encodeSellParams({ - * asset: ..., - * params: ..., - * }); - * ``` - */ -export function encodeSellParams(options: SellParams) { - return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); -} - -/** - * Encodes the "sell" function into a Hex string with its parameters. - * @param options - The options for the sell function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSell } from "thirdweb/extensions/assets"; - * const result = encodeSell({ - * asset: ..., - * params: ..., - * }); - * ``` - */ -export function encodeSell(options: SellParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSellParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "sell" function on the contract. - * @param options - The options for the "sell" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { sell } from "thirdweb/extensions/assets"; - * - * const transaction = sell({ - * contract, - * asset: ..., - * params: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function sell( - options: BaseTransactionOptions< - | SellParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.asset, resolvedOptions.params] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts deleted file mode 100644 index 5045baddf45..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setAirdrop.ts +++ /dev/null @@ -1,139 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "setAirdrop" function. - */ -export type SetAirdropParams = WithOverrides<{ - airdrop: AbiParameterToPrimitiveType<{ type: "address"; name: "airdrop" }>; -}>; - -export const FN_SELECTOR = "0x72820dbc" as const; -const FN_INPUTS = [ - { - type: "address", - name: "airdrop", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `setAirdrop` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `setAirdrop` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSetAirdropSupported } from "thirdweb/extensions/assets"; - * - * const supported = isSetAirdropSupported(["0x..."]); - * ``` - */ -export function isSetAirdropSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "setAirdrop" function. - * @param options - The options for the setAirdrop function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetAirdropParams } from "thirdweb/extensions/assets"; - * const result = encodeSetAirdropParams({ - * airdrop: ..., - * }); - * ``` - */ -export function encodeSetAirdropParams(options: SetAirdropParams) { - return encodeAbiParameters(FN_INPUTS, [options.airdrop]); -} - -/** - * Encodes the "setAirdrop" function into a Hex string with its parameters. - * @param options - The options for the setAirdrop function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetAirdrop } from "thirdweb/extensions/assets"; - * const result = encodeSetAirdrop({ - * airdrop: ..., - * }); - * ``` - */ -export function encodeSetAirdrop(options: SetAirdropParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSetAirdropParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "setAirdrop" function on the contract. - * @param options - The options for the "setAirdrop" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { setAirdrop } from "thirdweb/extensions/assets"; - * - * const transaction = setAirdrop({ - * contract, - * airdrop: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function setAirdrop( - options: BaseTransactionOptions< - | SetAirdropParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.airdrop] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts deleted file mode 100644 index 26f1da040b3..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRewardLocker.ts +++ /dev/null @@ -1,142 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "setRewardLocker" function. - */ -export type SetRewardLockerParams = WithOverrides<{ - rewardLocker: AbiParameterToPrimitiveType<{ - type: "address"; - name: "rewardLocker"; - }>; -}>; - -export const FN_SELECTOR = "0xeb7fb197" as const; -const FN_INPUTS = [ - { - type: "address", - name: "rewardLocker", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `setRewardLocker` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `setRewardLocker` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSetRewardLockerSupported } from "thirdweb/extensions/assets"; - * - * const supported = isSetRewardLockerSupported(["0x..."]); - * ``` - */ -export function isSetRewardLockerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "setRewardLocker" function. - * @param options - The options for the setRewardLocker function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetRewardLockerParams } from "thirdweb/extensions/assets"; - * const result = encodeSetRewardLockerParams({ - * rewardLocker: ..., - * }); - * ``` - */ -export function encodeSetRewardLockerParams(options: SetRewardLockerParams) { - return encodeAbiParameters(FN_INPUTS, [options.rewardLocker]); -} - -/** - * Encodes the "setRewardLocker" function into a Hex string with its parameters. - * @param options - The options for the setRewardLocker function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetRewardLocker } from "thirdweb/extensions/assets"; - * const result = encodeSetRewardLocker({ - * rewardLocker: ..., - * }); - * ``` - */ -export function encodeSetRewardLocker(options: SetRewardLockerParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSetRewardLockerParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "setRewardLocker" function on the contract. - * @param options - The options for the "setRewardLocker" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { setRewardLocker } from "thirdweb/extensions/assets"; - * - * const transaction = setRewardLocker({ - * contract, - * rewardLocker: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function setRewardLocker( - options: BaseTransactionOptions< - | SetRewardLockerParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.rewardLocker] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts deleted file mode 100644 index d9c4892d9d7..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/setRouter.ts +++ /dev/null @@ -1,139 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "setRouter" function. - */ -export type SetRouterParams = WithOverrides<{ - router: AbiParameterToPrimitiveType<{ type: "address"; name: "router" }>; -}>; - -export const FN_SELECTOR = "0xc0d78655" as const; -const FN_INPUTS = [ - { - type: "address", - name: "router", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `setRouter` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `setRouter` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSetRouterSupported } from "thirdweb/extensions/assets"; - * - * const supported = isSetRouterSupported(["0x..."]); - * ``` - */ -export function isSetRouterSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "setRouter" function. - * @param options - The options for the setRouter function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetRouterParams } from "thirdweb/extensions/assets"; - * const result = encodeSetRouterParams({ - * router: ..., - * }); - * ``` - */ -export function encodeSetRouterParams(options: SetRouterParams) { - return encodeAbiParameters(FN_INPUTS, [options.router]); -} - -/** - * Encodes the "setRouter" function into a Hex string with its parameters. - * @param options - The options for the setRouter function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetRouter } from "thirdweb/extensions/assets"; - * const result = encodeSetRouter({ - * router: ..., - * }); - * ``` - */ -export function encodeSetRouter(options: SetRouterParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSetRouterParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "setRouter" function on the contract. - * @param options - The options for the "setRouter" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { setRouter } from "thirdweb/extensions/assets"; - * - * const transaction = setRouter({ - * contract, - * router: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function setRouter( - options: BaseTransactionOptions< - | SetRouterParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.router] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts deleted file mode 100644 index 52e932c37eb..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/transferOwnership.ts +++ /dev/null @@ -1,141 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "transferOwnership" function. - */ -export type TransferOwnershipParams = WithOverrides<{ - newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; -}>; - -export const FN_SELECTOR = "0xf2fde38b" as const; -const FN_INPUTS = [ - { - type: "address", - name: "newOwner", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `transferOwnership` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `transferOwnership` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isTransferOwnershipSupported } from "thirdweb/extensions/assets"; - * - * const supported = isTransferOwnershipSupported(["0x..."]); - * ``` - */ -export function isTransferOwnershipSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "transferOwnership" function. - * @param options - The options for the transferOwnership function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferOwnershipParams } from "thirdweb/extensions/assets"; - * const result = encodeTransferOwnershipParams({ - * newOwner: ..., - * }); - * ``` - */ -export function encodeTransferOwnershipParams( - options: TransferOwnershipParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.newOwner]); -} - -/** - * Encodes the "transferOwnership" function into a Hex string with its parameters. - * @param options - The options for the transferOwnership function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferOwnership } from "thirdweb/extensions/assets"; - * const result = encodeTransferOwnership({ - * newOwner: ..., - * }); - * ``` - */ -export function encodeTransferOwnership(options: TransferOwnershipParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeTransferOwnershipParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "transferOwnership" function on the contract. - * @param options - The options for the "transferOwnership" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { transferOwnership } from "thirdweb/extensions/assets"; - * - * const transaction = transferOwnership({ - * contract, - * newOwner: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function transferOwnership( - options: BaseTransactionOptions< - | TransferOwnershipParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.newOwner] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts deleted file mode 100644 index 673b1ef2dec..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts +++ /dev/null @@ -1,153 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "upgradeToAndCall" function. - */ -export type UpgradeToAndCallParams = WithOverrides<{ - newImplementation: AbiParameterToPrimitiveType<{ - type: "address"; - name: "newImplementation"; - }>; - data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; -}>; - -export const FN_SELECTOR = "0x4f1ef286" as const; -const FN_INPUTS = [ - { - type: "address", - name: "newImplementation", - }, - { - type: "bytes", - name: "data", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `upgradeToAndCall` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `upgradeToAndCall` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isUpgradeToAndCallSupported } from "thirdweb/extensions/assets"; - * - * const supported = isUpgradeToAndCallSupported(["0x..."]); - * ``` - */ -export function isUpgradeToAndCallSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "upgradeToAndCall" function. - * @param options - The options for the upgradeToAndCall function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeUpgradeToAndCallParams } from "thirdweb/extensions/assets"; - * const result = encodeUpgradeToAndCallParams({ - * newImplementation: ..., - * data: ..., - * }); - * ``` - */ -export function encodeUpgradeToAndCallParams(options: UpgradeToAndCallParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.newImplementation, - options.data, - ]); -} - -/** - * Encodes the "upgradeToAndCall" function into a Hex string with its parameters. - * @param options - The options for the upgradeToAndCall function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeUpgradeToAndCall } from "thirdweb/extensions/assets"; - * const result = encodeUpgradeToAndCall({ - * newImplementation: ..., - * data: ..., - * }); - * ``` - */ -export function encodeUpgradeToAndCall(options: UpgradeToAndCallParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeUpgradeToAndCallParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "upgradeToAndCall" function on the contract. - * @param options - The options for the "upgradeToAndCall" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { upgradeToAndCall } from "thirdweb/extensions/assets"; - * - * const transaction = upgradeToAndCall({ - * contract, - * newImplementation: ..., - * data: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function upgradeToAndCall( - options: BaseTransactionOptions< - | UpgradeToAndCallParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.newImplementation, resolvedOptions.data] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts deleted file mode 100644 index ce7b1c6f4df..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdated.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "FeeConfigUpdated" event. - */ -export type FeeConfigUpdatedEventFilters = Partial<{ - target: AbiParameterToPrimitiveType<{ - type: "address"; - name: "target"; - indexed: true; - }>; - action: AbiParameterToPrimitiveType<{ - type: "bytes4"; - name: "action"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the FeeConfigUpdated event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { feeConfigUpdatedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * feeConfigUpdatedEvent({ - * target: ..., - * action: ..., - * }) - * ], - * }); - * ``` - */ -export function feeConfigUpdatedEvent( - filters: FeeConfigUpdatedEventFilters = {}, -) { - return prepareEvent({ - signature: - "event FeeConfigUpdated(address indexed target, bytes4 indexed action, address recipient, uint8 feeType, uint256 value)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts deleted file mode 100644 index ac6938b7351..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts +++ /dev/null @@ -1,55 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "FeeConfigUpdatedBySignature" event. - */ -export type FeeConfigUpdatedBySignatureEventFilters = Partial<{ - signer: AbiParameterToPrimitiveType<{ - type: "address"; - name: "signer"; - indexed: true; - }>; - target: AbiParameterToPrimitiveType<{ - type: "address"; - name: "target"; - indexed: true; - }>; - action: AbiParameterToPrimitiveType<{ - type: "bytes4"; - name: "action"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the FeeConfigUpdatedBySignature event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { feeConfigUpdatedBySignatureEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * feeConfigUpdatedBySignatureEvent({ - * signer: ..., - * target: ..., - * action: ..., - * }) - * ], - * }); - * ``` - */ -export function feeConfigUpdatedBySignatureEvent( - filters: FeeConfigUpdatedBySignatureEventFilters = {}, -) { - return prepareEvent({ - signature: - "event FeeConfigUpdatedBySignature(address indexed signer, address indexed target, bytes4 indexed action, address recipient, uint8 feeType, uint256 value)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeRecipientUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeRecipientUpdated.ts deleted file mode 100644 index bf300bbf21a..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/FeeRecipientUpdated.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the FeeRecipientUpdated event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { feeRecipientUpdatedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * feeRecipientUpdatedEvent() - * ], - * }); - * ``` - */ -export function feeRecipientUpdatedEvent() { - return prepareEvent({ - signature: "event FeeRecipientUpdated(address feeRecipient)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts deleted file mode 100644 index 326928983b5..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipHandoverCanceled" event. - */ -export type OwnershipHandoverCanceledEventFilters = Partial<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipHandoverCanceled event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipHandoverCanceledEvent({ - * pendingOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipHandoverCanceledEvent( - filters: OwnershipHandoverCanceledEventFilters = {}, -) { - return prepareEvent({ - signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts deleted file mode 100644 index b7e8608233d..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipHandoverRequested.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipHandoverRequested" event. - */ -export type OwnershipHandoverRequestedEventFilters = Partial<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipHandoverRequested event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipHandoverRequestedEvent({ - * pendingOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipHandoverRequestedEvent( - filters: OwnershipHandoverRequestedEventFilters = {}, -) { - return prepareEvent({ - signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts deleted file mode 100644 index b97cc481307..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/OwnershipTransferred.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipTransferred" event. - */ -export type OwnershipTransferredEventFilters = Partial<{ - oldOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "oldOwner"; - indexed: true; - }>; - newOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "newOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipTransferred event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipTransferredEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipTransferredEvent({ - * oldOwner: ..., - * newOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipTransferredEvent( - filters: OwnershipTransferredEventFilters = {}, -) { - return prepareEvent({ - signature: - "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts deleted file mode 100644 index 8af28f86cda..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/events/RolesUpdated.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "RolesUpdated" event. - */ -export type RolesUpdatedEventFilters = Partial<{ - user: AbiParameterToPrimitiveType<{ - type: "address"; - name: "user"; - indexed: true; - }>; - roles: AbiParameterToPrimitiveType<{ - type: "uint256"; - name: "roles"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the RolesUpdated event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { rolesUpdatedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * rolesUpdatedEvent({ - * user: ..., - * roles: ..., - * }) - * ], - * }); - * ``` - */ -export function rolesUpdatedEvent(filters: RolesUpdatedEventFilters = {}) { - return prepareEvent({ - signature: - "event RolesUpdated(address indexed user, uint256 indexed roles)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts deleted file mode 100644 index d97a44b8e6a..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x99ba5936" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - }, -] as const; - -/** - * Checks if the `ROLE_FEE_MANAGER` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `ROLE_FEE_MANAGER` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isROLE_FEE_MANAGERSupported } from "thirdweb/extensions/assets"; - * const supported = isROLE_FEE_MANAGERSupported(["0x..."]); - * ``` - */ -export function isROLE_FEE_MANAGERSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the ROLE_FEE_MANAGER function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeROLE_FEE_MANAGERResult } from "thirdweb/extensions/assets"; - * const result = decodeROLE_FEE_MANAGERResultResult("..."); - * ``` - */ -export function decodeROLE_FEE_MANAGERResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "ROLE_FEE_MANAGER" function on the contract. - * @param options - The options for the ROLE_FEE_MANAGER function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { ROLE_FEE_MANAGER } from "thirdweb/extensions/assets"; - * - * const result = await ROLE_FEE_MANAGER({ - * contract, - * }); - * - * ``` - */ -export async function ROLE_FEE_MANAGER(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts deleted file mode 100644 index 5e88bc93e4f..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/calculateFee.ts +++ /dev/null @@ -1,167 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "calculateFee" function. - */ -export type CalculateFeeParams = { - payer: AbiParameterToPrimitiveType<{ type: "address"; name: "payer" }>; - action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; - amount: AbiParameterToPrimitiveType<{ type: "uint256"; name: "amount" }>; - maxFeeAmount: AbiParameterToPrimitiveType<{ - type: "uint256"; - name: "maxFeeAmount"; - }>; -}; - -export const FN_SELECTOR = "0x69588801" as const; -const FN_INPUTS = [ - { - type: "address", - name: "payer", - }, - { - type: "bytes4", - name: "action", - }, - { - type: "uint256", - name: "amount", - }, - { - type: "uint256", - name: "maxFeeAmount", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "recipient", - }, - { - type: "uint256", - name: "feeAmount", - }, -] as const; - -/** - * Checks if the `calculateFee` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `calculateFee` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCalculateFeeSupported } from "thirdweb/extensions/assets"; - * const supported = isCalculateFeeSupported(["0x..."]); - * ``` - */ -export function isCalculateFeeSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "calculateFee" function. - * @param options - The options for the calculateFee function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeCalculateFeeParams } from "thirdweb/extensions/assets"; - * const result = encodeCalculateFeeParams({ - * payer: ..., - * action: ..., - * amount: ..., - * maxFeeAmount: ..., - * }); - * ``` - */ -export function encodeCalculateFeeParams(options: CalculateFeeParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.payer, - options.action, - options.amount, - options.maxFeeAmount, - ]); -} - -/** - * Encodes the "calculateFee" function into a Hex string with its parameters. - * @param options - The options for the calculateFee function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeCalculateFee } from "thirdweb/extensions/assets"; - * const result = encodeCalculateFee({ - * payer: ..., - * action: ..., - * amount: ..., - * maxFeeAmount: ..., - * }); - * ``` - */ -export function encodeCalculateFee(options: CalculateFeeParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeCalculateFeeParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the calculateFee function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeCalculateFeeResult } from "thirdweb/extensions/assets"; - * const result = decodeCalculateFeeResultResult("..."); - * ``` - */ -export function decodeCalculateFeeResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result); -} - -/** - * Calls the "calculateFee" function on the contract. - * @param options - The options for the calculateFee function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { calculateFee } from "thirdweb/extensions/assets"; - * - * const result = await calculateFee({ - * contract, - * payer: ..., - * action: ..., - * amount: ..., - * maxFeeAmount: ..., - * }); - * - * ``` - */ -export async function calculateFee( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [ - options.payer, - options.action, - options.amount, - options.maxFeeAmount, - ], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts deleted file mode 100644 index ba2ff26a9e3..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/domainSeparator.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0xf698da25" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "bytes32", - }, -] as const; - -/** - * Checks if the `domainSeparator` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `domainSeparator` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isDomainSeparatorSupported } from "thirdweb/extensions/assets"; - * const supported = isDomainSeparatorSupported(["0x..."]); - * ``` - */ -export function isDomainSeparatorSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the domainSeparator function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeDomainSeparatorResult } from "thirdweb/extensions/assets"; - * const result = decodeDomainSeparatorResultResult("..."); - * ``` - */ -export function decodeDomainSeparatorResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "domainSeparator" function on the contract. - * @param options - The options for the domainSeparator function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { domainSeparator } from "thirdweb/extensions/assets"; - * - * const result = await domainSeparator({ - * contract, - * }); - * - * ``` - */ -export async function domainSeparator(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts deleted file mode 100644 index 421de432c4d..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/eip712Domain.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x84b0196e" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "bytes1", - name: "fields", - }, - { - type: "string", - name: "name", - }, - { - type: "string", - name: "version", - }, - { - type: "uint256", - name: "chainId", - }, - { - type: "address", - name: "verifyingContract", - }, - { - type: "bytes32", - name: "salt", - }, - { - type: "uint256[]", - name: "extensions", - }, -] as const; - -/** - * Checks if the `eip712Domain` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `eip712Domain` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isEip712DomainSupported } from "thirdweb/extensions/assets"; - * const supported = isEip712DomainSupported(["0x..."]); - * ``` - */ -export function isEip712DomainSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the eip712Domain function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeEip712DomainResult } from "thirdweb/extensions/assets"; - * const result = decodeEip712DomainResultResult("..."); - * ``` - */ -export function decodeEip712DomainResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result); -} - -/** - * Calls the "eip712Domain" function on the contract. - * @param options - The options for the eip712Domain function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { eip712Domain } from "thirdweb/extensions/assets"; - * - * const result = await eip712Domain({ - * contract, - * }); - * - * ``` - */ -export async function eip712Domain(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts deleted file mode 100644 index 74d6941aef1..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeConfigs.ts +++ /dev/null @@ -1,142 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "feeConfigs" function. - */ -export type FeeConfigsParams = { - target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; - action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; -}; - -export const FN_SELECTOR = "0x758515e1" as const; -const FN_INPUTS = [ - { - type: "address", - name: "target", - }, - { - type: "bytes4", - name: "action", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "recipient", - }, - { - type: "uint8", - name: "feeType", - }, - { - type: "uint256", - name: "value", - }, -] as const; - -/** - * Checks if the `feeConfigs` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `feeConfigs` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isFeeConfigsSupported } from "thirdweb/extensions/assets"; - * const supported = isFeeConfigsSupported(["0x..."]); - * ``` - */ -export function isFeeConfigsSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "feeConfigs" function. - * @param options - The options for the feeConfigs function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeFeeConfigsParams } from "thirdweb/extensions/assets"; - * const result = encodeFeeConfigsParams({ - * target: ..., - * action: ..., - * }); - * ``` - */ -export function encodeFeeConfigsParams(options: FeeConfigsParams) { - return encodeAbiParameters(FN_INPUTS, [options.target, options.action]); -} - -/** - * Encodes the "feeConfigs" function into a Hex string with its parameters. - * @param options - The options for the feeConfigs function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeFeeConfigs } from "thirdweb/extensions/assets"; - * const result = encodeFeeConfigs({ - * target: ..., - * action: ..., - * }); - * ``` - */ -export function encodeFeeConfigs(options: FeeConfigsParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeFeeConfigsParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the feeConfigs function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeFeeConfigsResult } from "thirdweb/extensions/assets"; - * const result = decodeFeeConfigsResultResult("..."); - * ``` - */ -export function decodeFeeConfigsResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result); -} - -/** - * Calls the "feeConfigs" function on the contract. - * @param options - The options for the feeConfigs function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { feeConfigs } from "thirdweb/extensions/assets"; - * - * const result = await feeConfigs({ - * contract, - * target: ..., - * action: ..., - * }); - * - * ``` - */ -export async function feeConfigs( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.target, options.action], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts deleted file mode 100644 index bb5a72deae6..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/feeRecipient.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x46904840" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - }, -] as const; - -/** - * Checks if the `feeRecipient` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `feeRecipient` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isFeeRecipientSupported } from "thirdweb/extensions/assets"; - * const supported = isFeeRecipientSupported(["0x..."]); - * ``` - */ -export function isFeeRecipientSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the feeRecipient function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeFeeRecipientResult } from "thirdweb/extensions/assets"; - * const result = decodeFeeRecipientResultResult("..."); - * ``` - */ -export function decodeFeeRecipientResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "feeRecipient" function on the contract. - * @param options - The options for the feeRecipient function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { feeRecipient } from "thirdweb/extensions/assets"; - * - * const result = await feeRecipient({ - * contract, - * }); - * - * ``` - */ -export async function feeRecipient(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts deleted file mode 100644 index d281419863f..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/getFeeConfig.ts +++ /dev/null @@ -1,148 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "getFeeConfig" function. - */ -export type GetFeeConfigParams = { - target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; - action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; -}; - -export const FN_SELECTOR = "0x17305ee1" as const; -const FN_INPUTS = [ - { - type: "address", - name: "target", - }, - { - type: "bytes4", - name: "action", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "tuple", - name: "config", - components: [ - { - type: "address", - name: "recipient", - }, - { - type: "uint8", - name: "feeType", - }, - { - type: "uint256", - name: "value", - }, - ], - }, -] as const; - -/** - * Checks if the `getFeeConfig` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `getFeeConfig` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isGetFeeConfigSupported } from "thirdweb/extensions/assets"; - * const supported = isGetFeeConfigSupported(["0x..."]); - * ``` - */ -export function isGetFeeConfigSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "getFeeConfig" function. - * @param options - The options for the getFeeConfig function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeGetFeeConfigParams } from "thirdweb/extensions/assets"; - * const result = encodeGetFeeConfigParams({ - * target: ..., - * action: ..., - * }); - * ``` - */ -export function encodeGetFeeConfigParams(options: GetFeeConfigParams) { - return encodeAbiParameters(FN_INPUTS, [options.target, options.action]); -} - -/** - * Encodes the "getFeeConfig" function into a Hex string with its parameters. - * @param options - The options for the getFeeConfig function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeGetFeeConfig } from "thirdweb/extensions/assets"; - * const result = encodeGetFeeConfig({ - * target: ..., - * action: ..., - * }); - * ``` - */ -export function encodeGetFeeConfig(options: GetFeeConfigParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeGetFeeConfigParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the getFeeConfig function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeGetFeeConfigResult } from "thirdweb/extensions/assets"; - * const result = decodeGetFeeConfigResultResult("..."); - * ``` - */ -export function decodeGetFeeConfigResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "getFeeConfig" function on the contract. - * @param options - The options for the getFeeConfig function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { getFeeConfig } from "thirdweb/extensions/assets"; - * - * const result = await getFeeConfig({ - * contract, - * target: ..., - * action: ..., - * }); - * - * ``` - */ -export async function getFeeConfig( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.target, options.action], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts deleted file mode 100644 index 818afa6bdad..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAllRoles.ts +++ /dev/null @@ -1,133 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "hasAllRoles" function. - */ -export type HasAllRolesParams = { - user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; - roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; -}; - -export const FN_SELECTOR = "0x1cd64df4" as const; -const FN_INPUTS = [ - { - type: "address", - name: "user", - }, - { - type: "uint256", - name: "roles", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "bool", - }, -] as const; - -/** - * Checks if the `hasAllRoles` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `hasAllRoles` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isHasAllRolesSupported } from "thirdweb/extensions/assets"; - * const supported = isHasAllRolesSupported(["0x..."]); - * ``` - */ -export function isHasAllRolesSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "hasAllRoles" function. - * @param options - The options for the hasAllRoles function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeHasAllRolesParams } from "thirdweb/extensions/assets"; - * const result = encodeHasAllRolesParams({ - * user: ..., - * roles: ..., - * }); - * ``` - */ -export function encodeHasAllRolesParams(options: HasAllRolesParams) { - return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); -} - -/** - * Encodes the "hasAllRoles" function into a Hex string with its parameters. - * @param options - The options for the hasAllRoles function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeHasAllRoles } from "thirdweb/extensions/assets"; - * const result = encodeHasAllRoles({ - * user: ..., - * roles: ..., - * }); - * ``` - */ -export function encodeHasAllRoles(options: HasAllRolesParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeHasAllRolesParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the hasAllRoles function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeHasAllRolesResult } from "thirdweb/extensions/assets"; - * const result = decodeHasAllRolesResultResult("..."); - * ``` - */ -export function decodeHasAllRolesResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "hasAllRoles" function on the contract. - * @param options - The options for the hasAllRoles function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { hasAllRoles } from "thirdweb/extensions/assets"; - * - * const result = await hasAllRoles({ - * contract, - * user: ..., - * roles: ..., - * }); - * - * ``` - */ -export async function hasAllRoles( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.user, options.roles], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts deleted file mode 100644 index 95991a7c780..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/hasAnyRole.ts +++ /dev/null @@ -1,133 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "hasAnyRole" function. - */ -export type HasAnyRoleParams = { - user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; - roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; -}; - -export const FN_SELECTOR = "0x514e62fc" as const; -const FN_INPUTS = [ - { - type: "address", - name: "user", - }, - { - type: "uint256", - name: "roles", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "bool", - }, -] as const; - -/** - * Checks if the `hasAnyRole` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `hasAnyRole` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isHasAnyRoleSupported } from "thirdweb/extensions/assets"; - * const supported = isHasAnyRoleSupported(["0x..."]); - * ``` - */ -export function isHasAnyRoleSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "hasAnyRole" function. - * @param options - The options for the hasAnyRole function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeHasAnyRoleParams } from "thirdweb/extensions/assets"; - * const result = encodeHasAnyRoleParams({ - * user: ..., - * roles: ..., - * }); - * ``` - */ -export function encodeHasAnyRoleParams(options: HasAnyRoleParams) { - return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); -} - -/** - * Encodes the "hasAnyRole" function into a Hex string with its parameters. - * @param options - The options for the hasAnyRole function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeHasAnyRole } from "thirdweb/extensions/assets"; - * const result = encodeHasAnyRole({ - * user: ..., - * roles: ..., - * }); - * ``` - */ -export function encodeHasAnyRole(options: HasAnyRoleParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeHasAnyRoleParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the hasAnyRole function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeHasAnyRoleResult } from "thirdweb/extensions/assets"; - * const result = decodeHasAnyRoleResultResult("..."); - * ``` - */ -export function decodeHasAnyRoleResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "hasAnyRole" function on the contract. - * @param options - The options for the hasAnyRole function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { hasAnyRole } from "thirdweb/extensions/assets"; - * - * const result = await hasAnyRole({ - * contract, - * user: ..., - * roles: ..., - * }); - * - * ``` - */ -export async function hasAnyRole( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.user, options.roles], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts deleted file mode 100644 index 9a497818fa5..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/owner.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x8da5cb5b" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "result", - }, -] as const; - -/** - * Checks if the `owner` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `owner` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isOwnerSupported } from "thirdweb/extensions/assets"; - * const supported = isOwnerSupported(["0x..."]); - * ``` - */ -export function isOwnerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the owner function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeOwnerResult } from "thirdweb/extensions/assets"; - * const result = decodeOwnerResultResult("..."); - * ``` - */ -export function decodeOwnerResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "owner" function on the contract. - * @param options - The options for the owner function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { owner } from "thirdweb/extensions/assets"; - * - * const result = await owner({ - * contract, - * }); - * - * ``` - */ -export async function owner(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts deleted file mode 100644 index 48ca2e48867..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts +++ /dev/null @@ -1,135 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "ownershipHandoverExpiresAt" function. - */ -export type OwnershipHandoverExpiresAtParams = { - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - }>; -}; - -export const FN_SELECTOR = "0xfee81cf4" as const; -const FN_INPUTS = [ - { - type: "address", - name: "pendingOwner", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "result", - }, -] as const; - -/** - * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/assets"; - * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); - * ``` - */ -export function isOwnershipHandoverExpiresAtSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "ownershipHandoverExpiresAt" function. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/assets"; - * const result = encodeOwnershipHandoverExpiresAtParams({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeOwnershipHandoverExpiresAtParams( - options: OwnershipHandoverExpiresAtParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); -} - -/** - * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/assets"; - * const result = encodeOwnershipHandoverExpiresAt({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeOwnershipHandoverExpiresAt( - options: OwnershipHandoverExpiresAtParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeOwnershipHandoverExpiresAtParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the ownershipHandoverExpiresAt function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/assets"; - * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); - * ``` - */ -export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "ownershipHandoverExpiresAt" function on the contract. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/assets"; - * - * const result = await ownershipHandoverExpiresAt({ - * contract, - * pendingOwner: ..., - * }); - * - * ``` - */ -export async function ownershipHandoverExpiresAt( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.pendingOwner], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts deleted file mode 100644 index 0a4a956a84e..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/rolesOf.ts +++ /dev/null @@ -1,122 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "rolesOf" function. - */ -export type RolesOfParams = { - user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; -}; - -export const FN_SELECTOR = "0x2de94807" as const; -const FN_INPUTS = [ - { - type: "address", - name: "user", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "roles", - }, -] as const; - -/** - * Checks if the `rolesOf` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `rolesOf` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRolesOfSupported } from "thirdweb/extensions/assets"; - * const supported = isRolesOfSupported(["0x..."]); - * ``` - */ -export function isRolesOfSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "rolesOf" function. - * @param options - The options for the rolesOf function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeRolesOfParams } from "thirdweb/extensions/assets"; - * const result = encodeRolesOfParams({ - * user: ..., - * }); - * ``` - */ -export function encodeRolesOfParams(options: RolesOfParams) { - return encodeAbiParameters(FN_INPUTS, [options.user]); -} - -/** - * Encodes the "rolesOf" function into a Hex string with its parameters. - * @param options - The options for the rolesOf function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeRolesOf } from "thirdweb/extensions/assets"; - * const result = encodeRolesOf({ - * user: ..., - * }); - * ``` - */ -export function encodeRolesOf(options: RolesOfParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeRolesOfParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the rolesOf function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeRolesOfResult } from "thirdweb/extensions/assets"; - * const result = decodeRolesOfResultResult("..."); - * ``` - */ -export function decodeRolesOfResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "rolesOf" function on the contract. - * @param options - The options for the rolesOf function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { rolesOf } from "thirdweb/extensions/assets"; - * - * const result = await rolesOf({ - * contract, - * user: ..., - * }); - * - * ``` - */ -export async function rolesOf(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.user], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts deleted file mode 100644 index 99db4913098..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/read/usedNonces.ts +++ /dev/null @@ -1,129 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "usedNonces" function. - */ -export type UsedNoncesParams = { - signerNonce: AbiParameterToPrimitiveType<{ - type: "bytes32"; - name: "signerNonce"; - }>; -}; - -export const FN_SELECTOR = "0xfeb61724" as const; -const FN_INPUTS = [ - { - type: "bytes32", - name: "signerNonce", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "bool", - name: "used", - }, -] as const; - -/** - * Checks if the `usedNonces` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `usedNonces` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isUsedNoncesSupported } from "thirdweb/extensions/assets"; - * const supported = isUsedNoncesSupported(["0x..."]); - * ``` - */ -export function isUsedNoncesSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "usedNonces" function. - * @param options - The options for the usedNonces function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeUsedNoncesParams } from "thirdweb/extensions/assets"; - * const result = encodeUsedNoncesParams({ - * signerNonce: ..., - * }); - * ``` - */ -export function encodeUsedNoncesParams(options: UsedNoncesParams) { - return encodeAbiParameters(FN_INPUTS, [options.signerNonce]); -} - -/** - * Encodes the "usedNonces" function into a Hex string with its parameters. - * @param options - The options for the usedNonces function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeUsedNonces } from "thirdweb/extensions/assets"; - * const result = encodeUsedNonces({ - * signerNonce: ..., - * }); - * ``` - */ -export function encodeUsedNonces(options: UsedNoncesParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeUsedNoncesParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the usedNonces function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeUsedNoncesResult } from "thirdweb/extensions/assets"; - * const result = decodeUsedNoncesResultResult("..."); - * ``` - */ -export function decodeUsedNoncesResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "usedNonces" function on the contract. - * @param options - The options for the usedNonces function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { usedNonces } from "thirdweb/extensions/assets"; - * - * const result = await usedNonces({ - * contract, - * signerNonce: ..., - * }); - * - * ``` - */ -export async function usedNonces( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.signerNonce], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts deleted file mode 100644 index 89b15b8c239..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/cancelOwnershipHandover.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x54d1f13d" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `cancelOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCancelOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isCancelOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. - * @param options - The options for the "cancelOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { cancelOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = cancelOwnershipHandover(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function cancelOwnershipHandover(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts deleted file mode 100644 index b4cdc7364a8..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/completeOwnershipHandover.ts +++ /dev/null @@ -1,148 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "completeOwnershipHandover" function. - */ -export type CompleteOwnershipHandoverParams = WithOverrides<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - }>; -}>; - -export const FN_SELECTOR = "0xf04e283e" as const; -const FN_INPUTS = [ - { - type: "address", - name: "pendingOwner", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `completeOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isCompleteOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "completeOwnershipHandover" function. - * @param options - The options for the completeOwnershipHandover function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/assets"; - * const result = encodeCompleteOwnershipHandoverParams({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeCompleteOwnershipHandoverParams( - options: CompleteOwnershipHandoverParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); -} - -/** - * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. - * @param options - The options for the completeOwnershipHandover function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/assets"; - * const result = encodeCompleteOwnershipHandover({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeCompleteOwnershipHandover( - options: CompleteOwnershipHandoverParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeCompleteOwnershipHandoverParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. - * @param options - The options for the "completeOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { completeOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = completeOwnershipHandover({ - * contract, - * pendingOwner: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function completeOwnershipHandover( - options: BaseTransactionOptions< - | CompleteOwnershipHandoverParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.pendingOwner] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts deleted file mode 100644 index 84020071e34..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/grantRoles.ts +++ /dev/null @@ -1,147 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "grantRoles" function. - */ -export type GrantRolesParams = WithOverrides<{ - user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; - roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; -}>; - -export const FN_SELECTOR = "0x1c10893f" as const; -const FN_INPUTS = [ - { - type: "address", - name: "user", - }, - { - type: "uint256", - name: "roles", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `grantRoles` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `grantRoles` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isGrantRolesSupported } from "thirdweb/extensions/assets"; - * - * const supported = isGrantRolesSupported(["0x..."]); - * ``` - */ -export function isGrantRolesSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "grantRoles" function. - * @param options - The options for the grantRoles function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeGrantRolesParams } from "thirdweb/extensions/assets"; - * const result = encodeGrantRolesParams({ - * user: ..., - * roles: ..., - * }); - * ``` - */ -export function encodeGrantRolesParams(options: GrantRolesParams) { - return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); -} - -/** - * Encodes the "grantRoles" function into a Hex string with its parameters. - * @param options - The options for the grantRoles function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeGrantRoles } from "thirdweb/extensions/assets"; - * const result = encodeGrantRoles({ - * user: ..., - * roles: ..., - * }); - * ``` - */ -export function encodeGrantRoles(options: GrantRolesParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeGrantRolesParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "grantRoles" function on the contract. - * @param options - The options for the "grantRoles" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { grantRoles } from "thirdweb/extensions/assets"; - * - * const transaction = grantRoles({ - * contract, - * user: ..., - * roles: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function grantRoles( - options: BaseTransactionOptions< - | GrantRolesParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.user, resolvedOptions.roles] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts deleted file mode 100644 index 6b9b9db57a4..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceOwnership.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x715018a6" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `renounceOwnership` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `renounceOwnership` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRenounceOwnershipSupported } from "thirdweb/extensions/assets"; - * - * const supported = isRenounceOwnershipSupported(["0x..."]); - * ``` - */ -export function isRenounceOwnershipSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "renounceOwnership" function on the contract. - * @param options - The options for the "renounceOwnership" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { renounceOwnership } from "thirdweb/extensions/assets"; - * - * const transaction = renounceOwnership(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function renounceOwnership(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts deleted file mode 100644 index c25e20d6c27..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/renounceRoles.ts +++ /dev/null @@ -1,139 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "renounceRoles" function. - */ -export type RenounceRolesParams = WithOverrides<{ - roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; -}>; - -export const FN_SELECTOR = "0x183a4f6e" as const; -const FN_INPUTS = [ - { - type: "uint256", - name: "roles", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `renounceRoles` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `renounceRoles` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRenounceRolesSupported } from "thirdweb/extensions/assets"; - * - * const supported = isRenounceRolesSupported(["0x..."]); - * ``` - */ -export function isRenounceRolesSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "renounceRoles" function. - * @param options - The options for the renounceRoles function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeRenounceRolesParams } from "thirdweb/extensions/assets"; - * const result = encodeRenounceRolesParams({ - * roles: ..., - * }); - * ``` - */ -export function encodeRenounceRolesParams(options: RenounceRolesParams) { - return encodeAbiParameters(FN_INPUTS, [options.roles]); -} - -/** - * Encodes the "renounceRoles" function into a Hex string with its parameters. - * @param options - The options for the renounceRoles function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeRenounceRoles } from "thirdweb/extensions/assets"; - * const result = encodeRenounceRoles({ - * roles: ..., - * }); - * ``` - */ -export function encodeRenounceRoles(options: RenounceRolesParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeRenounceRolesParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "renounceRoles" function on the contract. - * @param options - The options for the "renounceRoles" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { renounceRoles } from "thirdweb/extensions/assets"; - * - * const transaction = renounceRoles({ - * contract, - * roles: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function renounceRoles( - options: BaseTransactionOptions< - | RenounceRolesParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.roles] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts deleted file mode 100644 index 5826bb0ee25..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/requestOwnershipHandover.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x25692962" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `requestOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isRequestOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isRequestOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. - * @param options - The options for the "requestOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { requestOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = requestOwnershipHandover(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function requestOwnershipHandover(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts deleted file mode 100644 index 345883da046..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/revokeRoles.ts +++ /dev/null @@ -1,147 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "revokeRoles" function. - */ -export type RevokeRolesParams = WithOverrides<{ - user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; - roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; -}>; - -export const FN_SELECTOR = "0x4a4ee7b1" as const; -const FN_INPUTS = [ - { - type: "address", - name: "user", - }, - { - type: "uint256", - name: "roles", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `revokeRoles` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `revokeRoles` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRevokeRolesSupported } from "thirdweb/extensions/assets"; - * - * const supported = isRevokeRolesSupported(["0x..."]); - * ``` - */ -export function isRevokeRolesSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "revokeRoles" function. - * @param options - The options for the revokeRoles function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeRevokeRolesParams } from "thirdweb/extensions/assets"; - * const result = encodeRevokeRolesParams({ - * user: ..., - * roles: ..., - * }); - * ``` - */ -export function encodeRevokeRolesParams(options: RevokeRolesParams) { - return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); -} - -/** - * Encodes the "revokeRoles" function into a Hex string with its parameters. - * @param options - The options for the revokeRoles function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeRevokeRoles } from "thirdweb/extensions/assets"; - * const result = encodeRevokeRoles({ - * user: ..., - * roles: ..., - * }); - * ``` - */ -export function encodeRevokeRoles(options: RevokeRolesParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeRevokeRolesParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "revokeRoles" function on the contract. - * @param options - The options for the "revokeRoles" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { revokeRoles } from "thirdweb/extensions/assets"; - * - * const transaction = revokeRoles({ - * contract, - * user: ..., - * roles: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function revokeRoles( - options: BaseTransactionOptions< - | RevokeRolesParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.user, resolvedOptions.roles] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts deleted file mode 100644 index 8b10233558e..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfig.ts +++ /dev/null @@ -1,163 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "setFeeConfig" function. - */ -export type SetFeeConfigParams = WithOverrides<{ - action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; - feeType: AbiParameterToPrimitiveType<{ type: "uint8"; name: "feeType" }>; - value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; -}>; - -export const FN_SELECTOR = "0x636d2be9" as const; -const FN_INPUTS = [ - { - type: "bytes4", - name: "action", - }, - { - type: "uint8", - name: "feeType", - }, - { - type: "uint256", - name: "value", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `setFeeConfig` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `setFeeConfig` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSetFeeConfigSupported } from "thirdweb/extensions/assets"; - * - * const supported = isSetFeeConfigSupported(["0x..."]); - * ``` - */ -export function isSetFeeConfigSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "setFeeConfig" function. - * @param options - The options for the setFeeConfig function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetFeeConfigParams } from "thirdweb/extensions/assets"; - * const result = encodeSetFeeConfigParams({ - * action: ..., - * feeType: ..., - * value: ..., - * }); - * ``` - */ -export function encodeSetFeeConfigParams(options: SetFeeConfigParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.action, - options.feeType, - options.value, - ]); -} - -/** - * Encodes the "setFeeConfig" function into a Hex string with its parameters. - * @param options - The options for the setFeeConfig function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetFeeConfig } from "thirdweb/extensions/assets"; - * const result = encodeSetFeeConfig({ - * action: ..., - * feeType: ..., - * value: ..., - * }); - * ``` - */ -export function encodeSetFeeConfig(options: SetFeeConfigParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSetFeeConfigParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "setFeeConfig" function on the contract. - * @param options - The options for the "setFeeConfig" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { setFeeConfig } from "thirdweb/extensions/assets"; - * - * const transaction = setFeeConfig({ - * contract, - * action: ..., - * feeType: ..., - * value: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function setFeeConfig( - options: BaseTransactionOptions< - | SetFeeConfigParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.action, - resolvedOptions.feeType, - resolvedOptions.value, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts deleted file mode 100644 index f8e2b8c1f86..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeConfigBySignature.ts +++ /dev/null @@ -1,222 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "setFeeConfigBySignature" function. - */ -export type SetFeeConfigBySignatureParams = WithOverrides<{ - target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; - action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; - recipient: AbiParameterToPrimitiveType<{ - type: "address"; - name: "recipient"; - }>; - feeType: AbiParameterToPrimitiveType<{ type: "uint8"; name: "feeType" }>; - value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; - nonce: AbiParameterToPrimitiveType<{ type: "uint256"; name: "nonce" }>; - deadline: AbiParameterToPrimitiveType<{ type: "uint256"; name: "deadline" }>; - signature: AbiParameterToPrimitiveType<{ type: "bytes"; name: "signature" }>; -}>; - -export const FN_SELECTOR = "0x9ba861e3" as const; -const FN_INPUTS = [ - { - type: "address", - name: "target", - }, - { - type: "bytes4", - name: "action", - }, - { - type: "address", - name: "recipient", - }, - { - type: "uint8", - name: "feeType", - }, - { - type: "uint256", - name: "value", - }, - { - type: "uint256", - name: "nonce", - }, - { - type: "uint256", - name: "deadline", - }, - { - type: "bytes", - name: "signature", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `setFeeConfigBySignature` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `setFeeConfigBySignature` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSetFeeConfigBySignatureSupported } from "thirdweb/extensions/assets"; - * - * const supported = isSetFeeConfigBySignatureSupported(["0x..."]); - * ``` - */ -export function isSetFeeConfigBySignatureSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "setFeeConfigBySignature" function. - * @param options - The options for the setFeeConfigBySignature function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetFeeConfigBySignatureParams } from "thirdweb/extensions/assets"; - * const result = encodeSetFeeConfigBySignatureParams({ - * target: ..., - * action: ..., - * recipient: ..., - * feeType: ..., - * value: ..., - * nonce: ..., - * deadline: ..., - * signature: ..., - * }); - * ``` - */ -export function encodeSetFeeConfigBySignatureParams( - options: SetFeeConfigBySignatureParams, -) { - return encodeAbiParameters(FN_INPUTS, [ - options.target, - options.action, - options.recipient, - options.feeType, - options.value, - options.nonce, - options.deadline, - options.signature, - ]); -} - -/** - * Encodes the "setFeeConfigBySignature" function into a Hex string with its parameters. - * @param options - The options for the setFeeConfigBySignature function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetFeeConfigBySignature } from "thirdweb/extensions/assets"; - * const result = encodeSetFeeConfigBySignature({ - * target: ..., - * action: ..., - * recipient: ..., - * feeType: ..., - * value: ..., - * nonce: ..., - * deadline: ..., - * signature: ..., - * }); - * ``` - */ -export function encodeSetFeeConfigBySignature( - options: SetFeeConfigBySignatureParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSetFeeConfigBySignatureParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "setFeeConfigBySignature" function on the contract. - * @param options - The options for the "setFeeConfigBySignature" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { setFeeConfigBySignature } from "thirdweb/extensions/assets"; - * - * const transaction = setFeeConfigBySignature({ - * contract, - * target: ..., - * action: ..., - * recipient: ..., - * feeType: ..., - * value: ..., - * nonce: ..., - * deadline: ..., - * signature: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function setFeeConfigBySignature( - options: BaseTransactionOptions< - | SetFeeConfigBySignatureParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.target, - resolvedOptions.action, - resolvedOptions.recipient, - resolvedOptions.feeType, - resolvedOptions.value, - resolvedOptions.nonce, - resolvedOptions.deadline, - resolvedOptions.signature, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts deleted file mode 100644 index 9ddc0013590..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setFeeRecipient.ts +++ /dev/null @@ -1,142 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "setFeeRecipient" function. - */ -export type SetFeeRecipientParams = WithOverrides<{ - feeRecipient: AbiParameterToPrimitiveType<{ - type: "address"; - name: "_feeRecipient"; - }>; -}>; - -export const FN_SELECTOR = "0xe74b981b" as const; -const FN_INPUTS = [ - { - type: "address", - name: "_feeRecipient", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `setFeeRecipient` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `setFeeRecipient` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSetFeeRecipientSupported } from "thirdweb/extensions/assets"; - * - * const supported = isSetFeeRecipientSupported(["0x..."]); - * ``` - */ -export function isSetFeeRecipientSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "setFeeRecipient" function. - * @param options - The options for the setFeeRecipient function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetFeeRecipientParams } from "thirdweb/extensions/assets"; - * const result = encodeSetFeeRecipientParams({ - * feeRecipient: ..., - * }); - * ``` - */ -export function encodeSetFeeRecipientParams(options: SetFeeRecipientParams) { - return encodeAbiParameters(FN_INPUTS, [options.feeRecipient]); -} - -/** - * Encodes the "setFeeRecipient" function into a Hex string with its parameters. - * @param options - The options for the setFeeRecipient function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetFeeRecipient } from "thirdweb/extensions/assets"; - * const result = encodeSetFeeRecipient({ - * feeRecipient: ..., - * }); - * ``` - */ -export function encodeSetFeeRecipient(options: SetFeeRecipientParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSetFeeRecipientParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "setFeeRecipient" function on the contract. - * @param options - The options for the "setFeeRecipient" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { setFeeRecipient } from "thirdweb/extensions/assets"; - * - * const transaction = setFeeRecipient({ - * contract, - * feeRecipient: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function setFeeRecipient( - options: BaseTransactionOptions< - | SetFeeRecipientParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.feeRecipient] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts deleted file mode 100644 index 21e8e3afa73..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/setTargetFeeConfig.ts +++ /dev/null @@ -1,188 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "setTargetFeeConfig" function. - */ -export type SetTargetFeeConfigParams = WithOverrides<{ - target: AbiParameterToPrimitiveType<{ type: "address"; name: "target" }>; - action: AbiParameterToPrimitiveType<{ type: "bytes4"; name: "action" }>; - recipient: AbiParameterToPrimitiveType<{ - type: "address"; - name: "recipient"; - }>; - feeType: AbiParameterToPrimitiveType<{ type: "uint8"; name: "feeType" }>; - value: AbiParameterToPrimitiveType<{ type: "uint256"; name: "value" }>; -}>; - -export const FN_SELECTOR = "0xd20caa1a" as const; -const FN_INPUTS = [ - { - type: "address", - name: "target", - }, - { - type: "bytes4", - name: "action", - }, - { - type: "address", - name: "recipient", - }, - { - type: "uint8", - name: "feeType", - }, - { - type: "uint256", - name: "value", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `setTargetFeeConfig` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `setTargetFeeConfig` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSetTargetFeeConfigSupported } from "thirdweb/extensions/assets"; - * - * const supported = isSetTargetFeeConfigSupported(["0x..."]); - * ``` - */ -export function isSetTargetFeeConfigSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "setTargetFeeConfig" function. - * @param options - The options for the setTargetFeeConfig function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetTargetFeeConfigParams } from "thirdweb/extensions/assets"; - * const result = encodeSetTargetFeeConfigParams({ - * target: ..., - * action: ..., - * recipient: ..., - * feeType: ..., - * value: ..., - * }); - * ``` - */ -export function encodeSetTargetFeeConfigParams( - options: SetTargetFeeConfigParams, -) { - return encodeAbiParameters(FN_INPUTS, [ - options.target, - options.action, - options.recipient, - options.feeType, - options.value, - ]); -} - -/** - * Encodes the "setTargetFeeConfig" function into a Hex string with its parameters. - * @param options - The options for the setTargetFeeConfig function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSetTargetFeeConfig } from "thirdweb/extensions/assets"; - * const result = encodeSetTargetFeeConfig({ - * target: ..., - * action: ..., - * recipient: ..., - * feeType: ..., - * value: ..., - * }); - * ``` - */ -export function encodeSetTargetFeeConfig(options: SetTargetFeeConfigParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSetTargetFeeConfigParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "setTargetFeeConfig" function on the contract. - * @param options - The options for the "setTargetFeeConfig" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { setTargetFeeConfig } from "thirdweb/extensions/assets"; - * - * const transaction = setTargetFeeConfig({ - * contract, - * target: ..., - * action: ..., - * recipient: ..., - * feeType: ..., - * value: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function setTargetFeeConfig( - options: BaseTransactionOptions< - | SetTargetFeeConfigParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.target, - resolvedOptions.action, - resolvedOptions.recipient, - resolvedOptions.feeType, - resolvedOptions.value, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts deleted file mode 100644 index 52e932c37eb..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/FeeManager/write/transferOwnership.ts +++ /dev/null @@ -1,141 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "transferOwnership" function. - */ -export type TransferOwnershipParams = WithOverrides<{ - newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; -}>; - -export const FN_SELECTOR = "0xf2fde38b" as const; -const FN_INPUTS = [ - { - type: "address", - name: "newOwner", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `transferOwnership` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `transferOwnership` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isTransferOwnershipSupported } from "thirdweb/extensions/assets"; - * - * const supported = isTransferOwnershipSupported(["0x..."]); - * ``` - */ -export function isTransferOwnershipSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "transferOwnership" function. - * @param options - The options for the transferOwnership function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferOwnershipParams } from "thirdweb/extensions/assets"; - * const result = encodeTransferOwnershipParams({ - * newOwner: ..., - * }); - * ``` - */ -export function encodeTransferOwnershipParams( - options: TransferOwnershipParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.newOwner]); -} - -/** - * Encodes the "transferOwnership" function into a Hex string with its parameters. - * @param options - The options for the transferOwnership function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferOwnership } from "thirdweb/extensions/assets"; - * const result = encodeTransferOwnership({ - * newOwner: ..., - * }); - * ``` - */ -export function encodeTransferOwnership(options: TransferOwnershipParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeTransferOwnershipParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "transferOwnership" function on the contract. - * @param options - The options for the "transferOwnership" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { transferOwnership } from "thirdweb/extensions/assets"; - * - * const transaction = transferOwnership({ - * contract, - * newOwner: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function transferOwnership( - options: BaseTransactionOptions< - | TransferOwnershipParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.newOwner] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts deleted file mode 100644 index 65d0888d40d..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/PositionLocked.ts +++ /dev/null @@ -1,47 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "PositionLocked" event. - */ -export type PositionLockedEventFilters = Partial<{ - owner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "owner"; - indexed: true; - }>; - asset: AbiParameterToPrimitiveType<{ - type: "address"; - name: "asset"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the PositionLocked event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { positionLockedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * positionLockedEvent({ - * owner: ..., - * asset: ..., - * }) - * ], - * }); - * ``` - */ -export function positionLockedEvent(filters: PositionLockedEventFilters = {}) { - return prepareEvent({ - signature: - "event PositionLocked(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, address recipient, address referrer)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts deleted file mode 100644 index 4eed15b8769..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/events/RewardCollected.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "RewardCollected" event. - */ -export type RewardCollectedEventFilters = Partial<{ - owner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "owner"; - indexed: true; - }>; - asset: AbiParameterToPrimitiveType<{ - type: "address"; - name: "asset"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the RewardCollected event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { rewardCollectedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * rewardCollectedEvent({ - * owner: ..., - * asset: ..., - * }) - * ], - * }); - * ``` - */ -export function rewardCollectedEvent( - filters: RewardCollectedEventFilters = {}, -) { - return prepareEvent({ - signature: - "event RewardCollected(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, uint256 amount0, uint256 amount1)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts deleted file mode 100644 index c7f3d8dcf25..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/feeManager.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0xd0fb0203" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - }, -] as const; - -/** - * Checks if the `feeManager` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `feeManager` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isFeeManagerSupported } from "thirdweb/extensions/assets"; - * const supported = isFeeManagerSupported(["0x..."]); - * ``` - */ -export function isFeeManagerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the feeManager function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeFeeManagerResult } from "thirdweb/extensions/assets"; - * const result = decodeFeeManagerResultResult("..."); - * ``` - */ -export function decodeFeeManagerResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "feeManager" function on the contract. - * @param options - The options for the feeManager function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { feeManager } from "thirdweb/extensions/assets"; - * - * const result = await feeManager({ - * contract, - * }); - * - * ``` - */ -export async function feeManager(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts deleted file mode 100644 index 4caa2d5af46..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/positions.ts +++ /dev/null @@ -1,150 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "positions" function. - */ -export type PositionsParams = { - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; -}; - -export const FN_SELECTOR = "0x4bd21445" as const; -const FN_INPUTS = [ - { - type: "address", - name: "owner", - }, - { - type: "address", - name: "asset", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "positionManager", - }, - { - type: "uint256", - name: "tokenId", - }, - { - type: "address", - name: "recipient", - }, - { - type: "address", - name: "referrer", - }, - { - type: "uint16", - name: "referrerBps", - }, -] as const; - -/** - * Checks if the `positions` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `positions` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isPositionsSupported } from "thirdweb/extensions/assets"; - * const supported = isPositionsSupported(["0x..."]); - * ``` - */ -export function isPositionsSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "positions" function. - * @param options - The options for the positions function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodePositionsParams } from "thirdweb/extensions/assets"; - * const result = encodePositionsParams({ - * owner: ..., - * asset: ..., - * }); - * ``` - */ -export function encodePositionsParams(options: PositionsParams) { - return encodeAbiParameters(FN_INPUTS, [options.owner, options.asset]); -} - -/** - * Encodes the "positions" function into a Hex string with its parameters. - * @param options - The options for the positions function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodePositions } from "thirdweb/extensions/assets"; - * const result = encodePositions({ - * owner: ..., - * asset: ..., - * }); - * ``` - */ -export function encodePositions(options: PositionsParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodePositionsParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the positions function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodePositionsResult } from "thirdweb/extensions/assets"; - * const result = decodePositionsResultResult("..."); - * ``` - */ -export function decodePositionsResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result); -} - -/** - * Calls the "positions" function on the contract. - * @param options - The options for the positions function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { positions } from "thirdweb/extensions/assets"; - * - * const result = await positions({ - * contract, - * owner: ..., - * asset: ..., - * }); - * - * ``` - */ -export async function positions( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.owner, options.asset], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts deleted file mode 100644 index f277a7a5649..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v3PositionManager.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x39406c50" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - }, -] as const; - -/** - * Checks if the `v3PositionManager` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `v3PositionManager` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isV3PositionManagerSupported } from "thirdweb/extensions/assets"; - * const supported = isV3PositionManagerSupported(["0x..."]); - * ``` - */ -export function isV3PositionManagerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the v3PositionManager function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeV3PositionManagerResult } from "thirdweb/extensions/assets"; - * const result = decodeV3PositionManagerResultResult("..."); - * ``` - */ -export function decodeV3PositionManagerResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "v3PositionManager" function on the contract. - * @param options - The options for the v3PositionManager function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { v3PositionManager } from "thirdweb/extensions/assets"; - * - * const result = await v3PositionManager({ - * contract, - * }); - * - * ``` - */ -export async function v3PositionManager(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts deleted file mode 100644 index 1c38c7fdc73..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/read/v4PositionManager.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0xe2f4dd43" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - }, -] as const; - -/** - * Checks if the `v4PositionManager` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `v4PositionManager` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isV4PositionManagerSupported } from "thirdweb/extensions/assets"; - * const supported = isV4PositionManagerSupported(["0x..."]); - * ``` - */ -export function isV4PositionManagerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the v4PositionManager function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeV4PositionManagerResult } from "thirdweb/extensions/assets"; - * const result = decodeV4PositionManagerResultResult("..."); - * ``` - */ -export function decodeV4PositionManagerResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "v4PositionManager" function on the contract. - * @param options - The options for the v4PositionManager function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { v4PositionManager } from "thirdweb/extensions/assets"; - * - * const result = await v4PositionManager({ - * contract, - * }); - * - * ``` - */ -export async function v4PositionManager(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts deleted file mode 100644 index 4a18acd4268..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/collectReward.ts +++ /dev/null @@ -1,164 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "collectReward" function. - */ -export type CollectRewardParams = WithOverrides<{ - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; -}>; - -export const FN_SELECTOR = "0x7bb87377" as const; -const FN_INPUTS = [ - { - type: "address", - name: "owner", - }, - { - type: "address", - name: "asset", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "token0", - }, - { - type: "address", - name: "token1", - }, - { - type: "uint256", - name: "amount0", - }, - { - type: "uint256", - name: "amount1", - }, -] as const; - -/** - * Checks if the `collectReward` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `collectReward` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCollectRewardSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCollectRewardSupported(["0x..."]); - * ``` - */ -export function isCollectRewardSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "collectReward" function. - * @param options - The options for the collectReward function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeCollectRewardParams } from "thirdweb/extensions/assets"; - * const result = encodeCollectRewardParams({ - * owner: ..., - * asset: ..., - * }); - * ``` - */ -export function encodeCollectRewardParams(options: CollectRewardParams) { - return encodeAbiParameters(FN_INPUTS, [options.owner, options.asset]); -} - -/** - * Encodes the "collectReward" function into a Hex string with its parameters. - * @param options - The options for the collectReward function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeCollectReward } from "thirdweb/extensions/assets"; - * const result = encodeCollectReward({ - * owner: ..., - * asset: ..., - * }); - * ``` - */ -export function encodeCollectReward(options: CollectRewardParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeCollectRewardParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "collectReward" function on the contract. - * @param options - The options for the "collectReward" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { collectReward } from "thirdweb/extensions/assets"; - * - * const transaction = collectReward({ - * contract, - * owner: ..., - * asset: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function collectReward( - options: BaseTransactionOptions< - | CollectRewardParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.owner, resolvedOptions.asset] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts b/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts deleted file mode 100644 index 03af4e56211..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/RewardLocker/write/lockPosition.ts +++ /dev/null @@ -1,202 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "lockPosition" function. - */ -export type LockPositionParams = WithOverrides<{ - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; - positionManager: AbiParameterToPrimitiveType<{ - type: "address"; - name: "positionManager"; - }>; - tokenId: AbiParameterToPrimitiveType<{ type: "uint256"; name: "tokenId" }>; - recipient: AbiParameterToPrimitiveType<{ - type: "address"; - name: "recipient"; - }>; - referrer: AbiParameterToPrimitiveType<{ type: "address"; name: "referrer" }>; - referrerBps: AbiParameterToPrimitiveType<{ - type: "uint16"; - name: "referrerBps"; - }>; -}>; - -export const FN_SELECTOR = "0x2cde40c2" as const; -const FN_INPUTS = [ - { - type: "address", - name: "asset", - }, - { - type: "address", - name: "positionManager", - }, - { - type: "uint256", - name: "tokenId", - }, - { - type: "address", - name: "recipient", - }, - { - type: "address", - name: "referrer", - }, - { - type: "uint16", - name: "referrerBps", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `lockPosition` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `lockPosition` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isLockPositionSupported } from "thirdweb/extensions/assets"; - * - * const supported = isLockPositionSupported(["0x..."]); - * ``` - */ -export function isLockPositionSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "lockPosition" function. - * @param options - The options for the lockPosition function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeLockPositionParams } from "thirdweb/extensions/assets"; - * const result = encodeLockPositionParams({ - * asset: ..., - * positionManager: ..., - * tokenId: ..., - * recipient: ..., - * referrer: ..., - * referrerBps: ..., - * }); - * ``` - */ -export function encodeLockPositionParams(options: LockPositionParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.asset, - options.positionManager, - options.tokenId, - options.recipient, - options.referrer, - options.referrerBps, - ]); -} - -/** - * Encodes the "lockPosition" function into a Hex string with its parameters. - * @param options - The options for the lockPosition function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeLockPosition } from "thirdweb/extensions/assets"; - * const result = encodeLockPosition({ - * asset: ..., - * positionManager: ..., - * tokenId: ..., - * recipient: ..., - * referrer: ..., - * referrerBps: ..., - * }); - * ``` - */ -export function encodeLockPosition(options: LockPositionParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeLockPositionParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "lockPosition" function on the contract. - * @param options - The options for the "lockPosition" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { lockPosition } from "thirdweb/extensions/assets"; - * - * const transaction = lockPosition({ - * contract, - * asset: ..., - * positionManager: ..., - * tokenId: ..., - * recipient: ..., - * referrer: ..., - * referrerBps: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function lockPosition( - options: BaseTransactionOptions< - | LockPositionParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [ - resolvedOptions.asset, - resolvedOptions.positionManager, - resolvedOptions.tokenId, - resolvedOptions.recipient, - resolvedOptions.referrer, - resolvedOptions.referrerBps, - ] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterDisabled.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterDisabled.ts deleted file mode 100644 index bb6d50984ce..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterDisabled.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the AdapterDisabled event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { adapterDisabledEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * adapterDisabledEvent() - * ], - * }); - * ``` - */ -export function adapterDisabledEvent() { - return prepareEvent({ - signature: "event AdapterDisabled(uint8 adapterType)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterEnabled.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterEnabled.ts deleted file mode 100644 index b15e372eafc..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/AdapterEnabled.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the AdapterEnabled event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { adapterEnabledEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * adapterEnabledEvent() - * ], - * }); - * ``` - */ -export function adapterEnabledEvent() { - return prepareEvent({ - signature: "event AdapterEnabled(uint8 adapterType)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Initialized.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Initialized.ts deleted file mode 100644 index 88705c10a63..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Initialized.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Creates an event object for the Initialized event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { initializedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * initializedEvent() - * ], - * }); - * ``` - */ -export function initializedEvent() { - return prepareEvent({ - signature: "event Initialized(uint64 version)", - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts deleted file mode 100644 index 326928983b5..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverCanceled.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipHandoverCanceled" event. - */ -export type OwnershipHandoverCanceledEventFilters = Partial<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipHandoverCanceled event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipHandoverCanceledEvent({ - * pendingOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipHandoverCanceledEvent( - filters: OwnershipHandoverCanceledEventFilters = {}, -) { - return prepareEvent({ - signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts deleted file mode 100644 index b7e8608233d..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipHandoverRequested.ts +++ /dev/null @@ -1,42 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipHandoverRequested" event. - */ -export type OwnershipHandoverRequestedEventFilters = Partial<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipHandoverRequested event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipHandoverRequestedEvent({ - * pendingOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipHandoverRequestedEvent( - filters: OwnershipHandoverRequestedEventFilters = {}, -) { - return prepareEvent({ - signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts deleted file mode 100644 index b97cc481307..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/OwnershipTransferred.ts +++ /dev/null @@ -1,49 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "OwnershipTransferred" event. - */ -export type OwnershipTransferredEventFilters = Partial<{ - oldOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "oldOwner"; - indexed: true; - }>; - newOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "newOwner"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the OwnershipTransferred event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { ownershipTransferredEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * ownershipTransferredEvent({ - * oldOwner: ..., - * newOwner: ..., - * }) - * ], - * }); - * ``` - */ -export function ownershipTransferredEvent( - filters: OwnershipTransferredEventFilters = {}, -) { - return prepareEvent({ - signature: - "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts deleted file mode 100644 index f9dc48bab16..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/SwapExecuted.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "SwapExecuted" event. - */ -export type SwapExecutedEventFilters = Partial<{ - sender: AbiParameterToPrimitiveType<{ - type: "address"; - name: "sender"; - indexed: true; - }>; - tokenIn: AbiParameterToPrimitiveType<{ - type: "address"; - name: "tokenIn"; - indexed: true; - }>; - tokenOut: AbiParameterToPrimitiveType<{ - type: "address"; - name: "tokenOut"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the SwapExecuted event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { swapExecutedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * swapExecutedEvent({ - * sender: ..., - * tokenIn: ..., - * tokenOut: ..., - * }) - * ], - * }); - * ``` - */ -export function swapExecutedEvent(filters: SwapExecutedEventFilters = {}) { - return prepareEvent({ - signature: - "event SwapExecuted(address indexed sender, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut, uint8 adapterUsed)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts deleted file mode 100644 index 0869e1f4557..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/events/Upgraded.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "Upgraded" event. - */ -export type UpgradedEventFilters = Partial<{ - implementation: AbiParameterToPrimitiveType<{ - type: "address"; - name: "implementation"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the Upgraded event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension ASSETS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { upgradedEvent } from "thirdweb/extensions/assets"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * upgradedEvent({ - * implementation: ..., - * }) - * ], - * }); - * ``` - */ -export function upgradedEvent(filters: UpgradedEventFilters = {}) { - return prepareEvent({ - signature: "event Upgraded(address indexed implementation)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts deleted file mode 100644 index 32f5330401f..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/NATIVE_TOKEN.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x31f7d964" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - }, -] as const; - -/** - * Checks if the `NATIVE_TOKEN` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `NATIVE_TOKEN` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isNATIVE_TOKENSupported } from "thirdweb/extensions/assets"; - * const supported = isNATIVE_TOKENSupported(["0x..."]); - * ``` - */ -export function isNATIVE_TOKENSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the NATIVE_TOKEN function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeNATIVE_TOKENResult } from "thirdweb/extensions/assets"; - * const result = decodeNATIVE_TOKENResultResult("..."); - * ``` - */ -export function decodeNATIVE_TOKENResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "NATIVE_TOKEN" function on the contract. - * @param options - The options for the NATIVE_TOKEN function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { NATIVE_TOKEN } from "thirdweb/extensions/assets"; - * - * const result = await NATIVE_TOKEN({ - * contract, - * }); - * - * ``` - */ -export async function NATIVE_TOKEN(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts deleted file mode 100644 index 9a497818fa5..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/owner.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x8da5cb5b" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "result", - }, -] as const; - -/** - * Checks if the `owner` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `owner` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isOwnerSupported } from "thirdweb/extensions/assets"; - * const supported = isOwnerSupported(["0x..."]); - * ``` - */ -export function isOwnerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the owner function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeOwnerResult } from "thirdweb/extensions/assets"; - * const result = decodeOwnerResultResult("..."); - * ``` - */ -export function decodeOwnerResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "owner" function on the contract. - * @param options - The options for the owner function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { owner } from "thirdweb/extensions/assets"; - * - * const result = await owner({ - * contract, - * }); - * - * ``` - */ -export async function owner(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts deleted file mode 100644 index 48ca2e48867..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/ownershipHandoverExpiresAt.ts +++ /dev/null @@ -1,135 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -/** - * Represents the parameters for the "ownershipHandoverExpiresAt" function. - */ -export type OwnershipHandoverExpiresAtParams = { - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - }>; -}; - -export const FN_SELECTOR = "0xfee81cf4" as const; -const FN_INPUTS = [ - { - type: "address", - name: "pendingOwner", - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "result", - }, -] as const; - -/** - * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/assets"; - * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); - * ``` - */ -export function isOwnershipHandoverExpiresAtSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "ownershipHandoverExpiresAt" function. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/assets"; - * const result = encodeOwnershipHandoverExpiresAtParams({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeOwnershipHandoverExpiresAtParams( - options: OwnershipHandoverExpiresAtParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); -} - -/** - * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/assets"; - * const result = encodeOwnershipHandoverExpiresAt({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeOwnershipHandoverExpiresAt( - options: OwnershipHandoverExpiresAtParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeOwnershipHandoverExpiresAtParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Decodes the result of the ownershipHandoverExpiresAt function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/assets"; - * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); - * ``` - */ -export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "ownershipHandoverExpiresAt" function on the contract. - * @param options - The options for the ownershipHandoverExpiresAt function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/assets"; - * - * const result = await ownershipHandoverExpiresAt({ - * contract, - * pendingOwner: ..., - * }); - * - * ``` - */ -export async function ownershipHandoverExpiresAt( - options: BaseTransactionOptions, -) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [options.pendingOwner], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts deleted file mode 100644 index a056bb26e0d..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/read/proxiableUUID.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x52d1902d" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "bytes32", - }, -] as const; - -/** - * Checks if the `proxiableUUID` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `proxiableUUID` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isProxiableUUIDSupported } from "thirdweb/extensions/assets"; - * const supported = isProxiableUUIDSupported(["0x..."]); - * ``` - */ -export function isProxiableUUIDSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the proxiableUUID function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension ASSETS - * @example - * ```ts - * import { decodeProxiableUUIDResult } from "thirdweb/extensions/assets"; - * const result = decodeProxiableUUIDResultResult("..."); - * ``` - */ -export function decodeProxiableUUIDResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "proxiableUUID" function on the contract. - * @param options - The options for the proxiableUUID function. - * @returns The parsed result of the function call. - * @extension ASSETS - * @example - * ```ts - * import { proxiableUUID } from "thirdweb/extensions/assets"; - * - * const result = await proxiableUUID({ - * contract, - * }); - * - * ``` - */ -export async function proxiableUUID(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts deleted file mode 100644 index 89b15b8c239..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/cancelOwnershipHandover.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x54d1f13d" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `cancelOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCancelOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isCancelOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. - * @param options - The options for the "cancelOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { cancelOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = cancelOwnershipHandover(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function cancelOwnershipHandover(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts deleted file mode 100644 index b4cdc7364a8..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/completeOwnershipHandover.ts +++ /dev/null @@ -1,148 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "completeOwnershipHandover" function. - */ -export type CompleteOwnershipHandoverParams = WithOverrides<{ - pendingOwner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "pendingOwner"; - }>; -}>; - -export const FN_SELECTOR = "0xf04e283e" as const; -const FN_INPUTS = [ - { - type: "address", - name: "pendingOwner", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `completeOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isCompleteOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "completeOwnershipHandover" function. - * @param options - The options for the completeOwnershipHandover function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/assets"; - * const result = encodeCompleteOwnershipHandoverParams({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeCompleteOwnershipHandoverParams( - options: CompleteOwnershipHandoverParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); -} - -/** - * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. - * @param options - The options for the completeOwnershipHandover function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/assets"; - * const result = encodeCompleteOwnershipHandover({ - * pendingOwner: ..., - * }); - * ``` - */ -export function encodeCompleteOwnershipHandover( - options: CompleteOwnershipHandoverParams, -) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeCompleteOwnershipHandoverParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. - * @param options - The options for the "completeOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { completeOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = completeOwnershipHandover({ - * contract, - * pendingOwner: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function completeOwnershipHandover( - options: BaseTransactionOptions< - | CompleteOwnershipHandoverParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.pendingOwner] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts deleted file mode 100644 index c6f2e21345f..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/createPool.ts +++ /dev/null @@ -1,202 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "createPool" function. - */ -export type CreatePoolParams = WithOverrides<{ - createPoolConfig: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "createPoolConfig"; - components: [ - { type: "address"; name: "recipient" }, - { type: "address"; name: "referrer" }, - { type: "address"; name: "tokenA" }, - { type: "address"; name: "tokenB" }, - { type: "uint256"; name: "amountA" }, - { type: "uint256"; name: "amountB" }, - { type: "bytes"; name: "data" }, - ]; - }>; -}>; - -export const FN_SELECTOR = "0xa1970c55" as const; -const FN_INPUTS = [ - { - type: "tuple", - name: "createPoolConfig", - components: [ - { - type: "address", - name: "recipient", - }, - { - type: "address", - name: "referrer", - }, - { - type: "address", - name: "tokenA", - }, - { - type: "address", - name: "tokenB", - }, - { - type: "uint256", - name: "amountA", - }, - { - type: "uint256", - name: "amountB", - }, - { - type: "bytes", - name: "data", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "address", - name: "pool", - }, - { - type: "address", - name: "position", - }, - { - type: "uint256", - name: "positionId", - }, - { - type: "uint256", - name: "refundAmount0", - }, - { - type: "uint256", - name: "refundAmount1", - }, -] as const; - -/** - * Checks if the `createPool` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `createPool` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isCreatePoolSupported } from "thirdweb/extensions/assets"; - * - * const supported = isCreatePoolSupported(["0x..."]); - * ``` - */ -export function isCreatePoolSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "createPool" function. - * @param options - The options for the createPool function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeCreatePoolParams } from "thirdweb/extensions/assets"; - * const result = encodeCreatePoolParams({ - * createPoolConfig: ..., - * }); - * ``` - */ -export function encodeCreatePoolParams(options: CreatePoolParams) { - return encodeAbiParameters(FN_INPUTS, [options.createPoolConfig]); -} - -/** - * Encodes the "createPool" function into a Hex string with its parameters. - * @param options - The options for the createPool function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeCreatePool } from "thirdweb/extensions/assets"; - * const result = encodeCreatePool({ - * createPoolConfig: ..., - * }); - * ``` - */ -export function encodeCreatePool(options: CreatePoolParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeCreatePoolParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "createPool" function on the contract. - * @param options - The options for the "createPool" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { createPool } from "thirdweb/extensions/assets"; - * - * const transaction = createPool({ - * contract, - * createPoolConfig: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function createPool( - options: BaseTransactionOptions< - | CreatePoolParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.createPoolConfig] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts deleted file mode 100644 index e77b5424a89..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/disableAdapter.ts +++ /dev/null @@ -1,142 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "disableAdapter" function. - */ -export type DisableAdapterParams = WithOverrides<{ - adapterType: AbiParameterToPrimitiveType<{ - type: "uint8"; - name: "adapterType"; - }>; -}>; - -export const FN_SELECTOR = "0xa3f3a7bd" as const; -const FN_INPUTS = [ - { - type: "uint8", - name: "adapterType", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `disableAdapter` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `disableAdapter` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isDisableAdapterSupported } from "thirdweb/extensions/assets"; - * - * const supported = isDisableAdapterSupported(["0x..."]); - * ``` - */ -export function isDisableAdapterSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "disableAdapter" function. - * @param options - The options for the disableAdapter function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeDisableAdapterParams } from "thirdweb/extensions/assets"; - * const result = encodeDisableAdapterParams({ - * adapterType: ..., - * }); - * ``` - */ -export function encodeDisableAdapterParams(options: DisableAdapterParams) { - return encodeAbiParameters(FN_INPUTS, [options.adapterType]); -} - -/** - * Encodes the "disableAdapter" function into a Hex string with its parameters. - * @param options - The options for the disableAdapter function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeDisableAdapter } from "thirdweb/extensions/assets"; - * const result = encodeDisableAdapter({ - * adapterType: ..., - * }); - * ``` - */ -export function encodeDisableAdapter(options: DisableAdapterParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeDisableAdapterParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "disableAdapter" function on the contract. - * @param options - The options for the "disableAdapter" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { disableAdapter } from "thirdweb/extensions/assets"; - * - * const transaction = disableAdapter({ - * contract, - * adapterType: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function disableAdapter( - options: BaseTransactionOptions< - | DisableAdapterParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.adapterType] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts deleted file mode 100644 index eeaaed700cf..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/enableAdapter.ts +++ /dev/null @@ -1,150 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "enableAdapter" function. - */ -export type EnableAdapterParams = WithOverrides<{ - adapterType: AbiParameterToPrimitiveType<{ - type: "uint8"; - name: "adapterType"; - }>; - config: AbiParameterToPrimitiveType<{ type: "bytes"; name: "config" }>; -}>; - -export const FN_SELECTOR = "0xab348bdb" as const; -const FN_INPUTS = [ - { - type: "uint8", - name: "adapterType", - }, - { - type: "bytes", - name: "config", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `enableAdapter` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `enableAdapter` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isEnableAdapterSupported } from "thirdweb/extensions/assets"; - * - * const supported = isEnableAdapterSupported(["0x..."]); - * ``` - */ -export function isEnableAdapterSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "enableAdapter" function. - * @param options - The options for the enableAdapter function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeEnableAdapterParams } from "thirdweb/extensions/assets"; - * const result = encodeEnableAdapterParams({ - * adapterType: ..., - * config: ..., - * }); - * ``` - */ -export function encodeEnableAdapterParams(options: EnableAdapterParams) { - return encodeAbiParameters(FN_INPUTS, [options.adapterType, options.config]); -} - -/** - * Encodes the "enableAdapter" function into a Hex string with its parameters. - * @param options - The options for the enableAdapter function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeEnableAdapter } from "thirdweb/extensions/assets"; - * const result = encodeEnableAdapter({ - * adapterType: ..., - * config: ..., - * }); - * ``` - */ -export function encodeEnableAdapter(options: EnableAdapterParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeEnableAdapterParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "enableAdapter" function on the contract. - * @param options - The options for the "enableAdapter" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { enableAdapter } from "thirdweb/extensions/assets"; - * - * const transaction = enableAdapter({ - * contract, - * adapterType: ..., - * config: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function enableAdapter( - options: BaseTransactionOptions< - | EnableAdapterParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.adapterType, resolvedOptions.config] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts deleted file mode 100644 index dbe972101c4..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/initialize.ts +++ /dev/null @@ -1,139 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "initialize" function. - */ -export type InitializeParams = WithOverrides<{ - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; -}>; - -export const FN_SELECTOR = "0xc4d66de8" as const; -const FN_INPUTS = [ - { - type: "address", - name: "owner", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `initialize` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `initialize` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isInitializeSupported } from "thirdweb/extensions/assets"; - * - * const supported = isInitializeSupported(["0x..."]); - * ``` - */ -export function isInitializeSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "initialize" function. - * @param options - The options for the initialize function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeInitializeParams } from "thirdweb/extensions/assets"; - * const result = encodeInitializeParams({ - * owner: ..., - * }); - * ``` - */ -export function encodeInitializeParams(options: InitializeParams) { - return encodeAbiParameters(FN_INPUTS, [options.owner]); -} - -/** - * Encodes the "initialize" function into a Hex string with its parameters. - * @param options - The options for the initialize function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeInitialize } from "thirdweb/extensions/assets"; - * const result = encodeInitialize({ - * owner: ..., - * }); - * ``` - */ -export function encodeInitialize(options: InitializeParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeInitializeParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "initialize" function on the contract. - * @param options - The options for the "initialize" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { initialize } from "thirdweb/extensions/assets"; - * - * const transaction = initialize({ - * contract, - * owner: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function initialize( - options: BaseTransactionOptions< - | InitializeParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.owner] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts deleted file mode 100644 index 6b9b9db57a4..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/renounceOwnership.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x715018a6" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `renounceOwnership` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `renounceOwnership` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRenounceOwnershipSupported } from "thirdweb/extensions/assets"; - * - * const supported = isRenounceOwnershipSupported(["0x..."]); - * ``` - */ -export function isRenounceOwnershipSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "renounceOwnership" function on the contract. - * @param options - The options for the "renounceOwnership" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { renounceOwnership } from "thirdweb/extensions/assets"; - * - * const transaction = renounceOwnership(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function renounceOwnership(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts deleted file mode 100644 index 5826bb0ee25..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/requestOwnershipHandover.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; - -export const FN_SELECTOR = "0x25692962" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `requestOwnershipHandover` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/assets"; - * - * const supported = isRequestOwnershipHandoverSupported(["0x..."]); - * ``` - */ -export function isRequestOwnershipHandoverSupported( - availableSelectors: string[], -) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. - * @param options - The options for the "requestOwnershipHandover" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { requestOwnershipHandover } from "thirdweb/extensions/assets"; - * - * const transaction = requestOwnershipHandover(); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function requestOwnershipHandover(options: BaseTransactionOptions) { - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts deleted file mode 100644 index d0db081529a..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/swap.ts +++ /dev/null @@ -1,203 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "swap" function. - */ -export type SwapParams = WithOverrides<{ - config: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "config"; - components: [ - { type: "address"; name: "tokenIn" }, - { type: "address"; name: "tokenOut" }, - { type: "uint256"; name: "amountIn" }, - { type: "uint256"; name: "minAmountOut" }, - { type: "address"; name: "recipient" }, - { type: "address"; name: "refundRecipient" }, - { type: "uint256"; name: "deadline" }, - { type: "bytes"; name: "data" }, - ]; - }>; -}>; - -export const FN_SELECTOR = "0x8892376c" as const; -const FN_INPUTS = [ - { - type: "tuple", - name: "config", - components: [ - { - type: "address", - name: "tokenIn", - }, - { - type: "address", - name: "tokenOut", - }, - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "minAmountOut", - }, - { - type: "address", - name: "recipient", - }, - { - type: "address", - name: "refundRecipient", - }, - { - type: "uint256", - name: "deadline", - }, - { - type: "bytes", - name: "data", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "tuple", - name: "result", - components: [ - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "amountOut", - }, - { - type: "address", - name: "source", - }, - ], - }, -] as const; - -/** - * Checks if the `swap` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `swap` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isSwapSupported } from "thirdweb/extensions/assets"; - * - * const supported = isSwapSupported(["0x..."]); - * ``` - */ -export function isSwapSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "swap" function. - * @param options - The options for the swap function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeSwapParams } from "thirdweb/extensions/assets"; - * const result = encodeSwapParams({ - * config: ..., - * }); - * ``` - */ -export function encodeSwapParams(options: SwapParams) { - return encodeAbiParameters(FN_INPUTS, [options.config]); -} - -/** - * Encodes the "swap" function into a Hex string with its parameters. - * @param options - The options for the swap function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeSwap } from "thirdweb/extensions/assets"; - * const result = encodeSwap({ - * config: ..., - * }); - * ``` - */ -export function encodeSwap(options: SwapParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSwapParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "swap" function on the contract. - * @param options - The options for the "swap" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { swap } from "thirdweb/extensions/assets"; - * - * const transaction = swap({ - * contract, - * config: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function swap( - options: BaseTransactionOptions< - | SwapParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.config] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts deleted file mode 100644 index 52e932c37eb..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/transferOwnership.ts +++ /dev/null @@ -1,141 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "transferOwnership" function. - */ -export type TransferOwnershipParams = WithOverrides<{ - newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; -}>; - -export const FN_SELECTOR = "0xf2fde38b" as const; -const FN_INPUTS = [ - { - type: "address", - name: "newOwner", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `transferOwnership` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `transferOwnership` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isTransferOwnershipSupported } from "thirdweb/extensions/assets"; - * - * const supported = isTransferOwnershipSupported(["0x..."]); - * ``` - */ -export function isTransferOwnershipSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "transferOwnership" function. - * @param options - The options for the transferOwnership function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferOwnershipParams } from "thirdweb/extensions/assets"; - * const result = encodeTransferOwnershipParams({ - * newOwner: ..., - * }); - * ``` - */ -export function encodeTransferOwnershipParams( - options: TransferOwnershipParams, -) { - return encodeAbiParameters(FN_INPUTS, [options.newOwner]); -} - -/** - * Encodes the "transferOwnership" function into a Hex string with its parameters. - * @param options - The options for the transferOwnership function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeTransferOwnership } from "thirdweb/extensions/assets"; - * const result = encodeTransferOwnership({ - * newOwner: ..., - * }); - * ``` - */ -export function encodeTransferOwnership(options: TransferOwnershipParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeTransferOwnershipParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "transferOwnership" function on the contract. - * @param options - The options for the "transferOwnership" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { transferOwnership } from "thirdweb/extensions/assets"; - * - * const transaction = transferOwnership({ - * contract, - * newOwner: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function transferOwnership( - options: BaseTransactionOptions< - | TransferOwnershipParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.newOwner] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts deleted file mode 100644 index 673b1ef2dec..00000000000 --- a/packages/thirdweb/src/extensions/assets/__generated__/Router/write/upgradeToAndCall.ts +++ /dev/null @@ -1,153 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "upgradeToAndCall" function. - */ -export type UpgradeToAndCallParams = WithOverrides<{ - newImplementation: AbiParameterToPrimitiveType<{ - type: "address"; - name: "newImplementation"; - }>; - data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; -}>; - -export const FN_SELECTOR = "0x4f1ef286" as const; -const FN_INPUTS = [ - { - type: "address", - name: "newImplementation", - }, - { - type: "bytes", - name: "data", - }, -] as const; -const FN_OUTPUTS = [] as const; - -/** - * Checks if the `upgradeToAndCall` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `upgradeToAndCall` method is supported. - * @extension ASSETS - * @example - * ```ts - * import { isUpgradeToAndCallSupported } from "thirdweb/extensions/assets"; - * - * const supported = isUpgradeToAndCallSupported(["0x..."]); - * ``` - */ -export function isUpgradeToAndCallSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "upgradeToAndCall" function. - * @param options - The options for the upgradeToAndCall function. - * @returns The encoded ABI parameters. - * @extension ASSETS - * @example - * ```ts - * import { encodeUpgradeToAndCallParams } from "thirdweb/extensions/assets"; - * const result = encodeUpgradeToAndCallParams({ - * newImplementation: ..., - * data: ..., - * }); - * ``` - */ -export function encodeUpgradeToAndCallParams(options: UpgradeToAndCallParams) { - return encodeAbiParameters(FN_INPUTS, [ - options.newImplementation, - options.data, - ]); -} - -/** - * Encodes the "upgradeToAndCall" function into a Hex string with its parameters. - * @param options - The options for the upgradeToAndCall function. - * @returns The encoded hexadecimal string. - * @extension ASSETS - * @example - * ```ts - * import { encodeUpgradeToAndCall } from "thirdweb/extensions/assets"; - * const result = encodeUpgradeToAndCall({ - * newImplementation: ..., - * data: ..., - * }); - * ``` - */ -export function encodeUpgradeToAndCall(options: UpgradeToAndCallParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeUpgradeToAndCallParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "upgradeToAndCall" function on the contract. - * @param options - The options for the "upgradeToAndCall" function. - * @returns A prepared transaction object. - * @extension ASSETS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { upgradeToAndCall } from "thirdweb/extensions/assets"; - * - * const transaction = upgradeToAndCall({ - * contract, - * newImplementation: ..., - * data: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function upgradeToAndCall( - options: BaseTransactionOptions< - | UpgradeToAndCallParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.newImplementation, resolvedOptions.data] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} From fca86894e8833eb49203d121c3dd6e62a186a770 Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Wed, 23 Jul 2025 18:57:49 +0000 Subject: [PATCH 26/32] token salt guard --- packages/thirdweb/src/exports/tokens.ts | 5 ++ packages/thirdweb/src/tokens/create-token.ts | 22 ++--- .../thirdweb/src/tokens/token-utils.test.ts | 46 +++++++++++ packages/thirdweb/src/tokens/token-utils.ts | 82 ++++++++++++++++++- 4 files changed, 139 insertions(+), 16 deletions(-) create mode 100644 packages/thirdweb/src/tokens/token-utils.test.ts diff --git a/packages/thirdweb/src/exports/tokens.ts b/packages/thirdweb/src/exports/tokens.ts index b1ff6427403..53b16fc8776 100644 --- a/packages/thirdweb/src/exports/tokens.ts +++ b/packages/thirdweb/src/exports/tokens.ts @@ -13,6 +13,11 @@ export { createToken } from "../tokens/create-token.js"; export { distributeToken } from "../tokens/distribute-token.js"; export { getDeployedEntrypointERC20 } from "../tokens/get-entrypoint-erc20.js"; export { isRouterEnabled } from "../tokens/is-router-enabled.js"; +export { + generateSalt, + SaltFlag, + type SaltFlagType, +} from "../tokens/token-utils.js"; export type { CreateTokenByImplementationConfigOptions, CreateTokenOptions, diff --git a/packages/thirdweb/src/tokens/create-token.ts b/packages/thirdweb/src/tokens/create-token.ts index 1c2af910a00..b5823af3e01 100644 --- a/packages/thirdweb/src/tokens/create-token.ts +++ b/packages/thirdweb/src/tokens/create-token.ts @@ -1,13 +1,16 @@ +import { bytesToHex, randomBytes } from "@noble/hashes/utils"; import type { Hex } from "viem"; import { parseEventLogs } from "../event/actions/parse-logs.js"; import { createdEvent } from "../extensions/tokens/__generated__/ERC20Entrypoint/events/Created.js"; import { create } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/create.js"; import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; -import { keccakId } from "../utils/any-evm/keccak-id.js"; -import { toHex } from "../utils/encoding/hex.js"; import { DEFAULT_REFERRER_ADDRESS } from "./constants.js"; import { getOrDeployEntrypointERC20 } from "./get-entrypoint-erc20.js"; -import { encodeInitParams, encodePoolConfig } from "./token-utils.js"; +import { + encodeInitParams, + encodePoolConfig, + generateSalt, +} from "./token-utils.js"; import type { CreateTokenOptions } from "./types.js"; export async function createToken(options: CreateTokenOptions) { @@ -20,18 +23,7 @@ export async function createToken(options: CreateTokenOptions) { params, }); - let salt: Hex = "0x"; - if (!options.salt) { - salt = `0x1f${toHex(creator, { - size: 32, - }).substring(4)}`; - } else { - if (options.salt.startsWith("0x") && options.salt.length === 66) { - salt = options.salt; - } else { - salt = `0x1f${keccakId(options.salt).substring(4)}`; - } - } + const salt: Hex = generateSalt(options.salt || bytesToHex(randomBytes(31))); const entrypoint = await getOrDeployEntrypointERC20(options); diff --git a/packages/thirdweb/src/tokens/token-utils.test.ts b/packages/thirdweb/src/tokens/token-utils.test.ts new file mode 100644 index 00000000000..05adb3e9904 --- /dev/null +++ b/packages/thirdweb/src/tokens/token-utils.test.ts @@ -0,0 +1,46 @@ +import { isHex } from "viem/utils"; +import { describe, expect, it } from "vitest"; + +import { generateSalt, SaltFlag } from "./token-utils.js"; + +// Helper to validate the generated salt meets core guarantees +function assertValidSalt(out: string, expectedFlagHex: string) { + // should be valid hex + console.log("out", out); + expect(isHex(out)).toBe(true); + // 0x prefix + 64 hex chars → 32 bytes + expect(out.length).toBe(66); + // first byte must match the expected flag + expect(out.slice(0, 4).toLowerCase()).toBe(expectedFlagHex.toLowerCase()); +} + +describe("generateSalt", () => { + it("handles hex shorter than 32 bytes (padding)", () => { + const shortHex = "0x123456"; // 3 bytes < 32 bytes + const out = generateSalt(shortHex); + assertValidSalt(out, "0x01"); // default flag is MIX_SENDER (0x01) + }); + + it("handles exactly 32-byte hex and overrides explicit flag with salt's flag", () => { + const hex32 = `0x20${"aa".repeat(31)}`; // first byte 0x20, total 32 bytes + const out = generateSalt(hex32, SaltFlag.BYPASS); // pass a different flag intentionally + // even though we requested BYPASS (0x80), the salt's first byte (0x20) wins + assertValidSalt(out, "0x20"); + }); + + it("handles hex longer than 32 bytes (hashing)", () => { + const longHex = `0x${"ff".repeat(80)}`; // 80 bytes > 32 bytes + const out = generateSalt(longHex); + assertValidSalt(out, "0x01"); // default flag retained + }); + + it("handles arbitrary non-hex string (hashed)", () => { + const out = generateSalt("hello world"); + assertValidSalt(out, "0x01"); + }); + + it("respects explicit flag parameter when provided", () => { + const out = generateSalt("foobar", SaltFlag.BYPASS); + assertValidSalt(out, "0x80"); + }); +}); diff --git a/packages/thirdweb/src/tokens/token-utils.ts b/packages/thirdweb/src/tokens/token-utils.ts index a6f18411956..b01a92dc18f 100644 --- a/packages/thirdweb/src/tokens/token-utils.ts +++ b/packages/thirdweb/src/tokens/token-utils.ts @@ -1,4 +1,5 @@ -import type { Hex } from "viem"; +import { type Hex, keccak256 } from "viem"; +import { isHex, toBytes } from "viem/utils"; import type { ThirdwebClient } from "../client/client.js"; import { NATIVE_TOKEN_ADDRESS } from "../constants/addresses.js"; import { encodeInitialize } from "../extensions/tokens/__generated__/ERC20Asset/write/initialize.js"; @@ -12,6 +13,25 @@ import { } from "./constants.js"; import type { PoolConfig, TokenParams } from "./types.js"; +export const SaltFlag = { + /** Mix in msg.sender */ + MIX_SENDER: 0x01, + /** Mix in block.chainid */ + MIX_CHAIN_ID: 0x02, + /** Mix in block.number */ + MIX_BLOCK_NUMBER: 0x04, + /** Mix in contractInitData */ + MIX_CONTRACT_INIT_DATA: 0x08, + /** Mix in hookInitData */ + MIX_HOOK_INIT_DATA: 0x10, + /** Mix in creator address */ + MIX_CREATOR: 0x20, + /** Bypass mode – disable all transformations */ + BYPASS: 0x80, +} as const; + +export type SaltFlagType = (typeof SaltFlag)[keyof typeof SaltFlag]; + export async function encodeInitParams(options: { client: ThirdwebClient; params: TokenParams; @@ -75,3 +95,63 @@ export function encodePoolConfig(poolConfig: PoolConfig): Hex { poolConfig.referrerRewardBps || DEFAULT_REFERRER_REWARD_BPS, ]); } + +export function generateSalt( + salt: Hex | string, + flags: SaltFlagType = SaltFlag.MIX_SENDER, +): Hex { + /* + * The salt layout follows the on-chain convention documented in the `guardSalt` Solidity helper. + * [0x00] – 1 byte : flags (bits 0-7) + * [0x01-0x1F] – 31 bytes : user-provided entropy + * + * This helper makes it easy to prepare a salt off-chain that can be passed to + * the contract. It guarantees the returned value is always 32 bytes (66 hex + * chars including the `0x` prefix) and allows callers to optionally pass a + * custom salt and/or explicit flag byte. + */ + + let flagByte: number = flags; + + // If the salt is already a valid 32-byte hex string, we can use it as is and extract the flag byte + if (salt && isHex(salt)) { + const hex = salt.replace(/^0x/i, ""); + if (hex.length === 64) { + flagByte = parseInt(hex.slice(0, 2), 16) as SaltFlagType; + salt = `0x${hex.slice(2)}` as Hex; + } else if (hex.length < 64) { + // If the salt is less than 31 bytes, we need to pad it with zeros (first 2 bytes are the flag byte) + salt = `0x${hex.padStart(62, "0")}` as Hex; + } else if (hex.length > 64) { + // If the salt is greater than 32 bytes, we need to keccak256 it. + // first 2 bytes are the flag byte, and truncate to 31 bytes + salt = `0x${keccak256(toBytes(hex)).slice(4)}` as Hex; + } + } else if (salt && !isHex(salt)) { + // 31 bytes of salt data + salt = `0x${keccak256(toBytes(salt)).slice(4)}` as Hex; + } + + // If the flag byte is not a valid 8-bit unsigned integer, throw an error + if (flagByte < 0 || flagByte > 0xff) { + throw new Error("flags must be an 8-bit unsigned integer (0-255)"); + } + + const saltData = salt.replace(/^0x/i, ""); + if (saltData.length !== 62) { + // 31 bytes * 2 hex chars + throw new Error( + "salt data (excluding flag byte) cannot exceed 31 bytes (62 hex characters)", + ); + } + + const result = + `0x${flagByte.toString(16).padStart(2, "0")}${saltData}` as Hex; + + // Final sanity check – should always be 32 bytes / 66 hex chars (including 0x) + if (result.length !== 66) { + throw new Error("generated salt must be 32 bytes"); + } + + return result; +} From 1ef831a999a196c0fcc382f97c13a62868fa0edd Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Sat, 26 Jul 2025 06:29:52 +0000 Subject: [PATCH 27/32] Update ABIs and Interfaces --- packages/thirdweb/package.json | 14 +- .../generate/abis/tokens/ERC20Asset.json | 2 +- .../generate/abis/tokens/ERC20Entrypoint.json | 27 +- .../generate/abis/tokens/PoolRouter.json | 59 + .../generate/abis/tokens/RewardLocker.json | 32 +- .../scripts/generate/abis/tokens/Router.json | 52 - packages/thirdweb/src/exports/tokens.ts | 11 +- .../Airdrop/events/OwnerUpdated.ts | 2 +- .../Airdrop/read/eip712Domain.ts | 5 +- .../__generated__/Airdrop/read/isClaimed.ts | 4 +- .../__generated__/Airdrop/read/owner.ts | 5 +- .../Airdrop/read/tokenConditionId.ts | 4 +- .../Airdrop/read/tokenMerkleRoot.ts | 4 +- .../Airdrop/write/airdropERC1155.ts | 4 +- .../write/airdropERC1155WithSignature.ts | 4 +- .../Airdrop/write/airdropERC20.ts | 4 +- .../write/airdropERC20WithSignature.ts | 4 +- .../Airdrop/write/airdropERC721.ts | 4 +- .../write/airdropERC721WithSignature.ts | 4 +- .../Airdrop/write/airdropNativeToken.ts | 4 +- .../Airdrop/write/claimERC1155.ts | 4 +- .../__generated__/Airdrop/write/claimERC20.ts | 4 +- .../Airdrop/write/claimERC721.ts | 4 +- .../__generated__/Airdrop/write/initialize.ts | 4 +- .../Airdrop/write/setMerkleRoot.ts | 4 +- .../__generated__/Airdrop/write/setOwner.ts | 4 +- .../write/setClaimConditions.ts | 4 +- .../IContractMetadata/read/contractURI.ts | 5 +- .../IContractMetadata/read/name.ts | 5 +- .../IContractMetadata/read/symbol.ts | 5 +- .../IContractMetadata/write/setContractURI.ts | 4 +- .../IMulticall/write/multicall.ts | 4 +- .../IOwnable/events/OwnerUpdated.ts | 2 +- .../__generated__/IOwnable/read/owner.ts | 5 +- .../__generated__/IOwnable/write/setOwner.ts | 4 +- .../events/PlatformFeeInfoUpdated.ts | 2 +- .../IPlatformFee/read/getPlatformFeeInfo.ts | 5 +- .../IPlatformFee/write/setPlatformFeeInfo.ts | 4 +- .../events/PrimarySaleRecipientUpdated.ts | 2 +- .../IPrimarySale/read/primarySaleRecipient.ts | 5 +- .../write/setPrimarySaleRecipient.ts | 4 +- .../IRoyalty/events/DefaultRoyalty.ts | 2 +- .../IRoyalty/events/RoyaltyForToken.ts | 2 +- .../IRoyalty/read/getDefaultRoyaltyInfo.ts | 5 +- .../IRoyalty/read/getRoyaltyInfoForToken.ts | 4 +- .../IRoyalty/read/royaltyInfo.ts | 4 +- .../IRoyalty/read/supportsInterface.ts | 4 +- .../IRoyalty/write/setDefaultRoyaltyInfo.ts | 4 +- .../IRoyalty/write/setRoyaltyInfoForToken.ts | 4 +- .../events/RoyaltyEngineUpdated.ts | 2 +- .../read/supportsInterface.ts | 4 +- .../IRoyaltyPayments/write/getRoyalty.ts | 4 +- .../write/setRoyaltyEngine.ts | 4 +- .../read/getAllExtensions.ts | 5 +- .../IExtensionManager/write/addExtension.ts | 4 +- .../write/removeExtension.ts | 4 +- .../__generated__/AddressResolver/read/ABI.ts | 4 +- .../AddressResolver/read/addr.ts | 4 +- .../AddressResolver/read/contenthash.ts | 4 +- .../AddressResolver/read/name.ts | 4 +- .../AddressResolver/read/pubkey.ts | 4 +- .../AddressResolver/read/text.ts | 4 +- .../ens/__generated__/L2Resolver/read/name.ts | 4 +- .../UniversalResolver/read/resolve.ts | 4 +- .../UniversalResolver/read/reverse.ts | 4 +- .../BatchMintMetadata/read/getBaseURICount.ts | 5 +- .../read/getBatchIdAtIndex.ts | 4 +- .../DropERC1155/read/verifyClaim.ts | 4 +- .../DropERC1155/write/freezeBatchBaseURI.ts | 4 +- .../DropERC1155/write/setMaxTotalSupply.ts | 4 +- .../write/setSaleRecipientForToken.ts | 4 +- .../DropERC1155/write/updateBatchBaseURI.ts | 4 +- .../IAirdropERC1155/events/AirdropFailed.ts | 2 +- .../IAirdropERC1155/write/airdropERC1155.ts | 4 +- .../events/TokensClaimed.ts | 2 +- .../IAirdropERC1155Claimable/write/claim.ts | 4 +- .../IBurnableERC1155/write/burn.ts | 4 +- .../IBurnableERC1155/write/burnBatch.ts | 4 +- .../IClaimableERC1155/events/TokensClaimed.ts | 2 +- .../IClaimableERC1155/write/claim.ts | 4 +- .../events/ClaimConditionsUpdated.ts | 2 +- .../IDrop1155/events/TokensClaimed.ts | 2 +- .../IDrop1155/read/claimCondition.ts | 4 +- .../read/getActiveClaimConditionId.ts | 4 +- .../IDrop1155/read/getClaimConditionById.ts | 4 +- .../__generated__/IDrop1155/write/claim.ts | 4 +- .../IDrop1155/write/setClaimConditions.ts | 4 +- .../events/ClaimConditionUpdated.ts | 2 +- .../events/TokensClaimed.ts | 2 +- .../read/claimCondition.ts | 4 +- .../IDropSinglePhase1155/write/claim.ts | 4 +- .../write/setClaimConditions.ts | 4 +- .../IERC1155/events/ApprovalForAll.ts | 2 +- .../IERC1155/events/TransferBatch.ts | 2 +- .../IERC1155/events/TransferSingle.ts | 2 +- .../__generated__/IERC1155/events/URI.ts | 2 +- .../__generated__/IERC1155/read/balanceOf.ts | 4 +- .../IERC1155/read/balanceOfBatch.ts | 4 +- .../IERC1155/read/isApprovedForAll.ts | 4 +- .../IERC1155/read/totalSupply.ts | 4 +- .../__generated__/IERC1155/read/uri.ts | 4 +- .../IERC1155/write/safeBatchTransferFrom.ts | 4 +- .../IERC1155/write/safeTransferFrom.ts | 4 +- .../IERC1155/write/setApprovalForAll.ts | 4 +- .../read/nextTokenIdToMint.ts | 5 +- .../read/supportsInterface.ts | 4 +- .../write/onERC1155BatchReceived.ts | 4 +- .../write/onERC1155Received.ts | 4 +- .../write/depositRewardTokens.ts | 4 +- .../write/withdrawRewardTokens.ts | 4 +- .../ILazyMint/events/TokensLazyMinted.ts | 2 +- .../__generated__/ILazyMint/write/lazyMint.ts | 4 +- .../IMintableERC1155/events/TokensMinted.ts | 2 +- .../IMintableERC1155/write/mintTo.ts | 4 +- .../INFTMetadata/read/supportsInterface.ts | 4 +- .../INFTMetadata/write/freezeMetadata.ts | 2 +- .../INFTMetadata/write/setTokenURI.ts | 4 +- .../__generated__/IPack/events/PackCreated.ts | 2 +- .../__generated__/IPack/events/PackOpened.ts | 2 +- .../__generated__/IPack/events/PackUpdated.ts | 2 +- .../__generated__/IPack/write/createPack.ts | 4 +- .../__generated__/IPack/write/openPack.ts | 4 +- .../events/PackOpenRequested.ts | 2 +- .../events/PackRandomnessFulfilled.ts | 2 +- .../IPackVRFDirect/read/canClaimRewards.ts | 4 +- .../IPackVRFDirect/write/claimRewards.ts | 2 +- .../write/openPackAndClaimRewards.ts | 4 +- .../events/TokensMintedWithSignature.ts | 2 +- .../ISignatureMintERC1155/read/verify.ts | 4 +- .../write/mintWithSignature.ts | 4 +- .../IStaking1155/events/RewardsClaimed.ts | 2 +- .../IStaking1155/events/TokensStaked.ts | 2 +- .../IStaking1155/events/TokensWithdrawn.ts | 2 +- .../events/UpdatedRewardsPerUnitTime.ts | 2 +- .../IStaking1155/events/UpdatedTimeUnit.ts | 2 +- .../IStaking1155/read/getStakeInfo.ts | 4 +- .../IStaking1155/read/getStakeInfoForToken.ts | 4 +- .../IStaking1155/write/claimRewards.ts | 4 +- .../__generated__/IStaking1155/write/stake.ts | 4 +- .../IStaking1155/write/withdraw.ts | 4 +- .../Zora1155/read/nextTokenId.ts | 5 +- .../isValidSignature/read/isValidSignature.ts | 4 +- .../IERC165/read/supportsInterface.ts | 4 +- .../IERC1822Proxiable/read/proxiableUUID.ts | 5 +- .../DropERC20/read/verifyClaim.ts | 4 +- .../IAirdropERC20/events/AirdropFailed.ts | 2 +- .../IAirdropERC20/write/airdropERC20.ts | 4 +- .../events/TokensClaimed.ts | 2 +- .../IAirdropERC20Claimable/write/claim.ts | 4 +- .../IBurnableERC20/write/burn.ts | 4 +- .../IBurnableERC20/write/burnFrom.ts | 4 +- .../IDropERC20/events/TokensClaimed.ts | 2 +- .../IDropERC20/read/claimCondition.ts | 5 +- .../read/getActiveClaimConditionId.ts | 5 +- .../IDropERC20/read/getClaimConditionById.ts | 4 +- .../__generated__/IDropERC20/write/claim.ts | 4 +- .../IDropERC20/write/setClaimConditions.ts | 4 +- .../__generated__/IERC20/events/Approval.ts | 2 +- .../__generated__/IERC20/events/Transfer.ts | 2 +- .../__generated__/IERC20/read/allowance.ts | 4 +- .../__generated__/IERC20/read/balanceOf.ts | 4 +- .../__generated__/IERC20/read/decimals.ts | 5 +- .../__generated__/IERC20/read/totalSupply.ts | 5 +- .../__generated__/IERC20/write/approve.ts | 4 +- .../__generated__/IERC20/write/transfer.ts | 4 +- .../IERC20/write/transferFrom.ts | 4 +- .../IERC20Permit/read/DOMAIN_SEPARATOR.ts | 5 +- .../__generated__/IERC20Permit/read/nonces.ts | 4 +- .../IERC20Permit/write/permit.ts | 4 +- .../IMintableERC20/events/TokensMinted.ts | 2 +- .../IMintableERC20/write/mintTo.ts | 4 +- .../events/TokensMintedWithSignature.ts | 2 +- .../ISignatureMintERC20/read/verify.ts | 4 +- .../write/mintWithSignature.ts | 4 +- .../IStaking20/events/RewardsClaimed.ts | 2 +- .../IStaking20/events/TokensStaked.ts | 2 +- .../IStaking20/events/TokensWithdrawn.ts | 2 +- .../IStaking20/read/getStakeInfo.ts | 4 +- .../IStaking20/write/claimRewards.ts | 2 +- .../__generated__/IStaking20/write/stake.ts | 4 +- .../IStaking20/write/withdraw.ts | 4 +- .../ITokenStake/write/depositRewardTokens.ts | 4 +- .../ITokenStake/write/withdrawRewardTokens.ts | 4 +- .../IVotes/events/DelegateChanged.ts | 2 +- .../IVotes/events/DelegateVotesChanged.ts | 2 +- .../__generated__/IVotes/read/delegates.ts | 4 +- .../IVotes/read/getPastTotalSupply.ts | 4 +- .../__generated__/IVotes/read/getPastVotes.ts | 4 +- .../__generated__/IVotes/read/getVotes.ts | 4 +- .../__generated__/IVotes/write/delegate.ts | 4 +- .../IVotes/write/delegateBySig.ts | 4 +- .../__generated__/IWETH/write/deposit.ts | 2 +- .../__generated__/IWETH/write/transfer.ts | 4 +- .../__generated__/IWETH/write/withdraw.ts | 4 +- .../read/isTrustedForwarder.ts | 4 +- .../IERC2981/read/royaltyInfo.ts | 4 +- .../IAccount/write/validateUserOp.ts | 4 +- .../IAccountFactory/events/AccountCreated.ts | 2 +- .../IAccountFactory/events/SignerAdded.ts | 2 +- .../IAccountFactory/events/SignerRemoved.ts | 2 +- .../read/accountImplementation.ts | 5 +- .../IAccountFactory/read/getAccounts.ts | 4 +- .../read/getAccountsOfSigner.ts | 4 +- .../IAccountFactory/read/getAddress.ts | 4 +- .../IAccountFactory/read/getAllAccounts.ts | 5 +- .../IAccountFactory/read/isRegistered.ts | 4 +- .../IAccountFactory/read/totalAccounts.ts | 5 +- .../IAccountFactory/write/createAccount.ts | 4 +- .../IAccountFactory/write/onSignerAdded.ts | 4 +- .../IAccountFactory/write/onSignerRemoved.ts | 4 +- .../events/AdminUpdated.ts | 2 +- .../events/SignerPermissionsUpdated.ts | 2 +- .../read/getAllActiveSigners.ts | 5 +- .../IAccountPermissions/read/getAllAdmins.ts | 5 +- .../IAccountPermissions/read/getAllSigners.ts | 5 +- .../read/getPermissionsForSigner.ts | 4 +- .../read/isActiveSigner.ts | 4 +- .../IAccountPermissions/read/isAdmin.ts | 4 +- .../read/verifySignerPermissionRequest.ts | 4 +- .../write/setPermissionsForSigner.ts | 4 +- .../IEntryPoint/events/AccountDeployed.ts | 2 +- .../IEntryPoint/events/Deposited.ts | 2 +- .../events/SignatureAggregatorChanged.ts | 2 +- .../IEntryPoint/events/StakeLocked.ts | 2 +- .../IEntryPoint/events/StakeUnlocked.ts | 2 +- .../IEntryPoint/events/StakeWithdrawn.ts | 2 +- .../IEntryPoint/events/UserOperationEvent.ts | 2 +- .../events/UserOperationRevertReason.ts | 2 +- .../IEntryPoint/events/Withdrawn.ts | 2 +- .../IEntryPoint/read/balanceOf.ts | 4 +- .../IEntryPoint/read/getDepositInfo.ts | 4 +- .../IEntryPoint/read/getNonce.ts | 4 +- .../IEntryPoint/read/getUserOpHash.ts | 4 +- .../IEntryPoint/write/addStake.ts | 4 +- .../IEntryPoint/write/depositTo.ts | 4 +- .../IEntryPoint/write/getSenderAddress.ts | 4 +- .../IEntryPoint/write/handleAggregatedOps.ts | 4 +- .../IEntryPoint/write/handleOps.ts | 4 +- .../IEntryPoint/write/incrementNonce.ts | 4 +- .../IEntryPoint/write/simulateHandleOp.ts | 4 +- .../IEntryPoint/write/simulateValidation.ts | 4 +- .../IEntryPoint/write/unlockStake.ts | 2 +- .../IEntryPoint/write/withdrawStake.ts | 4 +- .../IEntryPoint/write/withdrawTo.ts | 4 +- .../events/PostOpRevertReason.ts | 2 +- .../IEntryPoint_v07/read/getUserOpHash.ts | 4 +- .../__generated__/IPaymaster/write/postOp.ts | 4 +- .../write/validatePaymasterUserOp.ts | 4 +- .../__generated__/IERC4626/events/Deposit.ts | 2 +- .../__generated__/IERC4626/events/Withdraw.ts | 2 +- .../__generated__/IERC4626/read/asset.ts | 5 +- .../IERC4626/read/convertToAssets.ts | 4 +- .../IERC4626/read/convertToShares.ts | 4 +- .../__generated__/IERC4626/read/maxDeposit.ts | 4 +- .../__generated__/IERC4626/read/maxMint.ts | 4 +- .../__generated__/IERC4626/read/maxRedeem.ts | 4 +- .../IERC4626/read/maxWithdraw.ts | 4 +- .../IERC4626/read/previewDeposit.ts | 4 +- .../IERC4626/read/previewMint.ts | 4 +- .../IERC4626/read/previewRedeem.ts | 4 +- .../IERC4626/read/previewWithdraw.ts | 4 +- .../IERC4626/read/totalAssets.ts | 5 +- .../__generated__/IERC4626/write/deposit.ts | 4 +- .../__generated__/IERC4626/write/mint.ts | 4 +- .../__generated__/IERC4626/write/redeem.ts | 4 +- .../__generated__/IERC4626/write/withdraw.ts | 4 +- .../IERC6551Account/read/isValidSigner.ts | 4 +- .../IERC6551Account/read/state.ts | 5 +- .../IERC6551Account/read/token.ts | 5 +- .../DropERC721/read/verifyClaim.ts | 4 +- .../DropERC721/write/freezeBatchBaseURI.ts | 4 +- .../DropERC721/write/setMaxTotalSupply.ts | 4 +- .../DropERC721/write/updateBatchBaseURI.ts | 4 +- .../IAirdropERC721/events/AirdropFailed.ts | 2 +- .../IAirdropERC721/write/airdropERC721.ts | 4 +- .../events/TokensClaimed.ts | 2 +- .../IAirdropERC721Claimable/write/claim.ts | 4 +- .../read/getBaseURICount.ts | 5 +- .../read/getBatchIdAtIndex.ts | 4 +- .../IBurnableERC721/write/burn.ts | 4 +- .../IClaimableERC721/events/TokensClaimed.ts | 2 +- .../IClaimableERC721/write/claim.ts | 4 +- .../IDelayedReveal/events/TokenURIRevealed.ts | 2 +- .../IDelayedReveal/read/encryptDecrypt.ts | 4 +- .../IDelayedReveal/read/encryptedData.ts | 4 +- .../IDelayedReveal/write/reveal.ts | 4 +- .../IDrop/events/TokensClaimed.ts | 2 +- .../IDrop/read/baseURIIndices.ts | 4 +- .../IDrop/read/claimCondition.ts | 5 +- .../IDrop/read/getActiveClaimConditionId.ts | 5 +- .../IDrop/read/getClaimConditionById.ts | 4 +- .../IDrop/read/nextTokenIdToClaim.ts | 5 +- .../erc721/__generated__/IDrop/write/claim.ts | 4 +- .../IDrop/write/setClaimConditions.ts | 4 +- .../IDropSinglePhase/events/TokensClaimed.ts | 2 +- .../IDropSinglePhase/read/claimCondition.ts | 5 +- .../IDropSinglePhase/write/claim.ts | 4 +- .../write/setClaimConditions.ts | 4 +- .../__generated__/IERC721A/events/Approval.ts | 2 +- .../IERC721A/events/ApprovalForAll.ts | 2 +- .../__generated__/IERC721A/events/Transfer.ts | 2 +- .../__generated__/IERC721A/read/balanceOf.ts | 4 +- .../IERC721A/read/getApproved.ts | 4 +- .../IERC721A/read/isApprovedForAll.ts | 4 +- .../__generated__/IERC721A/read/name.ts | 5 +- .../__generated__/IERC721A/read/ownerOf.ts | 4 +- .../IERC721A/read/startTokenId.ts | 5 +- .../__generated__/IERC721A/read/symbol.ts | 5 +- .../__generated__/IERC721A/read/tokenURI.ts | 4 +- .../IERC721A/read/totalSupply.ts | 5 +- .../__generated__/IERC721A/write/approve.ts | 4 +- .../IERC721A/write/safeTransferFrom.ts | 4 +- .../IERC721A/write/setApprovalForAll.ts | 4 +- .../IERC721A/write/transferFrom.ts | 4 +- .../events/ConsecutiveTransfer.ts | 2 +- .../IERC721AQueryable/read/tokensOfOwner.ts | 4 +- .../IERC721AQueryable/read/tokensOfOwnerIn.ts | 4 +- .../read/nextTokenIdToMint.ts | 5 +- .../IERC721Enumerable/read/tokenByIndex.ts | 4 +- .../read/tokenOfOwnerByIndex.ts | 4 +- .../IERC721Receiver/write/onERC721Received.ts | 4 +- .../ILazyMint/events/TokensLazyMinted.ts | 2 +- .../__generated__/ILazyMint/write/lazyMint.ts | 4 +- .../IMintableERC721/events/TokensMinted.ts | 2 +- .../IMintableERC721/write/mintTo.ts | 4 +- .../INFTMetadata/read/supportsInterface.ts | 4 +- .../INFTMetadata/write/freezeMetadata.ts | 2 +- .../INFTMetadata/write/setTokenURI.ts | 4 +- .../INFTStake/write/depositRewardTokens.ts | 4 +- .../INFTStake/write/withdrawRewardTokens.ts | 4 +- .../ISharedMetadata/read/sharedMetadata.ts | 5 +- .../write/setSharedMetadata.ts | 4 +- .../events/SharedMetadataDeleted.ts | 2 +- .../events/SharedMetadataUpdated.ts | 2 +- .../read/getAllSharedMetadata.ts | 5 +- .../write/deleteSharedMetadata.ts | 4 +- .../write/setSharedMetadata.ts | 4 +- .../events/TokensMintedWithSignature.ts | 2 +- .../ISignatureMintERC721/read/verify.ts | 4 +- .../write/mintWithSignature.ts | 4 +- .../events/TokensMintedWithSignature.ts | 2 +- .../ISignatureMintERC721_v2/read/verify.ts | 4 +- .../write/mintWithSignature.ts | 4 +- .../IStaking721/events/RewardsClaimed.ts | 2 +- .../IStaking721/events/TokensStaked.ts | 2 +- .../IStaking721/events/TokensWithdrawn.ts | 2 +- .../IStaking721/read/getStakeInfo.ts | 4 +- .../IStaking721/write/claimRewards.ts | 2 +- .../__generated__/IStaking721/write/stake.ts | 4 +- .../IStaking721/write/withdraw.ts | 4 +- .../LoyaltyCard/events/TokensMinted.ts | 2 +- .../events/TokensMintedWithSignature.ts | 2 +- .../LoyaltyCard/read/nextTokenIdToMint.ts | 5 +- .../LoyaltyCard/read/supportsInterface.ts | 4 +- .../LoyaltyCard/read/tokenURI.ts | 4 +- .../LoyaltyCard/read/totalMinted.ts | 5 +- .../__generated__/LoyaltyCard/write/cancel.ts | 4 +- .../LoyaltyCard/write/initialize.ts | 4 +- .../__generated__/LoyaltyCard/write/mintTo.ts | 4 +- .../LoyaltyCard/write/mintWithSignature.ts | 4 +- .../__generated__/LoyaltyCard/write/revoke.ts | 4 +- .../Multiwrap/events/TokensUnwrapped.ts | 2 +- .../Multiwrap/events/TokensWrapped.ts | 2 +- .../Multiwrap/read/contractType.ts | 5 +- .../Multiwrap/read/contractVersion.ts | 5 +- .../Multiwrap/read/getWrappedContents.ts | 4 +- .../Multiwrap/read/nextTokenIdToMint.ts | 5 +- .../Multiwrap/read/supportsInterface.ts | 4 +- .../__generated__/Multiwrap/read/tokenURI.ts | 4 +- .../Multiwrap/write/initialize.ts | 4 +- .../__generated__/Multiwrap/write/unwrap.ts | 4 +- .../__generated__/Multiwrap/write/wrap.ts | 4 +- .../IRouterState/read/getAllExtensions.ts | 5 +- .../IERC7579Account/read/accountId.ts | 5 +- .../IERC7579Account/read/isModuleInstalled.ts | 4 +- .../IERC7579Account/read/isValidSignature.ts | 4 +- .../read/supportsExecutionMode.ts | 4 +- .../IERC7579Account/read/supportsModule.ts | 4 +- .../IERC7579Account/write/execute.ts | 4 +- .../write/executeFromExecutor.ts | 4 +- .../IERC7579Account/write/installModule.ts | 4 +- .../IERC7579Account/write/uninstallModule.ts | 4 +- .../events/OwnershipTransferred.ts | 2 +- .../ModularAccountFactory/events/Upgraded.ts | 2 +- .../read/accountImplementation.ts | 5 +- .../ModularAccountFactory/read/entrypoint.ts | 5 +- .../ModularAccountFactory/read/getAddress.ts | 4 +- .../read/implementation.ts | 5 +- .../ModularAccountFactory/read/owner.ts | 5 +- .../ModularAccountFactory/write/addStake.ts | 4 +- .../write/createAccountWithModules.ts | 4 +- .../write/renounceOwnership.ts | 2 +- .../write/transferOwnership.ts | 4 +- .../write/unlockStake.ts | 2 +- .../ModularAccountFactory/write/upgradeTo.ts | 4 +- .../ModularAccountFactory/write/withdraw.ts | 4 +- .../write/withdrawStake.ts | 4 +- .../MinimalAccount/events/Executed.ts | 2 +- .../MinimalAccount/events/SessionCreated.ts | 2 +- .../MinimalAccount/read/eip712Domain.ts | 5 +- .../read/getCallPoliciesForSigner.ts | 4 +- .../read/getSessionExpirationForSigner.ts | 4 +- .../read/getSessionStateForSigner.ts | 4 +- .../read/getTransferPoliciesForSigner.ts | 4 +- .../MinimalAccount/read/isWildcardSigner.ts | 4 +- .../write/createSessionWithSig.ts | 4 +- .../MinimalAccount/write/execute.ts | 4 +- .../MinimalAccount/write/executeWithSig.ts | 4 +- .../__generated__/IBundler/read/idGateway.ts | 5 +- .../__generated__/IBundler/read/keyGateway.ts | 5 +- .../__generated__/IBundler/read/price.ts | 4 +- .../__generated__/IBundler/write/register.ts | 4 +- .../IIdGateway/read/REGISTER_TYPEHASH.ts | 5 +- .../IIdGateway/read/idRegistry.ts | 5 +- .../__generated__/IIdGateway/read/price.ts | 4 +- .../IIdGateway/read/storageRegistry.ts | 5 +- .../IIdGateway/write/register.ts | 4 +- .../IIdGateway/write/registerFor.ts | 4 +- .../IIdRegistry/events/AdminReset.ts | 2 +- .../events/ChangeRecoveryAddress.ts | 2 +- .../IIdRegistry/events/Recover.ts | 2 +- .../IIdRegistry/events/Register.ts | 2 +- .../IIdRegistry/events/Transfer.ts | 2 +- .../read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts | 5 +- .../TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts | 5 +- .../IIdRegistry/read/TRANSFER_TYPEHASH.ts | 5 +- .../IIdRegistry/read/custodyOf.ts | 4 +- .../IIdRegistry/read/gatewayFrozen.ts | 5 +- .../IIdRegistry/read/idCounter.ts | 5 +- .../IIdRegistry/read/idGateway.ts | 5 +- .../__generated__/IIdRegistry/read/idOf.ts | 4 +- .../IIdRegistry/read/recoveryOf.ts | 4 +- .../IIdRegistry/read/verifyFidSignature.ts | 4 +- .../write/changeRecoveryAddress.ts | 4 +- .../write/changeRecoveryAddressFor.ts | 4 +- .../IIdRegistry/write/recover.ts | 4 +- .../IIdRegistry/write/recoverFor.ts | 4 +- .../IIdRegistry/write/transfer.ts | 4 +- .../write/transferAndChangeRecovery.ts | 4 +- .../write/transferAndChangeRecoveryFor.ts | 4 +- .../IIdRegistry/write/transferFor.ts | 4 +- .../IKeyGateway/read/ADD_TYPEHASH.ts | 5 +- .../IKeyGateway/read/keyRegistry.ts | 5 +- .../__generated__/IKeyGateway/read/nonces.ts | 4 +- .../__generated__/IKeyGateway/write/add.ts | 4 +- .../__generated__/IKeyGateway/write/addFor.ts | 4 +- .../__generated__/IKeyRegistry/events/Add.ts | 2 +- .../IKeyRegistry/events/AdminReset.ts | 2 +- .../IKeyRegistry/events/Remove.ts | 2 +- .../IKeyRegistry/read/REMOVE_TYPEHASH.ts | 5 +- .../IKeyRegistry/read/gatewayFrozen.ts | 5 +- .../IKeyRegistry/read/idRegistry.ts | 5 +- .../__generated__/IKeyRegistry/read/keyAt.ts | 4 +- .../IKeyRegistry/read/keyDataOf.ts | 4 +- .../IKeyRegistry/read/keyGateway.ts | 5 +- .../__generated__/IKeyRegistry/read/keysOf.ts | 4 +- .../IKeyRegistry/read/maxKeysPerFid.ts | 5 +- .../IKeyRegistry/read/totalKeys.ts | 4 +- .../IKeyRegistry/write/remove.ts | 4 +- .../IKeyRegistry/write/removeFor.ts | 4 +- .../read/deprecationTimestamp.ts | 5 +- .../IStorageRegistry/read/maxUnits.ts | 5 +- .../IStorageRegistry/read/price.ts | 4 +- .../IStorageRegistry/read/rentedUnits.ts | 5 +- .../IStorageRegistry/read/unitPrice.ts | 5 +- .../IStorageRegistry/read/usdUnitPrice.ts | 5 +- .../IStorageRegistry/write/batchRent.ts | 4 +- .../IStorageRegistry/write/rent.ts | 4 +- .../FollowNFT/read/getFollowData.ts | 4 +- .../FollowNFT/read/getFollowTimestamp.ts | 4 +- .../FollowNFT/read/getFollowTokenId.ts | 4 +- .../FollowNFT/read/getFollowerCount.ts | 5 +- .../FollowNFT/read/getFollowerProfileId.ts | 4 +- .../read/getOriginalFollowTimestamp.ts | 4 +- .../read/getProfileIdAllowedToRecover.ts | 4 +- .../FollowNFT/read/isFollowing.ts | 4 +- .../FollowNFT/read/mintTimestampOf.ts | 4 +- .../LensHandle/read/getHandle.ts | 4 +- .../read/getHandleTokenURIContract.ts | 5 +- .../LensHandle/read/getLocalName.ts | 4 +- .../LensHandle/read/getTokenId.ts | 4 +- .../lens/__generated__/LensHub/read/exists.ts | 4 +- .../LensHub/read/getContentURI.ts | 4 +- .../__generated__/LensHub/read/getProfile.ts | 4 +- .../LensHub/read/getProfileIdByHandleHash.ts | 4 +- .../LensHub/read/getPublication.ts | 4 +- .../LensHub/read/mintTimestampOf.ts | 4 +- .../lens/__generated__/LensHub/read/nonces.ts | 4 +- .../__generated__/LensHub/read/tokenDataOf.ts | 4 +- .../ModuleRegistry/read/getModuleTypes.ts | 4 +- .../read/isErc20CurrencyRegistered.ts | 4 +- .../ModuleRegistry/read/isModuleRegistered.ts | 4 +- .../read/isModuleRegisteredAs.ts | 4 +- .../read/getDefaultHandle.ts | 4 +- .../TokenHandleRegistry/read/nonces.ts | 4 +- .../TokenHandleRegistry/read/resolve.ts | 4 +- .../events/BuyerApprovedForListing.ts | 2 +- .../events/CancelledListing.ts | 2 +- .../events/CurrencyApprovedForListing.ts | 2 +- .../IDirectListings/events/NewListing.ts | 2 +- .../IDirectListings/events/NewSale.ts | 2 +- .../IDirectListings/events/UpdatedListing.ts | 2 +- .../read/currencyPriceForListing.ts | 4 +- .../IDirectListings/read/getAllListings.ts | 4 +- .../read/getAllValidListings.ts | 4 +- .../IDirectListings/read/getListing.ts | 4 +- .../read/isBuyerApprovedForListing.ts | 4 +- .../read/isCurrencyApprovedForListing.ts | 4 +- .../IDirectListings/read/totalListings.ts | 5 +- .../write/approveBuyerForListing.ts | 4 +- .../write/approveCurrencyForListing.ts | 4 +- .../IDirectListings/write/buyFromListing.ts | 4 +- .../IDirectListings/write/cancelListing.ts | 4 +- .../IDirectListings/write/createListing.ts | 4 +- .../IDirectListings/write/updateListing.ts | 4 +- .../IEnglishAuctions/events/AuctionClosed.ts | 2 +- .../events/CancelledAuction.ts | 2 +- .../IEnglishAuctions/events/NewAuction.ts | 2 +- .../IEnglishAuctions/events/NewBid.ts | 2 +- .../IEnglishAuctions/read/getAllAuctions.ts | 4 +- .../read/getAllValidAuctions.ts | 4 +- .../IEnglishAuctions/read/getAuction.ts | 4 +- .../IEnglishAuctions/read/getWinningBid.ts | 4 +- .../IEnglishAuctions/read/isAuctionExpired.ts | 4 +- .../IEnglishAuctions/read/isNewWinningBid.ts | 4 +- .../IEnglishAuctions/read/totalAuctions.ts | 5 +- .../IEnglishAuctions/write/bidInAuction.ts | 4 +- .../IEnglishAuctions/write/cancelAuction.ts | 4 +- .../write/collectAuctionPayout.ts | 4 +- .../write/collectAuctionTokens.ts | 4 +- .../IEnglishAuctions/write/createAuction.ts | 4 +- .../IMarketplace/events/AuctionClosed.ts | 2 +- .../IMarketplace/events/ListingAdded.ts | 2 +- .../IMarketplace/events/ListingRemoved.ts | 2 +- .../IMarketplace/events/ListingUpdated.ts | 2 +- .../IMarketplace/events/NewOffer.ts | 2 +- .../IMarketplace/events/NewSale.ts | 2 +- .../events/PlatformFeeInfoUpdated.ts | 2 +- .../IMarketplace/read/contractType.ts | 5 +- .../IMarketplace/read/contractURI.ts | 5 +- .../IMarketplace/read/contractVersion.ts | 5 +- .../IMarketplace/read/getPlatformFeeInfo.ts | 5 +- .../IMarketplace/write/acceptOffer.ts | 4 +- .../__generated__/IMarketplace/write/buy.ts | 4 +- .../IMarketplace/write/cancelDirectListing.ts | 4 +- .../IMarketplace/write/closeAuction.ts | 4 +- .../IMarketplace/write/createListing.ts | 4 +- .../__generated__/IMarketplace/write/offer.ts | 4 +- .../IMarketplace/write/setContractURI.ts | 4 +- .../IMarketplace/write/setPlatformFeeInfo.ts | 4 +- .../IMarketplace/write/updateListing.ts | 4 +- .../IOffers/events/AcceptedOffer.ts | 2 +- .../IOffers/events/CancelledOffer.ts | 2 +- .../__generated__/IOffers/events/NewOffer.ts | 2 +- .../IOffers/read/getAllOffers.ts | 4 +- .../IOffers/read/getAllValidOffers.ts | 4 +- .../__generated__/IOffers/read/getOffer.ts | 4 +- .../__generated__/IOffers/read/totalOffers.ts | 5 +- .../IOffers/write/acceptOffer.ts | 4 +- .../IOffers/write/cancelOffer.ts | 4 +- .../__generated__/IOffers/write/makeOffer.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/getAllMetadataBatches.ts | 5 +- .../read/getBatchIndex.ts | 4 +- .../read/getMetadataBatch.ts | 4 +- .../read/getModuleConfig.ts | 5 +- .../BatchMetadataERC1155/write/setBaseURI.ts | 4 +- .../write/uploadMetadata.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/getAllMetadataBatches.ts | 5 +- .../BatchMetadataERC721/read/getBatchIndex.ts | 4 +- .../read/getMetadataBatch.ts | 4 +- .../read/getModuleConfig.ts | 5 +- .../BatchMetadataERC721/write/setBaseURI.ts | 4 +- .../write/uploadMetadata.ts | 4 +- .../ClaimableERC1155/module/install.ts | 4 +- .../read/getClaimConditionByTokenId.ts | 4 +- .../ClaimableERC1155/read/getSaleConfig.ts | 5 +- .../write/setClaimConditionByTokenId.ts | 4 +- .../ClaimableERC1155/write/setSaleConfig.ts | 4 +- .../ClaimableERC20/module/install.ts | 4 +- .../ClaimableERC20/read/getClaimCondition.ts | 5 +- .../ClaimableERC20/read/getSaleConfig.ts | 5 +- .../ClaimableERC20/write/setClaimCondition.ts | 4 +- .../ClaimableERC20/write/setSaleConfig.ts | 4 +- .../ClaimableERC721/module/install.ts | 4 +- .../ClaimableERC721/read/getClaimCondition.ts | 5 +- .../ClaimableERC721/read/getSaleConfig.ts | 5 +- .../write/setClaimCondition.ts | 4 +- .../ClaimableERC721/write/setSaleConfig.ts | 4 +- .../__generated__/ERC1155Core/write/burn.ts | 4 +- .../ERC1155Core/write/initialize.ts | 4 +- .../__generated__/ERC1155Core/write/mint.ts | 4 +- .../ERC1155Core/write/mintWithSignature.ts | 4 +- .../__generated__/ERC20Core/write/burn.ts | 4 +- .../ERC20Core/write/initialize.ts | 4 +- .../__generated__/ERC20Core/write/mint.ts | 4 +- .../ERC20Core/write/mintWithSignature.ts | 4 +- .../ERC721Core/read/totalMinted.ts | 5 +- .../__generated__/ERC721Core/write/burn.ts | 4 +- .../ERC721Core/write/initialize.ts | 4 +- .../__generated__/ERC721Core/write/mint.ts | 4 +- .../ERC721Core/write/mintWithSignature.ts | 4 +- .../IModularCore/read/getInstalledModules.ts | 5 +- .../read/getSupportedCallbackFunctions.ts | 5 +- .../IModularCore/read/supportsInterface.ts | 4 +- .../IModularCore/write/installModule.ts | 4 +- .../IModularCore/write/uninstallModule.ts | 4 +- .../IModule/read/getModuleConfig.ts | 5 +- .../MintableERC1155/module/install.ts | 4 +- .../MintableERC1155/read/getSaleConfig.ts | 5 +- .../MintableERC1155/write/setSaleConfig.ts | 4 +- .../MintableERC1155/write/setTokenURI.ts | 4 +- .../MintableERC20/module/install.ts | 4 +- .../MintableERC20/read/getSaleConfig.ts | 5 +- .../MintableERC20/write/setSaleConfig.ts | 4 +- .../MintableERC721/events/NewMetadataBatch.ts | 2 +- .../MintableERC721/module/install.ts | 4 +- .../MintableERC721/read/getSaleConfig.ts | 5 +- .../MintableERC721/write/setSaleConfig.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/onTokenURI.ts | 4 +- .../write/setSharedMetadata.ts | 4 +- .../events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../events/OwnershipTransferred.ts | 2 +- .../OwnableRoles/events/RolesUpdated.ts | 2 +- .../OwnableRoles/read/hasAllRoles.ts | 4 +- .../OwnableRoles/read/hasAnyRole.ts | 4 +- .../__generated__/OwnableRoles/read/owner.ts | 5 +- .../read/ownershipHandoverExpiresAt.ts | 4 +- .../OwnableRoles/read/rolesOf.ts | 4 +- .../write/cancelOwnershipHandover.ts | 2 +- .../write/completeOwnershipHandover.ts | 4 +- .../OwnableRoles/write/grantRoles.ts | 4 +- .../OwnableRoles/write/renounceOwnership.ts | 2 +- .../OwnableRoles/write/renounceRoles.ts | 4 +- .../write/requestOwnershipHandover.ts | 2 +- .../OwnableRoles/write/revokeRoles.ts | 4 +- .../OwnableRoles/write/transferOwnership.ts | 4 +- .../events/DefaultRoyaltyUpdated.ts | 2 +- .../events/TokenRoyaltyUpdated.ts | 2 +- .../RoyaltyERC1155/module/install.ts | 4 +- .../read/getDefaultRoyaltyInfo.ts | 5 +- .../read/getRoyaltyInfoForToken.ts | 4 +- .../read/getTransferValidationFunction.ts | 5 +- .../read/getTransferValidator.ts | 5 +- .../RoyaltyERC1155/read/royaltyInfo.ts | 4 +- .../write/setDefaultRoyaltyInfo.ts | 4 +- .../write/setRoyaltyInfoForToken.ts | 4 +- .../write/setTransferValidator.ts | 4 +- .../events/DefaultRoyaltyUpdated.ts | 2 +- .../events/TokenRoyaltyUpdated.ts | 2 +- .../RoyaltyERC721/module/install.ts | 4 +- .../read/getDefaultRoyaltyInfo.ts | 5 +- .../read/getRoyaltyInfoForToken.ts | 4 +- .../read/getTransferValidationFunction.ts | 5 +- .../read/getTransferValidator.ts | 5 +- .../RoyaltyERC721/read/royaltyInfo.ts | 4 +- .../write/setDefaultRoyaltyInfo.ts | 4 +- .../write/setRoyaltyInfoForToken.ts | 4 +- .../write/setTransferValidator.ts | 4 +- .../module/install.ts | 4 +- .../read/getModuleConfig.ts | 5 +- .../read/getNextTokenId.ts | 5 +- .../write/updateTokenIdERC1155.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/isTransferEnabled.ts | 5 +- .../read/isTransferEnabledFor.ts | 4 +- .../write/setTransferable.ts | 4 +- .../write/setTransferableFor.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/isTransferEnabled.ts | 5 +- .../read/isTransferEnabledFor.ts | 4 +- .../write/setTransferable.ts | 4 +- .../write/setTransferableFor.ts | 4 +- .../read/encodeBytesOnInstall.ts | 5 +- .../read/isTransferEnabled.ts | 5 +- .../read/isTransferEnabledFor.ts | 4 +- .../write/setTransferable.ts | 4 +- .../write/setTransferableFor.ts | 4 +- .../IMulticall3/read/getBasefee.ts | 5 +- .../IMulticall3/read/getBlockHash.ts | 4 +- .../IMulticall3/read/getBlockNumber.ts | 5 +- .../IMulticall3/read/getChainId.ts | 5 +- .../read/getCurrentBlockCoinbase.ts | 5 +- .../read/getCurrentBlockDifficulty.ts | 5 +- .../read/getCurrentBlockGasLimit.ts | 5 +- .../read/getCurrentBlockTimestamp.ts | 5 +- .../IMulticall3/read/getEthBalance.ts | 4 +- .../IMulticall3/read/getLastBlockHash.ts | 5 +- .../IMulticall3/write/aggregate.ts | 4 +- .../IMulticall3/write/aggregate3.ts | 4 +- .../IMulticall3/write/aggregate3Value.ts | 4 +- .../IMulticall3/write/blockAndAggregate.ts | 4 +- .../IMulticall3/write/tryAggregate.ts | 4 +- .../IMulticall3/write/tryBlockAndAggregate.ts | 4 +- .../__generated__/IPack/events/PackCreated.ts | 2 +- .../__generated__/IPack/events/PackOpened.ts | 2 +- .../__generated__/IPack/events/PackUpdated.ts | 2 +- .../__generated__/IPack/read/canUpdatePack.ts | 4 +- .../IPack/read/getPackContents.ts | 4 +- .../IPack/read/getTokenCountOfBundle.ts | 4 +- .../IPack/read/getTokenOfBundle.ts | 4 +- .../IPack/read/getUriOfBundle.ts | 4 +- .../IPack/write/addPackContents.ts | 4 +- .../__generated__/IPack/write/createPack.ts | 4 +- .../__generated__/IPack/write/openPack.ts | 4 +- .../events/PackOpenRequested.ts | 2 +- .../events/PackRandomnessFulfilled.ts | 2 +- .../IPackVRFDirect/read/canClaimRewards.ts | 4 +- .../IPackVRFDirect/write/claimRewards.ts | 2 +- .../write/openPackAndClaimRewards.ts | 4 +- .../IPermissions/events/RoleAdminChanged.ts | 2 +- .../IPermissions/events/RoleGranted.ts | 2 +- .../IPermissions/events/RoleRevoked.ts | 2 +- .../IPermissions/read/getRoleAdmin.ts | 4 +- .../IPermissions/read/hasRole.ts | 4 +- .../IPermissions/write/grantRole.ts | 4 +- .../IPermissions/write/renounceRole.ts | 4 +- .../IPermissions/write/revokeRole.ts | 4 +- .../events/RoleAdminChanged.ts | 2 +- .../events/RoleGranted.ts | 2 +- .../events/RoleRevoked.ts | 2 +- .../read/getRoleAdmin.ts | 4 +- .../read/getRoleMember.ts | 4 +- .../read/getRoleMemberCount.ts | 4 +- .../IPermissionsEnumerable/read/hasRole.ts | 4 +- .../IPermissionsEnumerable/write/grantRole.ts | 4 +- .../write/renounceRole.ts | 4 +- .../write/revokeRole.ts | 4 +- .../DropERC1155/write/initialize.ts | 4 +- .../DropERC20/write/initialize.ts | 4 +- .../DropERC721/write/initialize.ts | 4 +- .../Marketplace/write/initialize.ts | 4 +- .../OpenEditionERC721/write/initialize.ts | 4 +- .../__generated__/Pack/write/initialize.ts | 4 +- .../__generated__/Split/write/initialize.ts | 4 +- .../TokenERC1155/write/initialize.ts | 4 +- .../TokenERC20/write/initialize.ts | 4 +- .../TokenERC721/write/initialize.ts | 4 +- .../VoteERC20/write/initialize.ts | 4 +- .../split/__generated__/Split/read/payee.ts | 4 +- .../__generated__/Split/read/payeeCount.ts | 5 +- .../__generated__/Split/read/releasable.ts | 4 +- .../__generated__/Split/read/released.ts | 4 +- .../split/__generated__/Split/read/shares.ts | 4 +- .../__generated__/Split/read/totalReleased.ts | 5 +- .../__generated__/Split/read/totalShares.ts | 5 +- .../__generated__/Split/write/distribute.ts | 2 +- .../__generated__/Split/write/release.ts | 4 +- .../IArbWasm/read/codehashVersion.ts | 4 +- .../IArbWasm/write/activateProgram.ts | 4 +- .../write/stylus_constructor.ts | 2 +- .../IStylusDeployer/write/deploy.ts | 4 +- .../__generated__/IAppURI/read/appURI.ts | 5 +- .../__generated__/IAppURI/write/setAppURI.ts | 4 +- .../IContractFactory/events/ProxyDeployed.ts | 2 +- .../events/ProxyDeployedV2.ts | 2 +- .../write/deployProxyByImplementation.ts | 4 +- .../write/deployProxyByImplementationV2.ts | 4 +- .../events/ContractPublished.ts | 2 +- .../events/ContractUnpublished.ts | 2 +- .../events/PublisherProfileUpdated.ts | 2 +- .../read/getAllPublishedContracts.ts | 4 +- .../read/getPublishedContract.ts | 4 +- .../read/getPublishedContractVersions.ts | 4 +- .../read/getPublishedUriFromCompilerUri.ts | 4 +- .../read/getPublisherProfileUri.ts | 4 +- .../write/publishContract.ts | 4 +- .../write/setPublisherProfileUri.ts | 4 +- .../write/unpublishContract.ts | 4 +- .../IRulesEngine/events/RuleCreated.ts | 2 +- .../IRulesEngine/events/RuleDeleted.ts | 2 +- .../events/RulesEngineOverriden.ts | 2 +- .../IRulesEngine/read/getAllRules.ts | 5 +- .../read/getRulesEngineOverride.ts | 5 +- .../IRulesEngine/read/getScore.ts | 4 +- .../write/createRuleMultiplicative.ts | 4 +- .../IRulesEngine/write/createRuleThreshold.ts | 4 +- .../IRulesEngine/write/deleteRule.ts | 4 +- .../write/setRulesEngineOverride.ts | 4 +- .../events/RequestExecuted.ts | 2 +- .../ISignatureAction/read/verify.ts | 4 +- .../__generated__/ITWFee/read/getFeeInfo.ts | 4 +- .../ITWMultichainRegistry/events/Added.ts | 2 +- .../ITWMultichainRegistry/events/Deleted.ts | 2 +- .../ITWMultichainRegistry/read/count.ts | 4 +- .../ITWMultichainRegistry/read/getAll.ts | 4 +- .../read/getMetadataUri.ts | 4 +- .../ITWMultichainRegistry/write/add.ts | 4 +- .../ITWMultichainRegistry/write/remove.ts | 4 +- .../IThirdwebContract/read/contractType.ts | 5 +- .../IThirdwebContract/read/contractURI.ts | 5 +- .../IThirdwebContract/read/contractVersion.ts | 5 +- .../IThirdwebContract/write/setContractURI.ts | 4 +- .../ERC20Asset/events/Approval.ts | 2 +- .../events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../ERC20Asset/events/OwnershipTransferred.ts | 2 +- .../ERC20Asset/events/Transfer.ts | 2 +- .../ERC20Asset/read/DOMAIN_SEPARATOR.ts | 5 +- .../ERC20Asset/read/allowance.ts | 4 +- .../ERC20Asset/read/balanceOf.ts | 4 +- .../ERC20Asset/read/contractURI.ts | 5 +- .../__generated__/ERC20Asset/read/decimals.ts | 5 +- .../__generated__/ERC20Asset/read/name.ts | 5 +- .../__generated__/ERC20Asset/read/nonces.ts | 4 +- .../__generated__/ERC20Asset/read/owner.ts | 5 +- .../read/ownershipHandoverExpiresAt.ts | 4 +- .../ERC20Asset/read/supportsInterface.ts | 4 +- .../__generated__/ERC20Asset/read/symbol.ts | 5 +- .../ERC20Asset/read/totalSupply.ts | 5 +- .../__generated__/ERC20Asset/write/approve.ts | 4 +- .../__generated__/ERC20Asset/write/burn.ts | 4 +- .../ERC20Asset/write/burnFrom.ts | 4 +- .../write/cancelOwnershipHandover.ts | 2 +- .../write/completeOwnershipHandover.ts | 4 +- .../ERC20Asset/write/initialize.ts | 24 +- .../__generated__/ERC20Asset/write/permit.ts | 4 +- .../ERC20Asset/write/renounceOwnership.ts | 2 +- .../write/requestOwnershipHandover.ts | 2 +- .../ERC20Asset/write/setContractURI.ts | 4 +- .../ERC20Asset/write/transfer.ts | 4 +- .../ERC20Asset/write/transferFrom.ts | 4 +- .../ERC20Asset/write/transferOwnership.ts | 4 +- .../ERC20Entrypoint/events/Created.ts | 2 +- .../events/ImplementationAdded.ts | 2 +- .../events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../events/OwnershipTransferred.ts | 2 +- ...{RouterUpdated.ts => PoolRouterUpdated.ts} | 10 +- .../events/SwapRouterUpdated.ts | 24 + .../ERC20Entrypoint/events/Upgraded.ts | 2 +- .../ERC20Entrypoint/read/getAirdrop.ts | 5 +- .../ERC20Entrypoint/read/getImplementation.ts | 4 +- .../read/getPoolRouter.ts} | 36 +- .../ERC20Entrypoint/read/getReward.ts | 20 +- .../ERC20Entrypoint/read/getSwapRouter.ts | 71 + .../ERC20Entrypoint/read/guardSalt.ts | 4 +- .../ERC20Entrypoint/read/owner.ts | 5 +- .../read/ownershipHandoverExpiresAt.ts | 4 +- .../ERC20Entrypoint/read/predictAddress.ts | 4 +- .../read/predictAddressByConfig.ts | 4 +- .../ERC20Entrypoint/read/proxiableUUID.ts | 5 +- .../write/addImplementation.ts | 4 +- .../ERC20Entrypoint/write/buy.ts | 196 -- .../write/cancelOwnershipHandover.ts | 2 +- .../ERC20Entrypoint/write/claimReward.ts | 4 +- .../write/completeOwnershipHandover.ts | 4 +- .../ERC20Entrypoint/write/create.ts | 4 +- .../ERC20Entrypoint/write/createById.ts | 4 +- .../write/createByImplementationConfig.ts | 4 +- .../ERC20Entrypoint/write/distribute.ts | 4 +- .../ERC20Entrypoint/write/initialize.ts | 32 +- .../write/renounceOwnership.ts | 2 +- .../write/requestOwnershipHandover.ts | 2 +- .../ERC20Entrypoint/write/sell.ts | 191 -- .../ERC20Entrypoint/write/setAirdrop.ts | 4 +- .../{setRewardLocker.ts => setPoolRouter.ts} | 72 +- .../ERC20Entrypoint/write/setSwapRouter.ts | 142 + .../{Router => ERC20Entrypoint}/write/swap.ts | 46 +- .../write/transferOwnership.ts | 4 +- .../ERC20Entrypoint/write/upgradeToAndCall.ts | 4 +- .../ERC20Entrypoint/write/withdraw.ts | 145 + .../FeeManager/events/FeeConfigUpdated.ts | 2 +- .../events/FeeConfigUpdatedBySignature.ts | 2 +- .../events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../FeeManager/events/OwnershipTransferred.ts | 2 +- .../FeeManager/events/RolesUpdated.ts | 2 +- .../FeeManager/read/ROLE_FEE_MANAGER.ts | 5 +- .../FeeManager/read/calculateFee.ts | 4 +- .../FeeManager/read/domainSeparator.ts | 5 +- .../FeeManager/read/eip712Domain.ts | 5 +- .../FeeManager/read/feeConfigs.ts | 4 +- .../FeeManager/read/feeRecipient.ts | 5 +- .../FeeManager/read/getFeeConfig.ts | 4 +- .../FeeManager/read/hasAllRoles.ts | 4 +- .../FeeManager/read/hasAnyRole.ts | 4 +- .../__generated__/FeeManager/read/owner.ts | 5 +- .../read/ownershipHandoverExpiresAt.ts | 4 +- .../__generated__/FeeManager/read/rolesOf.ts | 4 +- .../FeeManager/read/usedNonces.ts | 4 +- .../write/cancelOwnershipHandover.ts | 2 +- .../write/completeOwnershipHandover.ts | 4 +- .../FeeManager/write/grantRoles.ts | 4 +- .../FeeManager/write/renounceOwnership.ts | 2 +- .../FeeManager/write/renounceRoles.ts | 4 +- .../write/requestOwnershipHandover.ts | 2 +- .../FeeManager/write/revokeRoles.ts | 4 +- .../FeeManager/write/setFeeConfig.ts | 4 +- .../write/setFeeConfigBySignature.ts | 4 +- .../FeeManager/write/setFeeRecipient.ts | 4 +- .../FeeManager/write/setTargetFeeConfig.ts | 4 +- .../FeeManager/write/transferOwnership.ts | 4 +- .../events/AdapterDisabled.ts | 0 .../events/AdapterEnabled.ts | 2 +- .../events/Initialized.ts | 0 .../events/OwnershipHandoverCanceled.ts | 2 +- .../events/OwnershipHandoverRequested.ts | 2 +- .../events/OwnershipTransferred.ts | 2 +- .../PoolRouter/events/RewardClaimed.ts | 25 + .../PoolRouter/events/RolesUpdated.ts | 47 + .../{Router => PoolRouter}/events/Upgraded.ts | 2 +- .../PoolRouter/read/getAdapter.ts | 139 + .../PoolRouter/read/getRewardLocker.ts | 129 + .../PoolRouter/read/getRewardPosition.ts | 165 + .../PoolRouter/read/getRewardPositions.ts | 154 + .../PoolRouter/read/hasAllRoles.ts | 133 + .../PoolRouter/read/hasAnyRole.ts | 133 + .../{Router => PoolRouter}/read/owner.ts | 5 +- .../read/ownershipHandoverExpiresAt.ts | 4 +- .../read/proxiableUUID.ts | 5 +- .../__generated__/PoolRouter/read/rolesOf.ts | 122 + .../write/cancelOwnershipHandover.ts | 2 +- .../write/claimRewards.ts} | 70 +- .../write/completeOwnershipHandover.ts | 4 +- .../write/createPool.ts | 77 +- .../write/disableAdapter.ts | 4 +- .../write/enableAdapter.ts | 29 +- .../PoolRouter/write/grantRoles.ts | 147 + .../write/initialize.ts | 18 +- .../write/renounceOwnership.ts | 2 +- .../PoolRouter/write/renounceRoles.ts | 139 + .../write/requestOwnershipHandover.ts | 2 +- .../PoolRouter/write/revokeRoles.ts | 147 + .../write/transferOwnership.ts | 4 +- .../write/upgradeToAndCall.ts | 4 +- .../PoolRouter/write/withdraw.ts | 145 + .../events/OwnershipHandoverCanceled.ts | 42 + .../events/OwnershipHandoverRequested.ts | 42 + .../events/OwnershipTransferred.ts | 49 + .../RewardLocker/events/PositionLocked.ts | 10 +- .../RewardLocker/events/RewardCollected.ts | 10 +- .../RewardLocker/read/feeManager.ts | 5 +- .../read/owner.ts} | 37 +- .../read/ownershipHandoverExpiresAt.ts | 135 + .../read/{positions.ts => position.ts} | 107 +- .../read/positionManager.ts} | 36 +- .../RewardLocker/read/v3PositionManager.ts | 69 - .../RewardLocker/read/v4PositionManager.ts | 69 - .../write/cancelOwnershipHandover.ts | 52 + .../RewardLocker/write/collectReward.ts | 4 +- .../write/completeOwnershipHandover.ts | 148 + .../RewardLocker/write/lockPosition.ts | 44 +- .../RewardLocker/write/renounceOwnership.ts | 50 + .../write/requestOwnershipHandover.ts | 52 + .../RewardLocker/write/transferOwnership.ts | 141 + .../RewardLocker/write/withdraw.ts | 145 + .../Router/events/SwapExecuted.ts | 53 - .../IQuoter/write/quoteExactInput.ts | 4 +- .../IQuoter/write/quoteExactInputSingle.ts | 4 +- .../IQuoter/write/quoteExactOutput.ts | 4 +- .../IQuoter/write/quoteExactOutputSingle.ts | 4 +- .../ISwapRouter/write/exactInput.ts | 4 +- .../ISwapRouter/write/exactInputSingle.ts | 4 +- .../ISwapRouter/write/exactOutput.ts | 4 +- .../ISwapRouter/write/exactOutputSingle.ts | 4 +- .../IUniswapV3Factory/events/OwnerChanged.ts | 2 +- .../IUniswapV3Factory/events/PoolCreated.ts | 2 +- .../read/feeAmountTickSpacing.ts | 4 +- .../IUniswapV3Factory/read/getPool.ts | 4 +- .../IUniswapV3Factory/read/owner.ts | 5 +- .../IUniswapV3Factory/write/createPool.ts | 4 +- .../write/enableFeeAmount.ts | 4 +- .../IUniswapV3Factory/write/setOwner.ts | 4 +- .../UnstoppableDomains/read/exists.ts | 4 +- .../UnstoppableDomains/read/getMany.ts | 4 +- .../UnstoppableDomains/read/namehash.ts | 4 +- .../UnstoppableDomains/read/reverseNameOf.ts | 4 +- .../Vote/read/BALLOT_TYPEHASH.ts | 5 +- .../__generated__/Vote/read/COUNTING_MODE.ts | 5 +- .../Vote/read/getAllProposals.ts | 5 +- .../vote/__generated__/Vote/read/getVotes.ts | 4 +- .../Vote/read/getVotesWithParams.ts | 4 +- .../vote/__generated__/Vote/read/hasVoted.ts | 4 +- .../__generated__/Vote/read/hashProposal.ts | 4 +- .../Vote/read/proposalDeadline.ts | 4 +- .../__generated__/Vote/read/proposalIndex.ts | 5 +- .../Vote/read/proposalSnapshot.ts | 4 +- .../Vote/read/proposalThreshold.ts | 5 +- .../__generated__/Vote/read/proposalVotes.ts | 4 +- .../vote/__generated__/Vote/read/proposals.ts | 4 +- .../vote/__generated__/Vote/read/quorum.ts | 4 +- .../Vote/read/quorumDenominator.ts | 5 +- .../vote/__generated__/Vote/read/state.ts | 4 +- .../vote/__generated__/Vote/read/token.ts | 5 +- .../__generated__/Vote/read/votingDelay.ts | 5 +- .../__generated__/Vote/read/votingPeriod.ts | 5 +- .../vote/__generated__/Vote/write/castVote.ts | 4 +- .../__generated__/Vote/write/castVoteBySig.ts | 4 +- .../Vote/write/castVoteWithReason.ts | 4 +- .../Vote/write/castVoteWithReasonAndParams.ts | 4 +- .../write/castVoteWithReasonAndParamsBySig.ts | 4 +- .../vote/__generated__/Vote/write/execute.ts | 4 +- .../vote/__generated__/Vote/write/propose.ts | 4 +- .../vote/__generated__/Vote/write/relay.ts | 4 +- .../Vote/write/setProposalThreshold.ts | 4 +- .../Vote/write/setVotingDelay.ts | 4 +- .../Vote/write/setVotingPeriod.ts | 4 +- .../Vote/write/updateQuorumNumerator.ts | 4 +- .../events/ContractDeployed.ts | 2 +- packages/thirdweb/src/tokens/constants.ts | 18 +- packages/thirdweb/src/tokens/create-token.ts | 4 +- .../thirdweb/src/tokens/distribute-token.ts | 4 +- .../src/tokens/get-entrypoint-erc20.ts | 29 +- .../thirdweb/src/tokens/is-router-enabled.ts | 38 +- pnpm-lock.yaml | 2964 ++++++++++------- 1009 files changed, 6979 insertions(+), 3942 deletions(-) create mode 100644 packages/thirdweb/scripts/generate/abis/tokens/PoolRouter.json delete mode 100644 packages/thirdweb/scripts/generate/abis/tokens/Router.json rename packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/{RouterUpdated.ts => PoolRouterUpdated.ts} (55%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/SwapRouterUpdated.ts rename packages/thirdweb/src/extensions/tokens/__generated__/{Router/read/NATIVE_TOKEN.ts => ERC20Entrypoint/read/getPoolRouter.ts} (58%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getSwapRouter.ts delete mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts delete mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts rename packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/{setRewardLocker.ts => setPoolRouter.ts} (60%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setSwapRouter.ts rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => ERC20Entrypoint}/write/swap.ts (89%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/withdraw.ts rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/events/AdapterDisabled.ts (100%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/events/AdapterEnabled.ts (86%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/events/Initialized.ts (100%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/events/OwnershipHandoverCanceled.ts (100%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/events/OwnershipHandoverRequested.ts (100%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/events/OwnershipTransferred.ts (100%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RewardClaimed.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RolesUpdated.ts rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/events/Upgraded.ts (100%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getAdapter.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardLocker.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPosition.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPositions.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAllRoles.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAnyRole.ts rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/read/owner.ts (99%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/read/ownershipHandoverExpiresAt.ts (100%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/read/proxiableUUID.ts (99%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/rolesOf.ts rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/write/cancelOwnershipHandover.ts (100%) rename packages/thirdweb/src/extensions/tokens/__generated__/{ERC20Entrypoint/write/setRouter.ts => PoolRouter/write/claimRewards.ts} (61%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/write/completeOwnershipHandover.ts (100%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/write/createPool.ts (83%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/write/disableAdapter.ts (100%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/write/enableAdapter.ts (89%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/grantRoles.ts rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/write/initialize.ts (92%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/write/renounceOwnership.ts (100%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceRoles.ts rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/write/requestOwnershipHandover.ts (100%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/revokeRoles.ts rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/write/transferOwnership.ts (100%) rename packages/thirdweb/src/extensions/tokens/__generated__/{Router => PoolRouter}/write/upgradeToAndCall.ts (100%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/withdraw.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverCanceled.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverRequested.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipTransferred.ts rename packages/thirdweb/src/extensions/tokens/__generated__/{ERC20Entrypoint/read/getRouter.ts => RewardLocker/read/owner.ts} (59%) create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/ownershipHandoverExpiresAt.ts rename packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/{positions.ts => position.ts} (52%) rename packages/thirdweb/src/extensions/tokens/__generated__/{ERC20Entrypoint/read/getRewardLocker.ts => RewardLocker/read/positionManager.ts} (60%) delete mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts delete mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/cancelOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/completeOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/renounceOwnership.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/requestOwnershipHandover.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/transferOwnership.ts create mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/withdraw.ts delete mode 100644 packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index 849a1d9fcc8..cb76f1084e9 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -16,7 +16,7 @@ "@emotion/styled": "11.14.1", "@noble/curves": "1.8.2", "@noble/hashes": "1.7.2", - "@passwordless-id/webauthn": "^2.1.2", + "@passwordless-id/webauthn": "^2.3.1", "@radix-ui/react-dialog": "1.1.14", "@radix-ui/react-focus-scope": "1.1.7", "@radix-ui/react-icons": "1.3.2", @@ -30,7 +30,7 @@ "abitype": "1.0.8", "cross-spawn": "7.0.6", "fuse.js": "7.1.0", - "input-otp": "^1.4.1", + "input-otp": "^1.4.2", "mipd": "0.0.7", "open": "10.1.1", "ora": "8.2.0", @@ -63,12 +63,12 @@ "@types/prompts": "2.4.9", "@types/react": "19.1.8", "@viem/anvil": "0.0.10", - "@vitejs/plugin-react": "^4.6.0", + "@vitejs/plugin-react": "^4.7.0", "@vitest/coverage-v8": "3.2.4", "@vitest/ui": "3.2.4", - "dotenv-mono": "^1.3.14", - "ethers5": "npm:ethers@5", - "ethers6": "npm:ethers@6", + "dotenv-mono": "^1.4.0", + "ethers5": "npm:ethers@^5.8.0", + "ethers6": "npm:ethers@^6.15.0", "expo-linking": "7.0.5", "expo-web-browser": "14.0.2", "happy-dom": "17.4.4", @@ -83,7 +83,7 @@ "react-native-quick-crypto": "0.7.14", "react-native-svg": "15.12.0", "rimraf": "6.0.1", - "sharp": "^0.34.2", + "sharp": "^0.34.3", "size-limit": "11.2.0", "storybook": "9.0.15", "typedoc": "0.27.9", diff --git a/packages/thirdweb/scripts/generate/abis/tokens/ERC20Asset.json b/packages/thirdweb/scripts/generate/abis/tokens/ERC20Asset.json index 9d9bcc9bf3a..ba1ec6506df 100644 --- a/packages/thirdweb/scripts/generate/abis/tokens/ERC20Asset.json +++ b/packages/thirdweb/scripts/generate/abis/tokens/ERC20Asset.json @@ -10,7 +10,7 @@ "function completeOwnershipHandover(address pendingOwner) payable", "function contractURI() view returns (string)", "function decimals() view returns (uint8)", - "function initialize(string _name, string _symbol, string _contractURI, uint256 _maxSupply, address _owner)", + "function initialize(string name, string symbol, string contractURI, uint256 maxSupply, address owner)", "function name() view returns (string)", "function nonces(address owner) view returns (uint256 result)", "function owner() view returns (address result)", diff --git a/packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json b/packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json index 34c21a775a7..b2c3beae26c 100644 --- a/packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json +++ b/packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json @@ -1,7 +1,6 @@ [ "constructor()", "function addImplementation((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, bool isDefault)", - "function buy(address asset, (address recipient, address referrer, address tokenIn, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes hookData) params) payable returns (uint256 amountIn, uint256 amountOut)", "function cancelOwnershipHandover() payable", "function claimReward(address asset)", "function completeOwnershipHandover(address pendingOwner) payable", @@ -11,11 +10,11 @@ "function distribute(address asset, (uint256 amount, address recipient)[] contents) payable", "function getAirdrop() view returns (address airdrop)", "function getImplementation(bytes32 contractId) view returns ((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config)", - "function getReward(address asset) view returns ((address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps))", - "function getRewardLocker() view returns (address rewardLocker)", - "function getRouter() view returns (address router)", + "function getPoolRouter() view returns (address poolRouter)", + "function getReward(address asset) view returns ((uint256 positionId, address recipient, address referrer, uint16 referrerBps, address positionManager, address rewardLocker)[])", + "function getSwapRouter() view returns (address swapRouter)", "function guardSalt(bytes32 salt, address creator, bytes contractInitData, bytes hookInitData) view returns (bytes32)", - "function initialize(address owner, address router, address rewardLocker, address airdrop)", + "function initialize(address owner, address poolRouter, address airdrop)", "function owner() view returns (address result)", "function ownershipHandoverExpiresAt(address pendingOwner) view returns (uint256 result)", "function predictAddress(bytes32 contractId, address creator, (address referrer, bytes32 salt, bytes data, bytes hookData) params) view returns (address predicted)", @@ -23,12 +22,13 @@ "function proxiableUUID() view returns (bytes32)", "function renounceOwnership() payable", "function requestOwnershipHandover() payable", - "function sell(address asset, (address recipient, address tokenOut, uint256 amountIn, uint256 minAmountOut, uint256 deadline, bytes hookData) params) returns (uint256 amountIn, uint256 amountOut)", "function setAirdrop(address airdrop)", - "function setRewardLocker(address rewardLocker)", - "function setRouter(address router)", + "function setPoolRouter(address poolRouter)", + "function setSwapRouter(address swapRouter)", + "function swap((address tokenIn, address tokenOut, uint256 amountIn, uint256 minAmountOut, address recipient, address referrer, uint256 deadline, bytes data) params) payable returns (uint256 amountIn, uint256 amountOut)", "function transferOwnership(address newOwner) payable", "function upgradeToAndCall(address newImplementation, bytes data) payable", + "function withdraw(address token, address to)", "event AirdropUpdated(address airdrop)", "event Created(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", "event Distributed(address asset, uint256 recipientCount, uint256 totalAmount)", @@ -37,17 +37,16 @@ "event OwnershipHandoverCanceled(address indexed pendingOwner)", "event OwnershipHandoverRequested(address indexed pendingOwner)", "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + "event PoolRouterUpdated(address poolRouter)", "event RewardClaimed(address asset, address claimer)", "event RewardLockerUpdated(address locker)", - "event RouterUpdated(address router)", + "event SwapRouterUpdated(address swapRouter)", "event Upgraded(address indexed implementation)", "error AlreadyInitialized()", - "error ArrayLengthMismatch()", "error ImplementationAlreadyExists()", "error InvalidAmount()", "error InvalidContractId()", "error InvalidCreateHook()", - "error InvalidCreator()", "error InvalidDeploymentCall()", "error InvalidImplementation()", "error InvalidInitialization()", @@ -57,9 +56,9 @@ "error NewOwnerIsZeroAddress()", "error NoHandoverRequest()", "error NotInitializing()", - "error NotRegistered()", + "error PoolRouterDisabled()", + "error SwapRouterDisabled()", "error Unauthorized()", "error UnauthorizedCallContext()", - "error UpgradeFailed()", - "error ValueTransferFailed()" + "error UpgradeFailed()" ] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/tokens/PoolRouter.json b/packages/thirdweb/scripts/generate/abis/tokens/PoolRouter.json new file mode 100644 index 00000000000..9de3d4f0473 --- /dev/null +++ b/packages/thirdweb/scripts/generate/abis/tokens/PoolRouter.json @@ -0,0 +1,59 @@ +[ + "constructor()", + "function cancelOwnershipHandover() payable", + "function claimRewards(address asset)", + "function completeOwnershipHandover(address pendingOwner) payable", + "function createPool((address recipient, address referrer, uint16 referrerBps, address token, address tokenPair, uint256 amount, uint256 amountPair, bytes data) createPoolConfig) payable returns ((address pool, address positionManager, uint256 positionId, address refundToken0, uint256 refundAmount0, address refundToken1, uint256 refundAmount1) result)", + "function disableAdapter(uint8 adapterType)", + "function enableAdapter(uint8 adapterType, bytes config, address rewardLocker)", + "function getAdapter(uint8 adapterType) view returns ((bytes config, address rewardLocker) adapterConfig)", + "function getRewardLocker(uint8 adapterType) view returns (address rewardLocker)", + "function getRewardPosition(address asset, uint8 adapterType) view returns ((uint256 positionId, address recipient, address referrer, uint16 referrerBps, address positionManager, address rewardLocker) position)", + "function getRewardPositions(address asset) view returns ((uint256 positionId, address recipient, address referrer, uint16 referrerBps, address positionManager, address rewardLocker)[] positions)", + "function grantRoles(address user, uint256 roles) payable", + "function hasAllRoles(address user, uint256 roles) view returns (bool)", + "function hasAnyRole(address user, uint256 roles) view returns (bool)", + "function initialize(address owner, address manager)", + "function owner() view returns (address result)", + "function ownershipHandoverExpiresAt(address pendingOwner) view returns (uint256 result)", + "function proxiableUUID() view returns (bytes32)", + "function renounceOwnership() payable", + "function renounceRoles(uint256 roles) payable", + "function requestOwnershipHandover() payable", + "function revokeRoles(address user, uint256 roles) payable", + "function rolesOf(address user) view returns (uint256 roles)", + "function transferOwnership(address newOwner) payable", + "function upgradeToAndCall(address newImplementation, bytes data) payable", + "function withdraw(address token, address to)", + "event AdapterDisabled(uint8 adapterType)", + "event AdapterEnabled(uint8 adapterType, address rewardLocker)", + "event Initialized(uint64 version)", + "event OwnershipHandoverCanceled(address indexed pendingOwner)", + "event OwnershipHandoverRequested(address indexed pendingOwner)", + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + "event RewardClaimed(address rewardLocker, address asset, address claimer)", + "event RolesUpdated(address indexed user, uint256 indexed roles)", + "event Upgraded(address indexed implementation)", + "error AdapterAlreadyEnabled()", + "error AdapterNotFound()", + "error AlreadyInitialized()", + "error InvalidAdapterType()", + "error InvalidETHAmount()", + "error InvalidFee()", + "error InvalidFee()", + "error InvalidInitialization()", + "error InvalidPoolConfig()", + "error InvalidReferrerBps()", + "error InvalidRewardLocker()", + "error InvalidTick()", + "error InvalidTick()", + "error NewOwnerIsZeroAddress()", + "error NoHandoverRequest()", + "error NotInitializing()", + "error PoolAlreadyExists()", + "error PoolAlreadyExists()", + "error Reentrancy()", + "error Unauthorized()", + "error UnauthorizedCallContext()", + "error UpgradeFailed()" +] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/tokens/RewardLocker.json b/packages/thirdweb/scripts/generate/abis/tokens/RewardLocker.json index 8de59c3cb79..71be18e1244 100644 --- a/packages/thirdweb/scripts/generate/abis/tokens/RewardLocker.json +++ b/packages/thirdweb/scripts/generate/abis/tokens/RewardLocker.json @@ -1,16 +1,32 @@ [ - "constructor(address _feeManager, address _v3PositionManager, address _v4PositionManager)", + "receive() external payable", + "function cancelOwnershipHandover() payable", "function collectReward(address owner, address asset) returns (address token0, address token1, uint256 amount0, uint256 amount1)", + "function completeOwnershipHandover(address pendingOwner) payable", "function feeManager() view returns (address)", - "function lockPosition(address asset, address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps)", - "function positions(address owner, address asset) view returns (address positionManager, uint256 tokenId, address recipient, address referrer, uint16 referrerBps)", - "function v3PositionManager() view returns (address)", - "function v4PositionManager() view returns (address)", - "event PositionLocked(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, address recipient, address referrer)", - "event RewardCollected(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, uint256 amount0, uint256 amount1)", + "function lockPosition(address asset, uint256 positionId, address recipient, address referrer, uint16 referrerBps, bytes data)", + "function owner() view returns (address result)", + "function ownershipHandoverExpiresAt(address pendingOwner) view returns (uint256 result)", + "function position(address owner, address asset) view returns ((uint256 positionId, address recipient, address referrer, uint16 referrerBps, bytes data))", + "function positionManager() view returns (address)", + "function renounceOwnership() payable", + "function requestOwnershipHandover() payable", + "function transferOwnership(address newOwner) payable", + "function withdraw(address token, address to)", + "event OwnershipHandoverCanceled(address indexed pendingOwner)", + "event OwnershipHandoverRequested(address indexed pendingOwner)", + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + "event PositionLocked(address owner, address indexed asset, address positionManager, uint256 positionId, address recipient, address referrer)", + "event RewardCollected(address owner, address indexed asset, address positionManager, uint256 positionId, address recipient, address referrer, address token0, uint256 recipientAmount0, uint256 referrerAmount0, uint256 feeAmount0, address token1, uint256 recipientAmount1, uint256 referrerAmount1, uint256 feeAmount1)", + "error AlreadyInitialized()", "error InvalidPosition()", "error InvalidPositionManager()", + "error InvalidPositionOwner()", "error InvalidReferrerBps()", "error InvalidRewardRecipient()", - "error TokenAlreadyLocked()" + "error NewOwnerIsZeroAddress()", + "error NoAvailableRewards()", + "error NoHandoverRequest()", + "error TokenAlreadyLocked()", + "error Unauthorized()" ] \ No newline at end of file diff --git a/packages/thirdweb/scripts/generate/abis/tokens/Router.json b/packages/thirdweb/scripts/generate/abis/tokens/Router.json deleted file mode 100644 index f31ba9e4fa8..00000000000 --- a/packages/thirdweb/scripts/generate/abis/tokens/Router.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - "constructor()", - "function NATIVE_TOKEN() view returns (address)", - "function cancelOwnershipHandover() payable", - "function completeOwnershipHandover(address pendingOwner) payable", - "function createPool((address recipient, address referrer, address tokenA, address tokenB, uint256 amountA, uint256 amountB, bytes data) createPoolConfig) payable returns (address pool, address position, uint256 positionId, uint256 refundAmount0, uint256 refundAmount1)", - "function disableAdapter(uint8 adapterType)", - "function enableAdapter(uint8 adapterType, bytes config)", - "function initialize(address owner)", - "function owner() view returns (address result)", - "function ownershipHandoverExpiresAt(address pendingOwner) view returns (uint256 result)", - "function proxiableUUID() view returns (bytes32)", - "function renounceOwnership() payable", - "function requestOwnershipHandover() payable", - "function swap((address tokenIn, address tokenOut, uint256 amountIn, uint256 minAmountOut, address recipient, address refundRecipient, uint256 deadline, bytes data) config) payable returns ((uint256 amountIn, uint256 amountOut, address source) result)", - "function transferOwnership(address newOwner) payable", - "function upgradeToAndCall(address newImplementation, bytes data) payable", - "event AdapterDisabled(uint8 adapterType)", - "event AdapterEnabled(uint8 adapterType)", - "event Initialized(uint64 version)", - "event OwnershipHandoverCanceled(address indexed pendingOwner)", - "event OwnershipHandoverRequested(address indexed pendingOwner)", - "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", - "event SwapExecuted(address indexed sender, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut, uint8 adapterUsed)", - "event Upgraded(address indexed implementation)", - "error AdapterNotFound()", - "error AlreadyInitialized()", - "error DeadlineExceeded()", - "error InvalidAdapterType()", - "error InvalidAmount()", - "error InvalidConfiguration()", - "error InvalidETHAmount()", - "error InvalidFee()", - "error InvalidFee()", - "error InvalidInitialization()", - "error InvalidPoolConfig()", - "error InvalidTick()", - "error InvalidTick()", - "error NewOwnerIsZeroAddress()", - "error NoHandoverRequest()", - "error NotInitializing()", - "error PoolAlreadyExists()", - "error PoolAlreadyExists()", - "error PoolNotFound()", - "error PoolNotFound()", - "error Reentrancy()", - "error SwapFailed()", - "error Unauthorized()", - "error UnauthorizedCallContext()", - "error UpgradeFailed()", - "error ZeroAddress()" -] \ No newline at end of file diff --git a/packages/thirdweb/src/exports/tokens.ts b/packages/thirdweb/src/exports/tokens.ts index 53b16fc8776..9b3c88c80b9 100644 --- a/packages/thirdweb/src/exports/tokens.ts +++ b/packages/thirdweb/src/exports/tokens.ts @@ -1,18 +1,15 @@ export { getReward } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.js"; -export { getRewardLocker } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.js"; export { claimReward } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.js"; -export { positions } from "../extensions/tokens/__generated__/RewardLocker/read/positions.js"; -export { v3PositionManager } from "../extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.js"; -export { v4PositionManager } from "../extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.js"; +export { position } from "../extensions/tokens/__generated__/RewardLocker/read/position.js"; +export { positionManager } from "../extensions/tokens/__generated__/RewardLocker/read/positionManager.js"; export { - DEFAULT_INFRA_ADMIN, DEFAULT_REFERRER_ADDRESS, DEFAULT_REFERRER_REWARD_BPS, } from "../tokens/constants.js"; export { createToken } from "../tokens/create-token.js"; export { distributeToken } from "../tokens/distribute-token.js"; -export { getDeployedEntrypointERC20 } from "../tokens/get-entrypoint-erc20.js"; -export { isRouterEnabled } from "../tokens/is-router-enabled.js"; +export { getEntrypointERC20 } from "../tokens/get-entrypoint-erc20.js"; +export { isPoolRouterEnabled } from "../tokens/is-router-enabled.js"; export { generateSalt, SaltFlag, diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts index 15223a95af0..f256c499527 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnerUpdated" event. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts index 24655af712b..0f3e6933df7 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts index 46b4bcdfdd2..4ead09e35b3 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isClaimed" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts index eb5900f0f41..eee9df78552 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts index c2ce62b7098..fa0dfaf9998 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenConditionId" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts index 5d50983fac2..cf0f7ee9db1 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenMerkleRoot" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts index e05aab2b4a4..e7d492f3570 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC1155" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts index eae334d39f6..f3dfb2d6509 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC1155WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts index c3be854e05e..fa9bd57d7f7 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC20" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts index 072a582ec09..23bf45ea43f 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC20WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts index 18da4c5fe0d..0ee231575e2 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC721" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts index a2c687402e0..303a8d546b6 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC721WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts index 4d8b5529030..0f24fc95697 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropNativeToken" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts index 16dc6eba70d..80eb7e26bc7 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimERC1155" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts index 6b9a8eec9ba..ba5895a0c69 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimERC20" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts index acc2fcc4d1b..c14bfa26737 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimERC721" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts index e53174e9118..f835779317c 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts index c0c704d7b6d..a9efda55328 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setMerkleRoot" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts index ac3e96fb68e..b432dc441f4 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts index 4566ae533d4..56c279e35ce 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts index d50373e8312..2ea7753de27 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts index 1b93894ecfe..3ffea0690fc 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts index 3ded3f5529b..bb275da2f18 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts index f7240e15589..da4fc19dbd4 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts index d88bb911cfe..191addedb4a 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "multicall" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts index 08af112996e..b4114846977 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnerUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts index e7d18e25f94..91c7d953571 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts index 5e69d08ca21..ccd898be5ea 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts index dbe8285a417..2db6b4f4412 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts index 8ea7d761d26..8a762797f05 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts index efa7ad2fe4d..4dd68636156 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts index ad050c4dd3a..435c2f003e0 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PrimarySaleRecipientUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts index 56a38752334..d5bc32a66fd 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x079fe40e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts index 66173a2a58e..1700a8c5103 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPrimarySaleRecipient" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts index 3ddbd97fa3b..bda5d833de1 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DefaultRoyalty" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts index 55dc7b798a4..4dea19eac28 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoyaltyForToken" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts index 586f785dd19..35b885df948 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts index aa5aa6ebb79..df38082ccab 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts index 7d580f21ede..9b63a90861b 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts index 407137179d0..2ac55df9cbf 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts index fdce2d9c969..d50f9564b26 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts index 148ebb62fa3..7ea6f0a96e3 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts index 9fe313c9645..4de63a5df08 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoyaltyEngineUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts index 407137179d0..2ac55df9cbf 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts index 8c871ee8dc9..a2f63658455 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyalty" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts index 668627644da..6b3ae0a2749 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyEngine" function. diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts index 6b40fa433e9..e3a8808253c 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts index d1966acff79..6ad5e011e49 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addExtension" function. diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts index 6374a15b117..34a7822686b 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "removeExtension" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts index bf73a866568..73082960b11 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ABI" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts index 83af7231f72..bad6f8ddea0 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addr" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts index ebb71e668dd..dc86243a44a 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "contenthash" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts index 2de03b0c45e..660beaf8001 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "name" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts index 6ce678c089c..26356b9a164 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "pubkey" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts index 3faa66e172e..48245cd713c 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "text" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts index 63713f86a03..578f2a95426 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "name" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts index 9695a690140..3fe798c55dd 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "resolve" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts index f84f14b8d2d..6fe4e4d1c1f 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "reverse" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts index 73f45348e7c..c676d387afb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts index 813a7ef5345..0c3088f8948 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts index b90d560ba70..b4467275ef2 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts index fe5b329335e..6684c87c397 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts index f14b243d535..55a70ef2392 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts index 81f578628a1..5076f66c719 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleRecipientForToken" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts index be277b363a4..0c718deff5a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts index 14dd8c83769..2762fcdd17d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts index 660ef2ad7d5..df9e69cfcfb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC1155" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts index 959e9340680..fa7b986927c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts index 9ec1ee4692a..7ec6e819a8d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts index 95abdf2729c..f36a7e6d858 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts index 32bc00e804b..630fd7070d8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burnBatch" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts index 959e9340680..fa7b986927c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts index 644c3576dd3..daeeb9564ec 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts index ee38633afc3..777715966d4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ClaimConditionsUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts index 02f82ec5124..e1accf0d244 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts index deec1d69026..64dd8ca345d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimCondition" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts index dcff83944d7..1684879b155 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getActiveClaimConditionId" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts index df3813b2551..7da28e54495 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts index d00ef37b669..8c3db1e8d27 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts index 8874dae7893..36b0884c34c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts index 298f234735b..21040cdf986 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ClaimConditionUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts index 959e9340680..fa7b986927c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts index 36b144c74be..04b44c4486c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimCondition" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts index d00ef37b669..8c3db1e8d27 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts index 4b83811da0d..043ca48332c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts index b78452a80a4..96daa76e1c0 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ApprovalForAll" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts index fe5cb14013f..e293e23488c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TransferBatch" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts index 2f0cdab107a..43726f4eeea 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TransferSingle" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts index 3888a8693f8..4993d85f7ee 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "URI" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts index a9de58c8de5..06edf5575c1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts index 8929fab3b89..ecfeac7aa8a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOfBatch" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts index 3a13e7d4011..ae49f338a36 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isApprovedForAll" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts index 99962350074..293d69ec291 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "totalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts index 1d746a402a6..16c6c93fc3b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uri" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts index 21f4d03cbc7..69941c9ab48 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "safeBatchTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts index 990d55e78c4..31dc293f5dc 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "safeTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts index 540376e8822..4d62b4b8e95 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setApprovalForAll" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts index edf264b16d5..19dddf43c7c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts index 28cca2da663..0a0627687ed 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts index 72454a87201..b21c1c5e90d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onERC1155BatchReceived" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts index 16eff631963..cb3d27032ac 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onERC1155Received" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts index a721d8b21df..4f7225de3d2 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts index f50c34dc977..aab127edc73 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts index 0b35913b5bb..dd2a413af02 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensLazyMinted" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts index 5326d8c783b..5a175f1a89f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "lazyMint" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts index 1639017dea7..45a4d431a21 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts index fa194b737b1..b28be8d3f50 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts index 28cca2da663..0a0627687ed 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts index 003e54a53cc..0ce21caab41 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts index ada2b7be565..3d42dad88ac 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts index c6376f6f324..a2f1c1da7bb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackCreated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts index e1882226a08..aa6b44b5de6 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpened" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts index 5353551e981..7b9a4ae3ada 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts index d937bb002f9..651159cc31f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPack" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts index ab20ae3048d..b76754ccb3e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPack" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index 877c44e06ab..1700b14ae6d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpenRequested" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index de793650734..973a8afa50d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackRandomnessFulfilled" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts index 95900c4c2c0..dad4ba854e1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "canClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts index 4b53484ee6f..f27ff5f2568 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index d9b0f36898b..a062fe62999 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts index 3a3d4ab049f..ca1f6d20821 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts index 16cec785cf1..09bb704a2ca 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts index 4906fe81e4b..6a85a154053 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts index 1359ef370de..3caf37ca828 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts index 91cac84cb8e..57cc777cc94 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts index ac580fa73c8..93b50de0267 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts index 17da59ab8da..cc60bb803ec 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UpdatedRewardsPerUnitTime" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts index 036d3d395a8..1bdc0e9edab 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UpdatedTimeUnit" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts index c94902fa163..381a97e4ac0 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts index dc4bb9a4ae9..95246a9bf77 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts index b8423f58cae..72773f0c947 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts index 15711543ef4..4640d2664d8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts index fc36cb2fea8..261bf72277e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts index 9761a5cdbfa..a1c7ae20ebc 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x75794a3c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts index 41c64799da0..b276e41eaab 100644 --- a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isValidSignature" function. diff --git a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts index bcf99543c0f..da351e0658d 100644 --- a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts index e2032fab9d0..e3d2a786c0f 100644 --- a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts index 05b834d34c8..5033086ff1f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts index 06d69c5ff16..cd60467baae 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts index fe3bb8cc142..9499d363326 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC20" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts index e79f0240b1e..980f90c08d6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts index 1b5c24e72ab..315fd89acb6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts index 02facd11679..14e6c3521f6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts index 15628bef1f9..0a39df5ef61 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts index 03b681a438e..32ae497829f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts index f2bb82075e1..543ca00aeb3 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts index d05c49e0642..8874f1f8b77 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts index 66dc374e9ff..a0bff681c08 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts index 502154ae933..2c1aabd1066 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts index 62a00d474bf..dbfd5398c08 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts index 8057c658b1e..83c90ba1373 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts index c52084bf3e2..392798f0938 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts index a301bde7d16..90f936573ff 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts index 28fc473b542..05bfa99e8b9 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts index 7c6f025f370..e713101a8f2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts index 315fc80ca09..a40ddadb5ea 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts index 05f8b87f866..c3071082e4e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts index f9e725775a4..bb688023945 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts index 8f1a555dafe..84e581ee5d0 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts index 77488bf42f4..f3088be371b 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts index a5729c91c33..0785785f1cf 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts index a7374999c2f..196dae6e56c 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts index 03ecfce9d0f..6b64f961507 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts index f0b38100c6b..e0db2221abd 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts index 167e6b98602..edb03b78b32 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts index b252d8b1851..3d910a7024d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts index b239f00a27d..42821808bda 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts index 51fc2b438ba..b727ca0d9b2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts index 7462592d148..481bb8eb721 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts index 2ac66e20af2..bdcc3f2ca69 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts index ac575a71b1e..6e8274dfa05 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts index 1704b169c28..57d0a77dff7 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts index a102e7e40db..408f9cd07a8 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts index e351237d2eb..c1c69ea396d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts index 8b3baff39b1..0c3048d17f9 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts index b685e6934d6..6fdc7ac02c8 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts index 8d2d1ad0f4f..6ac50c18b65 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DelegateChanged" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts index 679716ea9ea..3dee0b93a04 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DelegateVotesChanged" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts index 08ea92ba0b3..c571722679d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "delegates" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts index 7a9fef8ca2a..e3441230e1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPastTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts index efa3696035e..ae46edb8b0c 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPastVotes" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts index 9f60ad99262..cff1749bd6b 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getVotes" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts index 8c871e9055c..7cef71ff61a 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "delegate" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts index 3d4a8db0d50..d4ccd48cc5a 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "delegateBySig" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts index 08a9dede108..71983157230 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts index f9e725775a4..bb688023945 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts index e351237d2eb..c1c69ea396d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts index f48fb6279b8..64ca336631f 100644 --- a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts +++ b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTrustedForwarder" function. diff --git a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts index edbd43bb8c8..af103446eff 100644 --- a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts index b2894032e80..61732d4c768 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "validateUserOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts index a16bc9a83cc..9704d1c60fa 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AccountCreated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts index 5da6ede6ac7..29ba1977797 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignerAdded" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts index 82619ea12e0..ee49f539f23 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignerRemoved" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts index 31f9d6e64c0..88b5f01391a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts index a26c296a7f2..e442c9ebe15 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAccounts" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts index 846406de80f..f0bac129833 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAccountsOfSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts index 0174ca08356..07d3c8f0a19 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAddress" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts index 93cf2387dff..49004ff07df 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x08e93d0a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts index 6d3eae1caf1..4213342788a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isRegistered" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts index 213525ca085..d13cf94c6b5 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x58451f97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts index b03c26c972f..d71e0c7bbee 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAccount" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts index 8799cb8bd6d..58b1f104269 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onSignerAdded" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts index 378b00d4ce7..eeb95bb3887 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onSignerRemoved" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts index 8da029f6d0e..3c4cdb022dc 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AdminUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts index a74536a6f7a..49b12b5e7ca 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignerPermissionsUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts index 10a3a03b5de..b25927d7f3e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8b52d723" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts index 4a99bfd8fea..340e8e2b338 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe9523c97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts index 8637d17d40e..473f22cee70 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd42f2f35" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts index 554ab0b1511..6f91832c4d4 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPermissionsForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts index 2f4acb5c7e3..f70ae69ae27 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isActiveSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts index 2e40f43ff8e..421e3fb9b05 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isAdmin" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts index 4dd893869dd..13c9660d679 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifySignerPermissionRequest" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts index acad573f066..0dfecdfe3e3 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPermissionsForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts index 57c092662d1..aefeda70d1f 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AccountDeployed" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts index 786675249ff..979246b3a32 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Deposited" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts index c159efd99ae..408f596d1b3 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SignatureAggregatorChanged" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts index 64432e3e52a..cdb5cb7718a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "StakeLocked" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts index 3db5b217e5d..2c2a521b3e8 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "StakeUnlocked" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts index fdca4a373fe..d6baaadd015 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "StakeWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts index 34ab121fe48..e7361b8f242 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UserOperationEvent" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts index ea97112e335..651ba8f699d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UserOperationRevertReason" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts index 7b4e4b377a5..ba6086ca941 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Withdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts index 32ad1790b30..b7ff3081b0c 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts index df61606924e..ef2dd86df6b 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getDepositInfo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts index 129766b56b2..4047aff1316 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getNonce" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts index 75572b4e566..035be155152 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getUserOpHash" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts index 5385bd8265e..9dadba06162 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addStake" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts index 29803f6389d..b401e7ffe20 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositTo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts index b651367ee8d..824cf867b60 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getSenderAddress" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts index 164d965aa5e..5ec1fb8864c 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "handleAggregatedOps" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts index 142b42768d8..5021df6b320 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "handleOps" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts index f41500266dc..66aeaeb26ac 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "incrementNonce" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts index 45436f31447..8ad17a56ed6 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "simulateHandleOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts index c1098fde254..be82ffcd830 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "simulateValidation" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts index 3506e68345a..c136fb4c701 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts index 37db0a31e12..10668f3080d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawStake" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts index b34a439bdee..8d0e04b7655 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawTo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts index d9a94db53db..b8d5ff51605 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PostOpRevertReason" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts index ec9af361efd..deff206f64d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getUserOpHash" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts index 1c7b385cc5c..cdb00c1cd44 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "postOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts index f1259034401..ce0e1b226f6 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "validatePaymasterUserOp" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts index f18b212a278..dc44d6e24ab 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Deposit" event. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts index b9024da0879..702a6b214e0 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Withdraw" event. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts index c4280dffdde..c6aa2cf4a8f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x38d52e0f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts index aae1a9b0279..a336a3ba71d 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "convertToAssets" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts index 0ea83b5498f..19adbec5d30 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "convertToShares" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts index 58b4e09281a..c381e4e07ce 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxDeposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts index 5006143bc59..31d838daa75 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxMint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts index aeeb693fc77..c87d5ca24be 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxRedeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts index 7ba38dd8844..5d2194959f1 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "maxWithdraw" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts index 0f99cea3c14..55bd138d5c8 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewDeposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts index 443c34fb41f..1c77082a6d4 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewMint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts index 8e36a4bb59f..d22c9fc5c1c 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewRedeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts index 9c250aad3bb..0b48678535b 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "previewWithdraw" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts index e16ab10ad0a..13444d4de6f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x01e1d114" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts index cb7b09695dd..f987f82b52f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts index 76b3e11984f..21674a7ae44 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts index fbaf5e7bff3..df351f6ff7b 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "redeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts index be29d49c712..f9d36616418 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts index ce17d6bf523..f48782ca657 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isValidSigner" function. diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts index 4a94d5ca5f4..366fa324ff1 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc19d93fb" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts index 17140290a66..5b0fd38dc2d 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts index 939294b1b13..d6fbe26258f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts index d859f4ba0c7..5a98dee8f1b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts index 587749a9ef9..fef30ba5b5b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts index bc8960627ce..80e7ca4d58c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts index a5a0941adff..f4caa50a316 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts index 401d92112b7..2f96fcc6574 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "airdropERC721" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts index e508430c74a..6713f907a04 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts index 1b8c9c154f4..c8242f26ff7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts index 28715bb477e..05c14805732 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts index 4b7f34da2c5..0c742164d79 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts index a8e4728f254..1f66b6a3b03 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts index 97c65f0ee9a..96d8aeb4491 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts index 1ddcb4ea94c..b6d15533e0c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts index 2e2af10afbf..80887b4834b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokenURIRevealed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts index 0cf4e15cb47..72fec8c3c7a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "encryptDecrypt" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts index b650d93ec60..6c8d4a2dca7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "encryptedData" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts index 7a15be4a4a9..d458a71158e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "reveal" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts index 04c54d35afd..f9323d3861e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts index 1f867c8cdca..15d51107b1f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "baseURIIndices" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts index 536b5046012..bdd2144fb09 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts index 05fc620d047..5e4f78b73ee 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts index f89b83a2294..4c03e0387d5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts index a3a6212cb9a..409a4030ce4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xacd083f8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts index 1c30efb8cb0..bd199d831e0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts index 12d2073a0ee..59a01bbc213 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts index 97c65f0ee9a..96d8aeb4491 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts index 88327db4387..60f4078f4d2 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts index 1c30efb8cb0..bd199d831e0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts index a24b8c898b3..d07fd8efc8e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts index e60cc1a073c..c1f8b0cb939 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts index 585bd7da021..da4f0dfc8d7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ApprovalForAll" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts index 83c0e99117b..b0d19bab766 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts index 95ba9ffd8ac..0a97dbe010d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts index 62c67865417..e6e6c742b20 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getApproved" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts index ef646d5aeb4..48aae344fd6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isApprovedForAll" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts index 977eb71775a..7f2ee48afd1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts index 401e641161a..725b42cb89c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownerOf" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts index a7437962276..44320640e09 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe6798baa" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts index 09032ae8d6a..2541453f1fa 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts index 968f8ffa3a0..cdd424d3861 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts index 08c6748815e..a19be2e4323 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts index f11264daf45..35b4af6555e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts index 1f5c2679cdf..6a39c3be5ca 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "safeTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts index f4cbe38611c..b2a383dd006 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setApprovalForAll" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts index 16b2674bffe..7eda6c94dfe 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts index 86d66e03f66..09dbce48836 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ConsecutiveTransfer" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts index 285fff85165..c57aff8f227 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokensOfOwner" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts index 72eb5418268..fae3b29b1eb 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokensOfOwnerIn" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts index 2bb30b6fa3b..abab41a1765 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts index e8bea47ee9a..a2194155e72 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenByIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts index fae88bc7dc4..317ffdcd06e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenOfOwnerByIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts index 1c908156fcf..4e89a7ec99f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onERC721Received" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts index 26bf1ce6d2f..eb69059bee4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensLazyMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts index 06ce4972ee8..9889bbbb726 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "lazyMint" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts index e9b672cdac1..667cd89e059 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts index a66e7e3dad9..5541d6823a5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts index e445a10b9db..0f6b2f9089d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts index 4bc2551a316..072e98db461 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts index 663fc79fa6d..2ae9e83a539 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts index fdd553b85a6..bee2ca42a4e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts index d3980b873a9..ed1eccc08f6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts index a3d246e412b..19270af23a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb280f703" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts index 0c52ecd7ecc..cce5712e655 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts index fad569bc974..c60a5c32c2e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SharedMetadataDeleted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts index a500645cb13..57d4bb484fb 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SharedMetadataUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts index e025d2380a5..af641d83093 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfc3c2a73" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts index 627bff7d9d2..2c361c8dad4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deleteSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts index b8cf5949eed..da44ced507e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts index a000ef2b4b1..9da306f14a9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts index c126f868b3a..c1389c23da5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts index 8005a91782e..d2d2e11439a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts index 390c8b29837..e51025efeaf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts index 8c64cb10777..271dd56a03a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts index e768fbb80c6..43d69ee4691 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts index 28b8a7795ad..691150f4d6b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts index ddfeb7efc4a..85cbbd5ce3f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts index 53692d1f2bc..0955ed53001 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts index 470d3344098..8cb89434077 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts index 5971444a1c1..c8304c9c6af 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts index c47c2d400b3..e15d31e6f1e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts index d7f2ad88809..3f20b599377 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts index e9b672cdac1..667cd89e059 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts index e96d9d79ff7..9b1685e557a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts index 2bb30b6fa3b..abab41a1765 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts index e445a10b9db..0f6b2f9089d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts index 968f8ffa3a0..cdd424d3861 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts index d9344309eea..121dc3577cd 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts index cd952cd72a7..2ffb88f2541 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancel" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts index 31971565a3c..54ee1fb1625 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts index a492ce9f95d..266759ba60d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts index 11cdff84051..7a7692db51d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts index af072eb19e7..76f13dfcba5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revoke" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts index fa409453d53..1c2e257586d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensUnwrapped" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts index fc620668141..476e907ad6d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokensWrapped" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts index 3299d46f932..1ea0195f972 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts index d4d1cac88b2..c8d50c84091 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts index a5629461f55..4b768cdca11 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getWrappedContents" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts index 2bb30b6fa3b..abab41a1765 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts index e445a10b9db..0f6b2f9089d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts index 968f8ffa3a0..cdd424d3861 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts index 51d6ee7eb4c..1b88232e138 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts index ea7207513cf..2ea813d8f3f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "unwrap" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts index 00ddc11ce19..03582322e9c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "wrap" function. diff --git a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts index 8e80e46a8a4..6c8ce5a86d9 100644 --- a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts index 14b6db87730..c833872cbc4 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x9cfd7cff" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts index 4a0f71b90f5..7225170e831 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isModuleInstalled" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts index adc179df2a8..88b6b0b11aa 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isValidSignature" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts index 40d1c3a2dbb..7778eae8bee 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsExecutionMode" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts index 61d1e156108..b31d7ab4910 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts index e1f33cae5cf..5a7c9b02cd4 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts index 427537a9640..dcc7750443a 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "executeFromExecutor" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts index fc3fb205dc1..9431c3d7dcf 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "installModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts index d9b1094c612..5cf2425dcac 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uninstallModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts index 93c168c64f5..bd823de97a1 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts index 895b9c0faf5..ee84303fd0b 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts index 5f54e325971..bbf45d7fb41 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts index 2125755adc1..f31566f4716 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa65d69d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts index c8adcafff58..180f8da52fc 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAddress" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts index 2c9986eebf5..99a48c2f09d 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x5c60da1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts index 076e831d264..3323ac7ce15 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts index f3fb0db94fc..3c7faad0ce7 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addStake" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts index 9edabb0aaf8..e499f3b0187 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAccountWithModules" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts index 0fa112c28e3..5798a31905c 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts index a3049c9517e..21c03f6f32a 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts index b2443506421..c3601ab471b 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts index cd9ae09f1db..632ee9f2fce 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "upgradeTo" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts index c995e626bdb..4a20c5590f8 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts index 0cad89d40fb..a8e5011d893 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "withdrawStake" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts index 0e275711fcc..8d5f1a700d2 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Executed" event. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts index 36d4e243abf..93310f4dc59 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "SessionCreated" event. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts index 9ed2c26e1bf..a8020aabb12 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts index 4a44f5a3fd1..3566c481b00 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getCallPoliciesForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts index a5a81370ba3..9c789a7cfff 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getSessionExpirationForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts index 3e948ef623e..ea93606d2d6 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getSessionStateForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts index a97dfb80636..a1763951ba8 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTransferPoliciesForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts index f653921de04..3287eb5fbd0 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isWildcardSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts index fc57af91cb6..f78b186f2cf 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createSessionWithSig" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts index 98988776faa..81b1df259d6 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts index 92ecb549276..808b3854139 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "executeWithSig" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts index ab6c007dacf..31bb53a4e44 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts index b27d76ee6e0..7ead96b0c37 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts index f31cabf823b..52d7a381538 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts index 8931d97823a..06c46b0a455 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "register" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts index 4a3345eef0f..2c959f33f59 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x6a5306a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts index 011085f6144..af26e126344 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts index f31cabf823b..52d7a381538 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts index 7a97f33ba5e..5bb15a70f8d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4ec77b45" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts index 837c7aef13b..9be06cdbe1e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "register" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts index 3d76100bc0c..dfc90dfd636 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "registerFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts index 607bdffbbda..514c3444a8e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AdminReset" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts index a3d94326af6..655c8354855 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ChangeRecoveryAddress" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts index 653946dc4b1..a646e6f7252 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Recover" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts index 540ee67b971..43d1195a0c1 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Register" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts index ef1ff29a359..e5e708c2290 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts index 8cf023ced5f..e92335890f0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd5bac7f3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts index 16234140459..cd9b402fa7a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xea2bbb83" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts index f968b97b123..cb54955823e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x00bf26f4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts index 05486ae0fd0..dd5e0800b68 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "custodyOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts index b1633b0da23..60f0638f844 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts index 4670417928c..86c34619ada 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xeb08ab28" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts index ab6c007dacf..31bb53a4e44 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts index 0f502bcf8dc..aa4fbda61f2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "idOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts index 1ae91834a6d..a790ee0cf7d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "recoveryOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts index 41d18969b31..3b1472b3eab 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verifyFidSignature" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts index d0ede787469..bda18636266 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "changeRecoveryAddress" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts index 26fb6c23633..60bc5bc9fc7 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "changeRecoveryAddressFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts index 5bcd4720a76..8831467efb6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "recover" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts index ef075116489..af489197a44 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "recoverFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts index f4d9fc76753..326c6c3ab43 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts index 04517684834..2bbdcece210 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferAndChangeRecovery" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts index d929c6a300f..f254cef9caf 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferAndChangeRecoveryFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts index eb7d9656e9c..d4499dad613 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts index 978192092e2..c4ac42ba8be 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xab583c1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts index e9d4f945ce6..32289cc6879 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x086b5198" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts index df21d367979..57aad7f4608 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts index 269045165c3..2e72ed2db94 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "add" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts index a7e48e33e51..ab6001559a8 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts index 9d3ca5cb0dc..82c9fe8a6e9 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Add" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts index f42650a0de3..4ddf953a99a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AdminReset" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts index c1a085d0e4b..76876634bc2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Remove" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts index ff5dd13852a..c3ce52a2acc 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb5775561" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts index b1633b0da23..60f0638f844 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts index 011085f6144..af26e126344 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts index 22e35d301e5..c603ca366d6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "keyAt" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts index 4c55c831e17..3ec2a78a3f8 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "keyDataOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts index b27d76ee6e0..7ead96b0c37 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts index 27051d256c2..47e7e10c438 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "keysOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts index 2ba35c2da2e..fe3c07d5561 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe33acf38" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts index 57e35d5745f..70f25124341 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "totalKeys" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts index 69300b70490..96d8096c9d7 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "remove" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts index 206f94866d5..9f9ca5ec955 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "removeFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts index a14b1157781..2804abcbb62 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x2c39d670" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts index 6b44251b8fd..95f61c0b3b5 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06517a29" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts index e344e5323c0..b269ae251b3 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts index 467003b92d2..251d0af30af 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x2751c4fd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts index cb8970c72f0..0ea65e49702 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe73faa2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts index 6d9acff24e6..051a7d5075d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x40df0ba0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts index b8c9defb67d..7fe28d59ed6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "batchRent" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts index a419f7a3bb4..83175b73a06 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "rent" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts index 3fea9d326f2..7727e542752 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowData" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts index fdc73f35d45..790321c4822 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowTimestamp" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts index 1410fcebc23..8ad5fa2669a 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowTokenId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts index b77f53ea762..32715c1467b 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x7829ae4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts index f9b1d1a50ea..9d41e05d6ec 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFollowerProfileId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts index d22da8e12f8..5eb6814b734 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getOriginalFollowTimestamp" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts index 0166e59c268..101623902a7 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getProfileIdAllowedToRecover" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts index fd3d19d6825..6856b518944 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isFollowing" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts index 75ead7399a6..1631c257613 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTimestampOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts index 9d953c3622d..b30d2e0f539 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getHandle" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts index eac910c2726..de298f22a2d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x35eb3cb9" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts index 7b1e7dc38df..099379d9c7a 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getLocalName" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts index b0895520653..e2e95574a6d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTokenId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts index 03b45d787ff..cc5518032e3 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exists" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts index 3aca1b317c2..114e9c70f25 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getContentURI" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts index 75ebeb39950..849132cce2d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getProfile" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts index 727f85cacaf..378495f5b5e 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getProfileIdByHandleHash" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts index 732495fd266..940c42b7539 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublication" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts index 75ead7399a6..1631c257613 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintTimestampOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts index b75ca15c1c7..87a92d9f86e 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts index 365d29d6da7..ce9edc4470c 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tokenDataOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts index 4c82ead0f23..3e5b2b4e859 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getModuleTypes" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts index f8e495a9b44..65cd261d708 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isErc20CurrencyRegistered" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts index 6edc467ade5..0676878e575 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isModuleRegistered" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts index f7bd65da099..6c94f98c632 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isModuleRegisteredAs" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts index e980545f042..c7a8d1aaa1b 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getDefaultHandle" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts index 2bde91042d0..2137f95a805 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts index 84b8abe8f34..3c9809bd374 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "resolve" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts index 65a62931636..3bfc6a92603 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "BuyerApprovedForListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts index 25f7aab04ee..46d14a1b078 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CancelledListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts index 983ca3c8c4d..127a498ddaf 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CurrencyApprovedForListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts index 7dcc74cbb31..23f46addfec 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts index 664e583308f..4ea1ff93b92 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewSale" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts index cd946280f87..f33e4de028d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "UpdatedListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts index e6f15c2059e..e4db3be77d7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "currencyPriceForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts index ccef2b4d391..734378136b7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllListings" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts index ce20b1c10a3..2b829550285 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllValidListings" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts index 877c774ef0a..3002d389ef2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts index 647f507c31f..9bcfe71cbf1 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isBuyerApprovedForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts index 19748a64418..6351c37f548 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isCurrencyApprovedForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts index 742169f4f44..b8d0b72e56a 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xc78b616c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts index ea518f185d6..be8ce99cf58 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approveBuyerForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts index 6e37f564067..ca45650bb17 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approveCurrencyForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts index 8287263a1ba..d695f899c51 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "buyFromListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts index 2c791b9f01e..504776da5b0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts index 1edc7ce9143..49303739da5 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts index 5af616b8e02..e484d216997 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts index ef8c6ff4409..b15d763c5af 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AuctionClosed" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts index aafa0ed4b28..930e0f2aa44 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CancelledAuction" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts index 612c8dae2a4..dd69261100a 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewAuction" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts index d63d49db766..27f25f28508 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewBid" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts index 5bf0ddba132..dd88bdc4fbb 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllAuctions" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts index 2a78e300971..77c5116f129 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllValidAuctions" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts index 0e617b97e15..036617fbd7b 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts index 941d302bdc2..9546e3db173 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getWinningBid" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts index b6063ca7b31..11c8eab2430 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isAuctionExpired" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts index 09096df9c54..aea27839d1d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isNewWinningBid" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts index 6a9174b4a20..0610fda8156 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x16002f4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts index e629d8e71bf..942bb17d0c2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "bidInAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts index 51df278132e..846aded52d0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts index 4d65a231619..8004652acac 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "collectAuctionPayout" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts index 21a99f91025..864aab2e45f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "collectAuctionTokens" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts index 378f42640a8..e48106af277 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts index 62842341a63..37e97c246e0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AuctionClosed" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts index 5177b264957..7fe12ca837f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ListingAdded" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts index 5ca6b7e42ea..2233c856fc7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ListingRemoved" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts index 9de7381fbe8..5a9f20825a0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ListingUpdated" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts index 4efda0af611..b033e92129f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts index da59581ce1c..c5d506f7736 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewSale" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts index d32fc97edec..ec779ad8e7d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts index 1cf532447a5..75061f26982 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts index 63421151241..ca512450a4f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts index 3b2d58a96e6..cd44865ea62 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts index acfdf87abf0..a7f71ea7315 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts index 406594839e2..387aed05883 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "acceptOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts index 36f0a65a4de..97a608d0a86 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "buy" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts index 277b56ec199..16205373cf0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelDirectListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts index 3c83c671942..f44a7290903 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "closeAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts index 136cc238a5b..a117cfa8e94 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts index 6a8e9874143..f4e8ccdcf4f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "offer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts index f156ccd65cc..8c2125dcf6f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts index bfc107d5e07..f65d00c8a21 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts index d1d0a1fb924..cf7822145e7 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts index fd42fcb8462..611ab797190 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "AcceptedOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts index c47bf357bc6..44708d6932b 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "CancelledOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts index a0ce2707f11..839757be049 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts index eaaf99cd4b2..9d96cf8d183 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllOffers" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts index 6fabcc41063..d3b4a4df5cd 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllValidOffers" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts index 72dfeaac9f3..8004b2e251d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts index a9656ff8634..4de665a1cb5 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa9fd8ed1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts index 65873d8a1cd..a055869c958 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "acceptOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts index 150f01298a0..449475eae93 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "cancelOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts index e8aa04508aa..b57181f8d69 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "makeOffer" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts index b015f39ef05..70b5e739f97 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts index 388e295db59..cb8daa93fac 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts index 8f55369e551..5a193fd2cb0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIndex" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts index 2685b177c57..ca806668ee7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMetadataBatch" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts index 82ed8f80c64..cf036b86757 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts index 5c43264fbea..7d42f61ef90 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setBaseURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts index ec8a31184f5..3e18197cdbc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uploadMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts index 79e6a9a81a1..8fc04c50266 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts index c96956e1a57..ef821c8a2d7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts index c3b480fde67..f6004039b01 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBatchIndex" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts index b2969c59369..89701986e36 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMetadataBatch" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts index 090faeb17bd..315f110f39a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts index b7de260d3fb..511924b2dcf 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setBaseURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts index c3d03933622..074b04bbfc1 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uploadMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts index 463ec07137f..51850c27a6b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts index f4173458bf5..37ecb3a29ec 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getClaimConditionByTokenId" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts index e4432a6b319..ca8d248d475 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts index f14d386e81d..f9ed45eafa0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimConditionByTokenId" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts index 6f1c196e033..de6de1fac6f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts index df40a231efe..4f07605a11f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC20"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts index 552b801b09f..88f1fa11af0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts index b9cc3df2f69..d77a83b90b3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts index 1f56dc88385..68acc8f5564 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimCondition" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts index 0ae7c9416fa..8f35e243b55 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts index f7671768943..03a615c3f62 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts index 12ccf64b64b..7040ddc3643 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts index aa68a4fcc99..4be195f871d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts index 1916f16a819..b4e0bba598b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setClaimCondition" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts index 320e7f3fc26..0086cabc826 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts index 4347bf539f2..286199fdb6d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts index 2b4513d6448..75422b16100 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts index 7210063aa4f..ad1b67dbc55 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts index abd149cce03..62821e2d4fc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts index e858f58eda6..67b1b0cfbe1 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts index 88d061e454e..a380e4ee56f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts index 5c229e704ea..a5540effcfc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts index 97b628a53e9..98d9e06e4d4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts index bd7a10125ee..00be5232ce5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts index e3bdcea619c..f0e404d832b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts index 3db732e674d..c176139c21c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts index 96a62ec9124..4b4f3ae9b43 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts index e4d21b1a160..00b3b74bad7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts index a96d9ebb14a..c3e63b2ed21 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3e429396" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts index c1681500575..719f3b0ae6a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xf147db8a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts index fa9b1189c8b..1ae6424e1b4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts index 4969e47a4d8..983aead308b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "installModule" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts index 61c0fdadf8a..f8887d33005 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "uninstallModule" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts index 583fd6ddfca..f1360d0e902 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts index 8a00c16b35b..6371f09be45 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts index 96b5a1cfc91..673d7cc1ebf 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts index 85c77d5d648..b81647b202d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts index dc9f9ab39d2..eb9899c1979 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts index cbc2b5518b4..7a9aebc778c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC20"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts index 6a206e95b48..64b25a5b2f0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts index 813ce6bf686..cbe052bf6ee 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts index bca6f2ecc50..ca998dd2c29 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "NewMetadataBatch" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts index d45e4be6fdb..9b60229de6b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts index 2d30cd0f209..f87c6bd5c9c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts index 8a51cb58b75..2b74aa58d07 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts index dc0d78919c8..616dc92e9b5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts index 434b96cba6d..5dc96770798 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "onTokenURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts index 193bcfbd117..7e3187f8f91 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts index 594a00bc44e..bc9687f3f35 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts index 839f211331f..b1a9f4ee776 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts index 4286731b82b..c951a7071ba 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts index 2bcc4cedde4..82b3d8935da 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts index dea971cb572..b838128393f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts index 335e037490b..d9d0e18c144 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts index d4c93faaee3..94949dba052 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts index 8b6d28bd88b..10e84ec3171 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts index 641093af58b..0079ccfea7e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts index 5508806b5ba..603d57d63fc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts index 579a95dbd4d..84cd06bad6e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts index 2af22dfc131..aa00ee8e415 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts index 5371c300c7b..28fa4ef4566 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts index 60fcc3934d3..eb705776b19 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts index e368991836c..fd1aab1c092 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts index c83e3816cd0..61079b5f6b9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts index 49e70615071..c02c49a5685 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts index d6fafd15514..25bc5945a14 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts index 55474d84b50..f90f117f6e3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts index 1d4d87e46ac..b7717a9d368 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts index 79bb9aec7ea..161877a044f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts index 8b601553e0b..106c526e719 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts index a7b0ebc0442..79049e5fc58 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts index ad1025f8f57..218f32e8641 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts index c5cfefd1ad5..a8f3c6855f9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts index c7776d8cbc7..561504fb0fe 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts index 15fe07599be..e41fc809383 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts index 4dc18b1a4f5..2294f18888e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferValidator" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts index ea24b039f7e..4051647d5cc 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts index 27058bede4e..75761816d99 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts index 92685502b97..7061f2b4f41 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts index ca55810873a..10575fe9af2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts index f79ff81f875..6718ff82997 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts index 22b0333750f..8e50ecc5c12 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts index ec803676f9d..a4c7f3198e9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts index e447e4c2be9..521ca3e83a4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts index 8219fe7e4ec..db307f59b19 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts index af6575c161d..cd56610879a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts index d10219f94dd..10ec0919cb2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferValidator" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts index 83455e9a96e..ce28b48f975 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "SequentialTokenIdERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts index a2376d3f38d..4750da4f484 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts index bd993363080..5f09bcb32ac 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcaa0f92a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts index 80e4d1c6822..698a143391c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateTokenIdERC1155" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts index a96c96e2a66..5fe0ab63e3a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts index 6b6d99356cf..5e91dbb0878 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts index a53d04b1e66..9c3942e30e3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts index 13c899ba0ff..586ec8163af 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts index 658168b007a..fc521da4fc5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts index 33d073e5146..f2282b92fe8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts index 62ccbd551ab..03a1c407723 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts index 31bf410891a..370d8312c2e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts index ea99e6e9ed5..893845f2478 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts index 63cd4991a5c..b075bc48f49 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts index 6e17d1c53f7..bf376a7ff49 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts index 19244f93174..d15e0f67619 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts index d2a0815cea8..7ce195f07a7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts index 5309665361d..6c553cf6db0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts index 068266a1a84..27bb4135660 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts index 40d8ddd6ef6..af544c422c1 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3e64a696" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts index 149778a72e6..3884c555518 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getBlockHash" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts index 102576e9ad6..c14e8ec22b4 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x42cbb15c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts index 36156b6e686..13081555936 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3408e470" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts index 2c9ba726c35..7f20ac5749c 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa8b0574e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts index 72335a2f8bd..38a3806a0cc 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x72425d9d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts index c65e5fd7676..7ce8741e849 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x86d516e8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts index d7caca01726..02daf1735db 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x0f28c97d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts index a224c0653b4..30dca5d1fba 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getEthBalance" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts index 27acbf25bc9..f1a2b78e80e 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x27e86d6e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts index f4bb620df36..f8dd64f3895 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "aggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts index 464c8e5b855..d93589faf77 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "aggregate3" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts index 2a6f5834e5b..c08826f923c 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "aggregate3Value" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts index 1e1d4317881..aaad8b8ba9d 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "blockAndAggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts index d0312ddc01b..2e262064045 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tryAggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts index 4a42356cc17..148eb873fc5 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "tryBlockAndAggregate" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts index fb2cb5db660..85a8404f8e8 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackCreated" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts index d06bdadda34..34e6efaa1fe 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpened" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts index 4a6762257e9..5858c8f0520 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackUpdated" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts index b8febd5014e..8f713d143a3 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "canUpdatePack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts index 92a417a3bc1..233d0176ef1 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPackContents" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts index cce2b6390db..63551a691f3 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTokenCountOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts index 5649dc09864..6d3292d8791 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getTokenOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts index 3cc26fb50f9..9991755461f 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getUriOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts index 5bb0727f223..25f164cd723 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addPackContents" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts index 9462d48da72..b73f6efe6e4 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts index 4749b3478e2..cb086aedfcd 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index 36bd14d6965..dc0b6ac9be2 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackOpenRequested" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index 7f1745fa2ba..dac830eb692 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PackRandomnessFulfilled" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts index 895c70d6748..cac29e8419e 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "canClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts index 92ab7a14f6b..381d4d1006c 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index 09875c2f1c9..bc954a62d72 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts index 18c40077c0d..01a5c361ce1 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleAdminChanged" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts index 7ac136a340d..91f566246e0 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleGranted" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts index d148578d3dc..91fcab84e65 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleRevoked" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts index 6a5295c7316..142c73b479c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleAdmin" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts index 5a856d38561..44c5782708b 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts index d09f70d7b0c..d1a4941ec7c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts index e6c933291cc..c6e5e3be592 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts index f6473a76bc6..114846fcd0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts index 18c40077c0d..01a5c361ce1 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleAdminChanged" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts index 7ac136a340d..91f566246e0 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleGranted" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts index d148578d3dc..91fcab84e65 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RoleRevoked" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts index 6a5295c7316..142c73b479c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleAdmin" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts index c4b0f166724..c1eed901f0f 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleMember" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts index 9d0f2a60f83..d6255b64f06 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getRoleMemberCount" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts index 5a856d38561..44c5782708b 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts index d09f70d7b0c..d1a4941ec7c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts index e6c933291cc..c6e5e3be592 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts index f6473a76bc6..114846fcd0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRole" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts index f4e95dad1f3..c4c449c8056 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts index 1f3ab9ddf7c..9fccd394f82 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts index f4e95dad1f3..c4c449c8056 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts index 36d6778ae8b..926c5ad6b8c 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts index 1a8f813bbf9..b5c91d37dd1 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts index 69ec28d0568..dd971b7f2f4 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts index a8d1282e07e..898c849c688 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts index 5e0ef5d1300..8159cb1cf0d 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts index 0008f7a2b87..68d91821e86 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts index f4e95dad1f3..c4c449c8056 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts index 66d5fa8b114..2ce2e181c53 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts index beb7ac88958..78ca9f193c6 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "payee" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts index 3a1d7c9f2da..ca0a1d2018b 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x00dbe109" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts index 11791d48753..5b08e87a951 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "releasable" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts index 3aad9d307fd..6e4946af5fd 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "released" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts index ccd5d4f0ea3..b8a0402e720 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "shares" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts index f83e68fedbb..ee0ae7881a6 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe33b7de3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts index e36396a24c7..878318ebe64 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3a98ef39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts index ae168c8df86..10c3a66ef3a 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts index cb941c153cb..b3bd48606b0 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "release" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts index 746fafde3a0..ac53dea215b 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "codehashVersion" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts index b1b723248c0..1fb37500877 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "activateProgram" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts index ec91e868b68..619043655dc 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts index 5a6d44c65ae..76b4a890529 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deploy" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts index ec59487b8e8..46f16ea3875 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x094ec830" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts index 5914590d189..0432d51a0f9 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setAppURI" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts index fdbd658fb2b..bc0db42d912 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ProxyDeployed" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts index d2cf5087ba9..ecf298f13a1 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ProxyDeployedV2" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts index 4f3054fa23b..c7eee5a47d3 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deployProxyByImplementation" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts index 9c38e1b77be..6918e6fc719 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deployProxyByImplementationV2" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts index cb592fe7e78..a7581368a99 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ContractPublished" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts index daacec8d2fa..3fdc9a44132 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ContractUnpublished" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts index a27c7ed8a50..952bbb39f58 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PublisherProfileUpdated" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts index 160d991507d..3ebf22f4d5a 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAllPublishedContracts" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts index aa118da5ec4..f75744abb19 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublishedContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts index da7579bee87..40b31842870 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublishedContractVersions" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts index ec4c61cd8a2..e8506e61a6d 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublishedUriFromCompilerUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts index 2fcb86f7d42..98a7af736c7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPublisherProfileUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts index 6a3349b0b27..27b37ddbe45 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "publishContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts index 6e3e25a8f16..ed3e71f44a2 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setPublisherProfileUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts index 0f2780e8a7b..5c5b15fdc91 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "unpublishContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts index 703bd2203fb..104a865aaff 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RuleCreated" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts index 07b59b32352..67e1736ab9b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RuleDeleted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts index cc1ff027a80..03a28920054 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RulesEngineOverriden" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts index cf01e006e62..a89a1d00220 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x1184aef2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts index 895aa7bf039..f374d148564 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa7145eb4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts index 362f6ed7cc6..5e5b14f615f 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getScore" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts index ef265952561..8f2dde241dd 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createRuleMultiplicative" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts index db7aa40753e..846a085d5b5 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createRuleThreshold" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts index bef08963aab..605a10a3feb 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "deleteRule" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts index 99d7900505b..704af13404f 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setRulesEngineOverride" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts index d3b9ed5fec4..06a90ad62ff 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RequestExecuted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts index e1e39e5fcc0..fde6a54b1a7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts index 79327e01306..db4ca066a73 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts index 19a26f8c345..40dd0fc17f8 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Added" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts index 63fdd50ba9b..66fb7bdc924 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Deleted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts index 8f0bbfd54ba..546a25e9dc1 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "count" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts index 2a07856178b..43d29ec079f 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getAll" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts index 0a568674e5e..b51c3652736 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMetadataUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts index e111407965b..1de66810ea7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "add" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts index 29b6635f75e..58b3d8ee112 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "remove" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts index 0a11a4eda0d..e05dc87b740 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts index ff69d4ffd6b..23912c3e211 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts index 3b6693d9579..9dcc8a6a8fa 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts index 0ba92ee95f7..73284334c06 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts index 5228963dd34..8e229e17a20 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts index 39a285efa35..45010946b7e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts index 75704cff765..9e1813f4ebb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts index 91dcf136312..1282b4f57e7 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts index c74afb3f164..462e8e865e9 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts index 7eec0943d4d..59f2776fea6 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts index 854c7b91223..1dbe7fcecb8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts index d6eb079f204..22e5af63920 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts index 850e4e88ec6..1db8273dc7a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts index fd52e1e495a..1d4174d9267 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts index 1911e1e6081..5b84e14dc8f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts index d8c997cfa5d..8c96e3b7a05 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts index b0d99f234f0..69277ccf299 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts index 0313d621929..477cc34c0eb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts index ece4beb6db0..93967631efb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts index 664f624447d..27f629f4453 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts index 3f72b1256d8..c7e751ca5b4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts index 97aa7f770aa..7f611094f21 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts index 4878da12849..f8eb656abed 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts index 74d2984f38e..e0f91ef34e0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts index dcbc74fc6af..801dc93983d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts index 21cad20a483..a1a66858c05 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts index d555ae6d2fb..628c9541b5d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts @@ -1,51 +1,51 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. */ export type InitializeParams = WithOverrides<{ - name: AbiParameterToPrimitiveType<{ type: "string"; name: "_name" }>; - symbol: AbiParameterToPrimitiveType<{ type: "string"; name: "_symbol" }>; + name: AbiParameterToPrimitiveType<{ type: "string"; name: "name" }>; + symbol: AbiParameterToPrimitiveType<{ type: "string"; name: "symbol" }>; contractURI: AbiParameterToPrimitiveType<{ type: "string"; - name: "_contractURI"; + name: "contractURI"; }>; maxSupply: AbiParameterToPrimitiveType<{ type: "uint256"; - name: "_maxSupply"; + name: "maxSupply"; }>; - owner: AbiParameterToPrimitiveType<{ type: "address"; name: "_owner" }>; + owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; }>; export const FN_SELECTOR = "0x30a8ff4e" as const; const FN_INPUTS = [ { type: "string", - name: "_name", + name: "name", }, { type: "string", - name: "_symbol", + name: "symbol", }, { type: "string", - name: "_contractURI", + name: "contractURI", }, { type: "uint256", - name: "_maxSupply", + name: "maxSupply", }, { type: "address", - name: "_owner", + name: "owner", }, ] as const; const FN_OUTPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts index 54478293ecb..8c860fbc6b4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts index 622553c35e4..28b4cb69e17 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts index 91b716f38a8..b6d7e224e58 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts index dbaa63896c0..dde3c541106 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts index a78237f2dc8..16232cfe555 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts index 78cb5ebcdab..50a895c5223 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts index 108df00ea3f..c365c21efdb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts index 407d12b2068..9da8ebbd288 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Created" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts index da0e6d5983e..0d93325707f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ImplementationAdded" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts index 39a285efa35..45010946b7e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts index 75704cff765..9e1813f4ebb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts index 91dcf136312..1282b4f57e7 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RouterUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/PoolRouterUpdated.ts similarity index 55% rename from packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RouterUpdated.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/PoolRouterUpdated.ts index d6636ea9f2b..30ac3fc222b 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/RouterUpdated.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/PoolRouterUpdated.ts @@ -1,24 +1,24 @@ import { prepareEvent } from "../../../../../event/prepare-event.js"; /** - * Creates an event object for the RouterUpdated event. + * Creates an event object for the PoolRouterUpdated event. * @returns The prepared event object. * @extension TOKENS * @example * ```ts * import { getContractEvents } from "thirdweb"; - * import { routerUpdatedEvent } from "thirdweb/extensions/tokens"; + * import { poolRouterUpdatedEvent } from "thirdweb/extensions/tokens"; * * const events = await getContractEvents({ * contract, * events: [ - * routerUpdatedEvent() + * poolRouterUpdatedEvent() * ], * }); * ``` */ -export function routerUpdatedEvent() { +export function poolRouterUpdatedEvent() { return prepareEvent({ - signature: "event RouterUpdated(address router)", + signature: "event PoolRouterUpdated(address poolRouter)", }); } diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/SwapRouterUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/SwapRouterUpdated.ts new file mode 100644 index 00000000000..fce86145141 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/SwapRouterUpdated.ts @@ -0,0 +1,24 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the SwapRouterUpdated event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { swapRouterUpdatedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * swapRouterUpdatedEvent() + * ], + * }); + * ``` + */ +export function swapRouterUpdatedEvent() { + return prepareEvent({ + signature: "event SwapRouterUpdated(address swapRouter)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts index 115091371cf..5009e49908a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts index 7f8a6b28edf..b350e944ee6 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd25f82a0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts index ff7210c19c7..d8b1d81d1f3 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getImplementation" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getPoolRouter.ts similarity index 58% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getPoolRouter.ts index d2f731a87de..e1eccc7d8e5 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/NATIVE_TOKEN.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getPoolRouter.ts @@ -1,29 +1,31 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -export const FN_SELECTOR = "0x31f7d964" as const; +export const FN_SELECTOR = "0x824f512c" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { type: "address", + name: "poolRouter", }, ] as const; /** - * Checks if the `NATIVE_TOKEN` method is supported by the given contract. + * Checks if the `getPoolRouter` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `NATIVE_TOKEN` method is supported. + * @returns A boolean indicating if the `getPoolRouter` method is supported. * @extension TOKENS * @example * ```ts - * import { isNATIVE_TOKENSupported } from "thirdweb/extensions/tokens"; - * const supported = isNATIVE_TOKENSupported(["0x..."]); + * import { isGetPoolRouterSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetPoolRouterSupported(["0x..."]); * ``` */ -export function isNATIVE_TOKENSupported(availableSelectors: string[]) { +export function isGetPoolRouterSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -31,36 +33,36 @@ export function isNATIVE_TOKENSupported(availableSelectors: string[]) { } /** - * Decodes the result of the NATIVE_TOKEN function call. + * Decodes the result of the getPoolRouter function call. * @param result - The hexadecimal result to decode. * @returns The decoded result as per the FN_OUTPUTS definition. * @extension TOKENS * @example * ```ts - * import { decodeNATIVE_TOKENResult } from "thirdweb/extensions/tokens"; - * const result = decodeNATIVE_TOKENResultResult("..."); + * import { decodeGetPoolRouterResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetPoolRouterResultResult("..."); * ``` */ -export function decodeNATIVE_TOKENResult(result: Hex) { +export function decodeGetPoolRouterResult(result: Hex) { return decodeAbiParameters(FN_OUTPUTS, result)[0]; } /** - * Calls the "NATIVE_TOKEN" function on the contract. - * @param options - The options for the NATIVE_TOKEN function. + * Calls the "getPoolRouter" function on the contract. + * @param options - The options for the getPoolRouter function. * @returns The parsed result of the function call. * @extension TOKENS * @example * ```ts - * import { NATIVE_TOKEN } from "thirdweb/extensions/tokens"; + * import { getPoolRouter } from "thirdweb/extensions/tokens"; * - * const result = await NATIVE_TOKEN({ + * const result = await getPoolRouter({ * contract, * }); * * ``` */ -export async function NATIVE_TOKEN(options: BaseTransactionOptions) { +export async function getPoolRouter(options: BaseTransactionOptions) { return readContract({ contract: options.contract, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts index 9108f74b4ca..08276915e26 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getReward" function. @@ -22,15 +22,11 @@ const FN_INPUTS = [ ] as const; const FN_OUTPUTS = [ { - type: "tuple", + type: "tuple[]", components: [ - { - type: "address", - name: "positionManager", - }, { type: "uint256", - name: "tokenId", + name: "positionId", }, { type: "address", @@ -44,6 +40,14 @@ const FN_OUTPUTS = [ type: "uint16", name: "referrerBps", }, + { + type: "address", + name: "positionManager", + }, + { + type: "address", + name: "rewardLocker", + }, ], }, ] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getSwapRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getSwapRouter.ts new file mode 100644 index 00000000000..03851248d49 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getSwapRouter.ts @@ -0,0 +1,71 @@ +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; + +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x725c9c49" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "swapRouter", + }, +] as const; + +/** + * Checks if the `getSwapRouter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getSwapRouter` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetSwapRouterSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetSwapRouterSupported(["0x..."]); + * ``` + */ +export function isGetSwapRouterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Decodes the result of the getSwapRouter function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetSwapRouterResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetSwapRouterResultResult("..."); + * ``` + */ +export function decodeGetSwapRouterResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getSwapRouter" function on the contract. + * @param options - The options for the getSwapRouter function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getSwapRouter } from "thirdweb/extensions/tokens"; + * + * const result = await getSwapRouter({ + * contract, + * }); + * + * ``` + */ +export async function getSwapRouter(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts index f79eebee356..3a4a44be6aa 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "guardSalt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts index b0d99f234f0..69277ccf299 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts index 0313d621929..477cc34c0eb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts index 33a7dd9acba..b4b617bd5f8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "predictAddress" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts index 4adf4d9a442..ed9d4d95e90 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "predictAddressByConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts index f9b76fe556a..e4a93094309 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts index 3b2cacb0cdf..bcbe75102fc 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "addImplementation" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts deleted file mode 100644 index 4adb305411c..00000000000 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/buy.ts +++ /dev/null @@ -1,196 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "buy" function. - */ -export type BuyParams = WithOverrides<{ - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; - params: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "params"; - components: [ - { type: "address"; name: "recipient" }, - { type: "address"; name: "referrer" }, - { type: "address"; name: "tokenIn" }, - { type: "uint256"; name: "amountIn" }, - { type: "uint256"; name: "minAmountOut" }, - { type: "uint256"; name: "deadline" }, - { type: "bytes"; name: "hookData" }, - ]; - }>; -}>; - -export const FN_SELECTOR = "0x688cb20f" as const; -const FN_INPUTS = [ - { - type: "address", - name: "asset", - }, - { - type: "tuple", - name: "params", - components: [ - { - type: "address", - name: "recipient", - }, - { - type: "address", - name: "referrer", - }, - { - type: "address", - name: "tokenIn", - }, - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "minAmountOut", - }, - { - type: "uint256", - name: "deadline", - }, - { - type: "bytes", - name: "hookData", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "amountOut", - }, -] as const; - -/** - * Checks if the `buy` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `buy` method is supported. - * @extension TOKENS - * @example - * ```ts - * import { isBuySupported } from "thirdweb/extensions/tokens"; - * - * const supported = isBuySupported(["0x..."]); - * ``` - */ -export function isBuySupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "buy" function. - * @param options - The options for the buy function. - * @returns The encoded ABI parameters. - * @extension TOKENS - * @example - * ```ts - * import { encodeBuyParams } from "thirdweb/extensions/tokens"; - * const result = encodeBuyParams({ - * asset: ..., - * params: ..., - * }); - * ``` - */ -export function encodeBuyParams(options: BuyParams) { - return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); -} - -/** - * Encodes the "buy" function into a Hex string with its parameters. - * @param options - The options for the buy function. - * @returns The encoded hexadecimal string. - * @extension TOKENS - * @example - * ```ts - * import { encodeBuy } from "thirdweb/extensions/tokens"; - * const result = encodeBuy({ - * asset: ..., - * params: ..., - * }); - * ``` - */ -export function encodeBuy(options: BuyParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeBuyParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "buy" function on the contract. - * @param options - The options for the "buy" function. - * @returns A prepared transaction object. - * @extension TOKENS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { buy } from "thirdweb/extensions/tokens"; - * - * const transaction = buy({ - * contract, - * asset: ..., - * params: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function buy( - options: BaseTransactionOptions< - | BuyParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.asset, resolvedOptions.params] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts index dcbc74fc6af..801dc93983d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts index baafcc2696f..56b69fdd811 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "claimReward" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts index 21cad20a483..a1a66858c05 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts index 165381dda01..49e2b4866fe 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "create" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts index 11cd3716adf..abd4d69803c 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createById" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts index 980c71a812a..c91071a99bc 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createByImplementationConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts index 0b8ea75aae3..69399ef9833 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "distribute" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts index 324294fd194..b6859dd9447 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts @@ -1,27 +1,26 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. */ export type InitializeParams = WithOverrides<{ owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; - router: AbiParameterToPrimitiveType<{ type: "address"; name: "router" }>; - rewardLocker: AbiParameterToPrimitiveType<{ + poolRouter: AbiParameterToPrimitiveType<{ type: "address"; - name: "rewardLocker"; + name: "poolRouter"; }>; airdrop: AbiParameterToPrimitiveType<{ type: "address"; name: "airdrop" }>; }>; -export const FN_SELECTOR = "0xf8c8765e" as const; +export const FN_SELECTOR = "0xc0c53b8b" as const; const FN_INPUTS = [ { type: "address", @@ -29,11 +28,7 @@ const FN_INPUTS = [ }, { type: "address", - name: "router", - }, - { - type: "address", - name: "rewardLocker", + name: "poolRouter", }, { type: "address", @@ -71,8 +66,7 @@ export function isInitializeSupported(availableSelectors: string[]) { * import { encodeInitializeParams } from "thirdweb/extensions/tokens"; * const result = encodeInitializeParams({ * owner: ..., - * router: ..., - * rewardLocker: ..., + * poolRouter: ..., * airdrop: ..., * }); * ``` @@ -80,8 +74,7 @@ export function isInitializeSupported(availableSelectors: string[]) { export function encodeInitializeParams(options: InitializeParams) { return encodeAbiParameters(FN_INPUTS, [ options.owner, - options.router, - options.rewardLocker, + options.poolRouter, options.airdrop, ]); } @@ -96,8 +89,7 @@ export function encodeInitializeParams(options: InitializeParams) { * import { encodeInitialize } from "thirdweb/extensions/tokens"; * const result = encodeInitialize({ * owner: ..., - * router: ..., - * rewardLocker: ..., + * poolRouter: ..., * airdrop: ..., * }); * ``` @@ -124,8 +116,7 @@ export function encodeInitialize(options: InitializeParams) { * const transaction = initialize({ * contract, * owner: ..., - * router: ..., - * rewardLocker: ..., + * poolRouter: ..., * airdrop: ..., * overrides: { * ... @@ -155,8 +146,7 @@ export function initialize( const resolvedOptions = await asyncOptions(); return [ resolvedOptions.owner, - resolvedOptions.router, - resolvedOptions.rewardLocker, + resolvedOptions.poolRouter, resolvedOptions.airdrop, ] as const; }, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts index 622553c35e4..28b4cb69e17 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts index 91b716f38a8..b6d7e224e58 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts deleted file mode 100644 index 93ed3e085a6..00000000000 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/sell.ts +++ /dev/null @@ -1,191 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; -import type { - BaseTransactionOptions, - WithOverrides, -} from "../../../../../transaction/types.js"; -import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import { once } from "../../../../../utils/promise/once.js"; - -/** - * Represents the parameters for the "sell" function. - */ -export type SellParams = WithOverrides<{ - asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; - params: AbiParameterToPrimitiveType<{ - type: "tuple"; - name: "params"; - components: [ - { type: "address"; name: "recipient" }, - { type: "address"; name: "tokenOut" }, - { type: "uint256"; name: "amountIn" }, - { type: "uint256"; name: "minAmountOut" }, - { type: "uint256"; name: "deadline" }, - { type: "bytes"; name: "hookData" }, - ]; - }>; -}>; - -export const FN_SELECTOR = "0xfbc84f15" as const; -const FN_INPUTS = [ - { - type: "address", - name: "asset", - }, - { - type: "tuple", - name: "params", - components: [ - { - type: "address", - name: "recipient", - }, - { - type: "address", - name: "tokenOut", - }, - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "minAmountOut", - }, - { - type: "uint256", - name: "deadline", - }, - { - type: "bytes", - name: "hookData", - }, - ], - }, -] as const; -const FN_OUTPUTS = [ - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "amountOut", - }, -] as const; - -/** - * Checks if the `sell` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `sell` method is supported. - * @extension TOKENS - * @example - * ```ts - * import { isSellSupported } from "thirdweb/extensions/tokens"; - * - * const supported = isSellSupported(["0x..."]); - * ``` - */ -export function isSellSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Encodes the parameters for the "sell" function. - * @param options - The options for the sell function. - * @returns The encoded ABI parameters. - * @extension TOKENS - * @example - * ```ts - * import { encodeSellParams } from "thirdweb/extensions/tokens"; - * const result = encodeSellParams({ - * asset: ..., - * params: ..., - * }); - * ``` - */ -export function encodeSellParams(options: SellParams) { - return encodeAbiParameters(FN_INPUTS, [options.asset, options.params]); -} - -/** - * Encodes the "sell" function into a Hex string with its parameters. - * @param options - The options for the sell function. - * @returns The encoded hexadecimal string. - * @extension TOKENS - * @example - * ```ts - * import { encodeSell } from "thirdweb/extensions/tokens"; - * const result = encodeSell({ - * asset: ..., - * params: ..., - * }); - * ``` - */ -export function encodeSell(options: SellParams) { - // we do a "manual" concat here to avoid the overhead of the "concatHex" function - // we can do this because we know the specific formats of the values - return (FN_SELECTOR + - encodeSellParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; -} - -/** - * Prepares a transaction to call the "sell" function on the contract. - * @param options - The options for the "sell" function. - * @returns A prepared transaction object. - * @extension TOKENS - * @example - * ```ts - * import { sendTransaction } from "thirdweb"; - * import { sell } from "thirdweb/extensions/tokens"; - * - * const transaction = sell({ - * contract, - * asset: ..., - * params: ..., - * overrides: { - * ... - * } - * }); - * - * // Send the transaction - * await sendTransaction({ transaction, account }); - * ``` - */ -export function sell( - options: BaseTransactionOptions< - | SellParams - | { - asyncParams: () => Promise; - } - >, -) { - const asyncOptions = once(async () => { - return "asyncParams" in options ? await options.asyncParams() : options; - }); - - return prepareContractCall({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: async () => { - const resolvedOptions = await asyncOptions(); - return [resolvedOptions.asset, resolvedOptions.params] as const; - }, - value: async () => (await asyncOptions()).overrides?.value, - accessList: async () => (await asyncOptions()).overrides?.accessList, - gas: async () => (await asyncOptions()).overrides?.gas, - gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, - maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, - maxPriorityFeePerGas: async () => - (await asyncOptions()).overrides?.maxPriorityFeePerGas, - nonce: async () => (await asyncOptions()).overrides?.nonce, - extraGas: async () => (await asyncOptions()).overrides?.extraGas, - erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, - authorizationList: async () => - (await asyncOptions()).overrides?.authorizationList, - }); -} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts index c3ed838daaf..e0998244940 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setAirdrop" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setPoolRouter.ts similarity index 60% rename from packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setPoolRouter.ts index 999a8183e97..35c67958ba4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRewardLocker.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setPoolRouter.ts @@ -1,45 +1,45 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "setRewardLocker" function. + * Represents the parameters for the "setPoolRouter" function. */ -export type SetRewardLockerParams = WithOverrides<{ - rewardLocker: AbiParameterToPrimitiveType<{ +export type SetPoolRouterParams = WithOverrides<{ + poolRouter: AbiParameterToPrimitiveType<{ type: "address"; - name: "rewardLocker"; + name: "poolRouter"; }>; }>; -export const FN_SELECTOR = "0xeb7fb197" as const; +export const FN_SELECTOR = "0x0c8d9cc7" as const; const FN_INPUTS = [ { type: "address", - name: "rewardLocker", + name: "poolRouter", }, ] as const; const FN_OUTPUTS = [] as const; /** - * Checks if the `setRewardLocker` method is supported by the given contract. + * Checks if the `setPoolRouter` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `setRewardLocker` method is supported. + * @returns A boolean indicating if the `setPoolRouter` method is supported. * @extension TOKENS * @example * ```ts - * import { isSetRewardLockerSupported } from "thirdweb/extensions/tokens"; + * import { isSetPoolRouterSupported } from "thirdweb/extensions/tokens"; * - * const supported = isSetRewardLockerSupported(["0x..."]); + * const supported = isSetPoolRouterSupported(["0x..."]); * ``` */ -export function isSetRewardLockerSupported(availableSelectors: string[]) { +export function isSetPoolRouterSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -47,57 +47,57 @@ export function isSetRewardLockerSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "setRewardLocker" function. - * @param options - The options for the setRewardLocker function. + * Encodes the parameters for the "setPoolRouter" function. + * @param options - The options for the setPoolRouter function. * @returns The encoded ABI parameters. * @extension TOKENS * @example * ```ts - * import { encodeSetRewardLockerParams } from "thirdweb/extensions/tokens"; - * const result = encodeSetRewardLockerParams({ - * rewardLocker: ..., + * import { encodeSetPoolRouterParams } from "thirdweb/extensions/tokens"; + * const result = encodeSetPoolRouterParams({ + * poolRouter: ..., * }); * ``` */ -export function encodeSetRewardLockerParams(options: SetRewardLockerParams) { - return encodeAbiParameters(FN_INPUTS, [options.rewardLocker]); +export function encodeSetPoolRouterParams(options: SetPoolRouterParams) { + return encodeAbiParameters(FN_INPUTS, [options.poolRouter]); } /** - * Encodes the "setRewardLocker" function into a Hex string with its parameters. - * @param options - The options for the setRewardLocker function. + * Encodes the "setPoolRouter" function into a Hex string with its parameters. + * @param options - The options for the setPoolRouter function. * @returns The encoded hexadecimal string. * @extension TOKENS * @example * ```ts - * import { encodeSetRewardLocker } from "thirdweb/extensions/tokens"; - * const result = encodeSetRewardLocker({ - * rewardLocker: ..., + * import { encodeSetPoolRouter } from "thirdweb/extensions/tokens"; + * const result = encodeSetPoolRouter({ + * poolRouter: ..., * }); * ``` */ -export function encodeSetRewardLocker(options: SetRewardLockerParams) { +export function encodeSetPoolRouter(options: SetPoolRouterParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeSetRewardLockerParams(options).slice( + encodeSetPoolRouterParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "setRewardLocker" function on the contract. - * @param options - The options for the "setRewardLocker" function. + * Prepares a transaction to call the "setPoolRouter" function on the contract. + * @param options - The options for the "setPoolRouter" function. * @returns A prepared transaction object. * @extension TOKENS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { setRewardLocker } from "thirdweb/extensions/tokens"; + * import { setPoolRouter } from "thirdweb/extensions/tokens"; * - * const transaction = setRewardLocker({ + * const transaction = setPoolRouter({ * contract, - * rewardLocker: ..., + * poolRouter: ..., * overrides: { * ... * } @@ -107,11 +107,11 @@ export function encodeSetRewardLocker(options: SetRewardLockerParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function setRewardLocker( +export function setPoolRouter( options: BaseTransactionOptions< - | SetRewardLockerParams + | SetPoolRouterParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { @@ -124,7 +124,7 @@ export function setRewardLocker( method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, params: async () => { const resolvedOptions = await asyncOptions(); - return [resolvedOptions.rewardLocker] as const; + return [resolvedOptions.poolRouter] as const; }, value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setSwapRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setSwapRouter.ts new file mode 100644 index 00000000000..4bb522cc793 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setSwapRouter.ts @@ -0,0 +1,142 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "setSwapRouter" function. + */ +export type SetSwapRouterParams = WithOverrides<{ + swapRouter: AbiParameterToPrimitiveType<{ + type: "address"; + name: "swapRouter"; + }>; +}>; + +export const FN_SELECTOR = "0x41273657" as const; +const FN_INPUTS = [ + { + type: "address", + name: "swapRouter", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `setSwapRouter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `setSwapRouter` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isSetSwapRouterSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isSetSwapRouterSupported(["0x..."]); + * ``` + */ +export function isSetSwapRouterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "setSwapRouter" function. + * @param options - The options for the setSwapRouter function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetSwapRouterParams } from "thirdweb/extensions/tokens"; + * const result = encodeSetSwapRouterParams({ + * swapRouter: ..., + * }); + * ``` + */ +export function encodeSetSwapRouterParams(options: SetSwapRouterParams) { + return encodeAbiParameters(FN_INPUTS, [options.swapRouter]); +} + +/** + * Encodes the "setSwapRouter" function into a Hex string with its parameters. + * @param options - The options for the setSwapRouter function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeSetSwapRouter } from "thirdweb/extensions/tokens"; + * const result = encodeSetSwapRouter({ + * swapRouter: ..., + * }); + * ``` + */ +export function encodeSetSwapRouter(options: SetSwapRouterParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeSetSwapRouterParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "setSwapRouter" function on the contract. + * @param options - The options for the "setSwapRouter" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { setSwapRouter } from "thirdweb/extensions/tokens"; + * + * const transaction = setSwapRouter({ + * contract, + * swapRouter: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function setSwapRouter( + options: BaseTransactionOptions< + | SetSwapRouterParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.swapRouter] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/swap.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/swap.ts similarity index 89% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/swap.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/swap.ts index cf10c5e2d01..e86f2001c52 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/swap.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/swap.ts @@ -1,27 +1,27 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "swap" function. */ export type SwapParams = WithOverrides<{ - config: AbiParameterToPrimitiveType<{ + params: AbiParameterToPrimitiveType<{ type: "tuple"; - name: "config"; + name: "params"; components: [ { type: "address"; name: "tokenIn" }, { type: "address"; name: "tokenOut" }, { type: "uint256"; name: "amountIn" }, { type: "uint256"; name: "minAmountOut" }, { type: "address"; name: "recipient" }, - { type: "address"; name: "refundRecipient" }, + { type: "address"; name: "referrer" }, { type: "uint256"; name: "deadline" }, { type: "bytes"; name: "data" }, ]; @@ -32,7 +32,7 @@ export const FN_SELECTOR = "0x8892376c" as const; const FN_INPUTS = [ { type: "tuple", - name: "config", + name: "params", components: [ { type: "address", @@ -56,7 +56,7 @@ const FN_INPUTS = [ }, { type: "address", - name: "refundRecipient", + name: "referrer", }, { type: "uint256", @@ -71,22 +71,12 @@ const FN_INPUTS = [ ] as const; const FN_OUTPUTS = [ { - type: "tuple", - name: "result", - components: [ - { - type: "uint256", - name: "amountIn", - }, - { - type: "uint256", - name: "amountOut", - }, - { - type: "address", - name: "source", - }, - ], + type: "uint256", + name: "amountIn", + }, + { + type: "uint256", + name: "amountOut", }, ] as const; @@ -118,12 +108,12 @@ export function isSwapSupported(availableSelectors: string[]) { * ```ts * import { encodeSwapParams } from "thirdweb/extensions/tokens"; * const result = encodeSwapParams({ - * config: ..., + * params: ..., * }); * ``` */ export function encodeSwapParams(options: SwapParams) { - return encodeAbiParameters(FN_INPUTS, [options.config]); + return encodeAbiParameters(FN_INPUTS, [options.params]); } /** @@ -135,7 +125,7 @@ export function encodeSwapParams(options: SwapParams) { * ```ts * import { encodeSwap } from "thirdweb/extensions/tokens"; * const result = encodeSwap({ - * config: ..., + * params: ..., * }); * ``` */ @@ -158,7 +148,7 @@ export function encodeSwap(options: SwapParams) { * * const transaction = swap({ * contract, - * config: ..., + * params: ..., * overrides: { * ... * } @@ -185,7 +175,7 @@ export function swap( method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, params: async () => { const resolvedOptions = await asyncOptions(); - return [resolvedOptions.config] as const; + return [resolvedOptions.params] as const; }, value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts index 108df00ea3f..c365c21efdb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts index d5af1b33184..2647a840a19 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/withdraw.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/withdraw.ts new file mode 100644 index 00000000000..297fa7fa18e --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/withdraw.ts @@ -0,0 +1,145 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "withdraw" function. + */ +export type WithdrawParams = WithOverrides<{ + token: AbiParameterToPrimitiveType<{ type: "address"; name: "token" }>; + to: AbiParameterToPrimitiveType<{ type: "address"; name: "to" }>; +}>; + +export const FN_SELECTOR = "0xf940e385" as const; +const FN_INPUTS = [ + { + type: "address", + name: "token", + }, + { + type: "address", + name: "to", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `withdraw` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `withdraw` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isWithdrawSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isWithdrawSupported(["0x..."]); + * ``` + */ +export function isWithdrawSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "withdraw" function. + * @param options - The options for the withdraw function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeWithdrawParams } from "thirdweb/extensions/tokens"; + * const result = encodeWithdrawParams({ + * token: ..., + * to: ..., + * }); + * ``` + */ +export function encodeWithdrawParams(options: WithdrawParams) { + return encodeAbiParameters(FN_INPUTS, [options.token, options.to]); +} + +/** + * Encodes the "withdraw" function into a Hex string with its parameters. + * @param options - The options for the withdraw function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeWithdraw } from "thirdweb/extensions/tokens"; + * const result = encodeWithdraw({ + * token: ..., + * to: ..., + * }); + * ``` + */ +export function encodeWithdraw(options: WithdrawParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeWithdrawParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "withdraw" function on the contract. + * @param options - The options for the "withdraw" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { withdraw } from "thirdweb/extensions/tokens"; + * + * const transaction = withdraw({ + * contract, + * token: ..., + * to: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function withdraw( + options: BaseTransactionOptions< + | WithdrawParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.token, resolvedOptions.to] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts index 548796d5d9e..71294cf62fa 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "FeeConfigUpdated" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts index 9eff4a197ea..31e3ff9025d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "FeeConfigUpdatedBySignature" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts index 39a285efa35..45010946b7e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts index 75704cff765..9e1813f4ebb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts index 91dcf136312..1282b4f57e7 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts index 947e5eed192..1737069f0dd 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts index 79f8f1a40e9..ed4513d6263 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x99ba5936" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts index 567150a2376..50aba48e6db 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "calculateFee" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts index 530414e18dd..886713c2b77 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xf698da25" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts index 40c013ad46b..9e4bd706913 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts index 41d9e902587..60790048774 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "feeConfigs" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts index ddd961ece01..12f20f88ff4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x46904840" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts index 486a16008dc..43fd6562dff 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts index b005d7cb405..1a9802f87ca 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts index ed6eba92071..c788991b395 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts index b0d99f234f0..69277ccf299 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts index 0313d621929..477cc34c0eb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts index c4681f40e5c..f559e611df0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts index 3fe2b4eb3a7..a43a178112c 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "usedNonces" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts index dcbc74fc6af..801dc93983d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts index 21cad20a483..a1a66858c05 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts index 7643c1e7899..922a8038ad1 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts index 622553c35e4..28b4cb69e17 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts index b9ca3a80944..e5aebc6ebfb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts index 91b716f38a8..b6d7e224e58 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts index d8a69363eb4..7957513d7aa 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts index 3bc6b013df5..51679730be4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts index 401a5122861..46021169b71 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setFeeConfigBySignature" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts index fab5f82cd55..28bca8913fc 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setFeeRecipient" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts index 619d7783d67..e373255b4fd 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setTargetFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts index 108df00ea3f..c365c21efdb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterDisabled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/AdapterDisabled.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterDisabled.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/AdapterDisabled.ts diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterEnabled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/AdapterEnabled.ts similarity index 86% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterEnabled.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/AdapterEnabled.ts index 20810cdef23..563403891dc 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/AdapterEnabled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/AdapterEnabled.ts @@ -19,6 +19,6 @@ import { prepareEvent } from "../../../../../event/prepare-event.js"; */ export function adapterEnabledEvent() { return prepareEvent({ - signature: "event AdapterEnabled(uint8 adapterType)", + signature: "event AdapterEnabled(uint8 adapterType, address rewardLocker)", }); } diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Initialized.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/Initialized.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Initialized.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/Initialized.ts diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverCanceled.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverCanceled.ts index 39a285efa35..45010946b7e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverRequested.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverRequested.ts index 75704cff765..9e1813f4ebb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipTransferred.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipTransferred.ts index 91dcf136312..1282b4f57e7 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RewardClaimed.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RewardClaimed.ts new file mode 100644 index 00000000000..e6301caf9c6 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RewardClaimed.ts @@ -0,0 +1,25 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; + +/** + * Creates an event object for the RewardClaimed event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { rewardClaimedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * rewardClaimedEvent() + * ], + * }); + * ``` + */ +export function rewardClaimedEvent() { + return prepareEvent({ + signature: + "event RewardClaimed(address rewardLocker, address asset, address claimer)", + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RolesUpdated.ts new file mode 100644 index 00000000000..1737069f0dd --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RolesUpdated.ts @@ -0,0 +1,47 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "RolesUpdated" event. + */ +export type RolesUpdatedEventFilters = Partial<{ + user: AbiParameterToPrimitiveType<{ + type: "address"; + name: "user"; + indexed: true; + }>; + roles: AbiParameterToPrimitiveType<{ + type: "uint256"; + name: "roles"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the RolesUpdated event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { rolesUpdatedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * rolesUpdatedEvent({ + * user: ..., + * roles: ..., + * }) + * ], + * }); + * ``` + */ +export function rolesUpdatedEvent(filters: RolesUpdatedEventFilters = {}) { + return prepareEvent({ + signature: + "event RolesUpdated(address indexed user, uint256 indexed roles)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/Upgraded.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/Upgraded.ts index 115091371cf..5009e49908a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/Upgraded.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getAdapter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getAdapter.ts new file mode 100644 index 00000000000..380e52aab07 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getAdapter.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "getAdapter" function. + */ +export type GetAdapterParams = { + adapterType: AbiParameterToPrimitiveType<{ + type: "uint8"; + name: "adapterType"; + }>; +}; + +export const FN_SELECTOR = "0xd6cbae4d" as const; +const FN_INPUTS = [ + { + type: "uint8", + name: "adapterType", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "tuple", + name: "adapterConfig", + components: [ + { + type: "bytes", + name: "config", + }, + { + type: "address", + name: "rewardLocker", + }, + ], + }, +] as const; + +/** + * Checks if the `getAdapter` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getAdapter` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetAdapterSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetAdapterSupported(["0x..."]); + * ``` + */ +export function isGetAdapterSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "getAdapter" function. + * @param options - The options for the getAdapter function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetAdapterParams } from "thirdweb/extensions/tokens"; + * const result = encodeGetAdapterParams({ + * adapterType: ..., + * }); + * ``` + */ +export function encodeGetAdapterParams(options: GetAdapterParams) { + return encodeAbiParameters(FN_INPUTS, [options.adapterType]); +} + +/** + * Encodes the "getAdapter" function into a Hex string with its parameters. + * @param options - The options for the getAdapter function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetAdapter } from "thirdweb/extensions/tokens"; + * const result = encodeGetAdapter({ + * adapterType: ..., + * }); + * ``` + */ +export function encodeGetAdapter(options: GetAdapterParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGetAdapterParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the getAdapter function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetAdapterResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetAdapterResultResult("..."); + * ``` + */ +export function decodeGetAdapterResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getAdapter" function on the contract. + * @param options - The options for the getAdapter function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getAdapter } from "thirdweb/extensions/tokens"; + * + * const result = await getAdapter({ + * contract, + * adapterType: ..., + * }); + * + * ``` + */ +export async function getAdapter( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.adapterType], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardLocker.ts new file mode 100644 index 00000000000..1f202082c73 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardLocker.ts @@ -0,0 +1,129 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "getRewardLocker" function. + */ +export type GetRewardLockerParams = { + adapterType: AbiParameterToPrimitiveType<{ + type: "uint8"; + name: "adapterType"; + }>; +}; + +export const FN_SELECTOR = "0x16e23696" as const; +const FN_INPUTS = [ + { + type: "uint8", + name: "adapterType", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "address", + name: "rewardLocker", + }, +] as const; + +/** + * Checks if the `getRewardLocker` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getRewardLocker` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetRewardLockerSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetRewardLockerSupported(["0x..."]); + * ``` + */ +export function isGetRewardLockerSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "getRewardLocker" function. + * @param options - The options for the getRewardLocker function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetRewardLockerParams } from "thirdweb/extensions/tokens"; + * const result = encodeGetRewardLockerParams({ + * adapterType: ..., + * }); + * ``` + */ +export function encodeGetRewardLockerParams(options: GetRewardLockerParams) { + return encodeAbiParameters(FN_INPUTS, [options.adapterType]); +} + +/** + * Encodes the "getRewardLocker" function into a Hex string with its parameters. + * @param options - The options for the getRewardLocker function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetRewardLocker } from "thirdweb/extensions/tokens"; + * const result = encodeGetRewardLocker({ + * adapterType: ..., + * }); + * ``` + */ +export function encodeGetRewardLocker(options: GetRewardLockerParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGetRewardLockerParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the getRewardLocker function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetRewardLockerResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetRewardLockerResultResult("..."); + * ``` + */ +export function decodeGetRewardLockerResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getRewardLocker" function on the contract. + * @param options - The options for the getRewardLocker function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getRewardLocker } from "thirdweb/extensions/tokens"; + * + * const result = await getRewardLocker({ + * contract, + * adapterType: ..., + * }); + * + * ``` + */ +export async function getRewardLocker( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.adapterType], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPosition.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPosition.ts new file mode 100644 index 00000000000..bf9ac307bdb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPosition.ts @@ -0,0 +1,165 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "getRewardPosition" function. + */ +export type GetRewardPositionParams = { + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; + adapterType: AbiParameterToPrimitiveType<{ + type: "uint8"; + name: "adapterType"; + }>; +}; + +export const FN_SELECTOR = "0x65798bfb" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, + { + type: "uint8", + name: "adapterType", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "tuple", + name: "position", + components: [ + { + type: "uint256", + name: "positionId", + }, + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "uint16", + name: "referrerBps", + }, + { + type: "address", + name: "positionManager", + }, + { + type: "address", + name: "rewardLocker", + }, + ], + }, +] as const; + +/** + * Checks if the `getRewardPosition` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getRewardPosition` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetRewardPositionSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetRewardPositionSupported(["0x..."]); + * ``` + */ +export function isGetRewardPositionSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "getRewardPosition" function. + * @param options - The options for the getRewardPosition function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetRewardPositionParams } from "thirdweb/extensions/tokens"; + * const result = encodeGetRewardPositionParams({ + * asset: ..., + * adapterType: ..., + * }); + * ``` + */ +export function encodeGetRewardPositionParams( + options: GetRewardPositionParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.asset, options.adapterType]); +} + +/** + * Encodes the "getRewardPosition" function into a Hex string with its parameters. + * @param options - The options for the getRewardPosition function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetRewardPosition } from "thirdweb/extensions/tokens"; + * const result = encodeGetRewardPosition({ + * asset: ..., + * adapterType: ..., + * }); + * ``` + */ +export function encodeGetRewardPosition(options: GetRewardPositionParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGetRewardPositionParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the getRewardPosition function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetRewardPositionResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetRewardPositionResultResult("..."); + * ``` + */ +export function decodeGetRewardPositionResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getRewardPosition" function on the contract. + * @param options - The options for the getRewardPosition function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getRewardPosition } from "thirdweb/extensions/tokens"; + * + * const result = await getRewardPosition({ + * contract, + * asset: ..., + * adapterType: ..., + * }); + * + * ``` + */ +export async function getRewardPosition( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.asset, options.adapterType], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPositions.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPositions.ts new file mode 100644 index 00000000000..efff0f98e00 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPositions.ts @@ -0,0 +1,154 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "getRewardPositions" function. + */ +export type GetRewardPositionsParams = { + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; +}; + +export const FN_SELECTOR = "0xcb62c6b6" as const; +const FN_INPUTS = [ + { + type: "address", + name: "asset", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "tuple[]", + name: "positions", + components: [ + { + type: "uint256", + name: "positionId", + }, + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "uint16", + name: "referrerBps", + }, + { + type: "address", + name: "positionManager", + }, + { + type: "address", + name: "rewardLocker", + }, + ], + }, +] as const; + +/** + * Checks if the `getRewardPositions` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `getRewardPositions` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGetRewardPositionsSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetRewardPositionsSupported(["0x..."]); + * ``` + */ +export function isGetRewardPositionsSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "getRewardPositions" function. + * @param options - The options for the getRewardPositions function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetRewardPositionsParams } from "thirdweb/extensions/tokens"; + * const result = encodeGetRewardPositionsParams({ + * asset: ..., + * }); + * ``` + */ +export function encodeGetRewardPositionsParams( + options: GetRewardPositionsParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.asset]); +} + +/** + * Encodes the "getRewardPositions" function into a Hex string with its parameters. + * @param options - The options for the getRewardPositions function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeGetRewardPositions } from "thirdweb/extensions/tokens"; + * const result = encodeGetRewardPositions({ + * asset: ..., + * }); + * ``` + */ +export function encodeGetRewardPositions(options: GetRewardPositionsParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGetRewardPositionsParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the getRewardPositions function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeGetRewardPositionsResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetRewardPositionsResultResult("..."); + * ``` + */ +export function decodeGetRewardPositionsResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "getRewardPositions" function on the contract. + * @param options - The options for the getRewardPositions function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { getRewardPositions } from "thirdweb/extensions/tokens"; + * + * const result = await getRewardPositions({ + * contract, + * asset: ..., + * }); + * + * ``` + */ +export async function getRewardPositions( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.asset], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAllRoles.ts new file mode 100644 index 00000000000..1a9802f87ca --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAllRoles.ts @@ -0,0 +1,133 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "hasAllRoles" function. + */ +export type HasAllRolesParams = { + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}; + +export const FN_SELECTOR = "0x1cd64df4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `hasAllRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `hasAllRoles` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isHasAllRolesSupported } from "thirdweb/extensions/tokens"; + * const supported = isHasAllRolesSupported(["0x..."]); + * ``` + */ +export function isHasAllRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "hasAllRoles" function. + * @param options - The options for the hasAllRoles function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeHasAllRolesParams } from "thirdweb/extensions/tokens"; + * const result = encodeHasAllRolesParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAllRolesParams(options: HasAllRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "hasAllRoles" function into a Hex string with its parameters. + * @param options - The options for the hasAllRoles function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeHasAllRoles } from "thirdweb/extensions/tokens"; + * const result = encodeHasAllRoles({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAllRoles(options: HasAllRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeHasAllRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the hasAllRoles function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeHasAllRolesResult } from "thirdweb/extensions/tokens"; + * const result = decodeHasAllRolesResultResult("..."); + * ``` + */ +export function decodeHasAllRolesResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "hasAllRoles" function on the contract. + * @param options - The options for the hasAllRoles function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { hasAllRoles } from "thirdweb/extensions/tokens"; + * + * const result = await hasAllRoles({ + * contract, + * user: ..., + * roles: ..., + * }); + * + * ``` + */ +export async function hasAllRoles( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.user, options.roles], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAnyRole.ts new file mode 100644 index 00000000000..c788991b395 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAnyRole.ts @@ -0,0 +1,133 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "hasAnyRole" function. + */ +export type HasAnyRoleParams = { + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}; + +export const FN_SELECTOR = "0x514e62fc" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "bool", + }, +] as const; + +/** + * Checks if the `hasAnyRole` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `hasAnyRole` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isHasAnyRoleSupported } from "thirdweb/extensions/tokens"; + * const supported = isHasAnyRoleSupported(["0x..."]); + * ``` + */ +export function isHasAnyRoleSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "hasAnyRole" function. + * @param options - The options for the hasAnyRole function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeHasAnyRoleParams } from "thirdweb/extensions/tokens"; + * const result = encodeHasAnyRoleParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAnyRoleParams(options: HasAnyRoleParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "hasAnyRole" function into a Hex string with its parameters. + * @param options - The options for the hasAnyRole function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeHasAnyRole } from "thirdweb/extensions/tokens"; + * const result = encodeHasAnyRole({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeHasAnyRole(options: HasAnyRoleParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeHasAnyRoleParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the hasAnyRole function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeHasAnyRoleResult } from "thirdweb/extensions/tokens"; + * const result = decodeHasAnyRoleResultResult("..."); + * ``` + */ +export function decodeHasAnyRoleResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "hasAnyRole" function on the contract. + * @param options - The options for the hasAnyRole function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { hasAnyRole } from "thirdweb/extensions/tokens"; + * + * const result = await hasAnyRole({ + * contract, + * user: ..., + * roles: ..., + * }); + * + * ``` + */ +export async function hasAnyRole( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.user, options.roles], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/owner.ts similarity index 99% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/owner.ts index b0d99f234f0..69277ccf299 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/ownershipHandoverExpiresAt.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/ownershipHandoverExpiresAt.ts index 0313d621929..477cc34c0eb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/proxiableUUID.ts similarity index 99% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/proxiableUUID.ts index f9b76fe556a..e4a93094309 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/proxiableUUID.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/rolesOf.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/rolesOf.ts new file mode 100644 index 00000000000..f559e611df0 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/rolesOf.ts @@ -0,0 +1,122 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "rolesOf" function. + */ +export type RolesOfParams = { + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; +}; + +export const FN_SELECTOR = "0x2de94807" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "roles", + }, +] as const; + +/** + * Checks if the `rolesOf` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `rolesOf` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRolesOfSupported } from "thirdweb/extensions/tokens"; + * const supported = isRolesOfSupported(["0x..."]); + * ``` + */ +export function isRolesOfSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "rolesOf" function. + * @param options - The options for the rolesOf function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeRolesOfParams } from "thirdweb/extensions/tokens"; + * const result = encodeRolesOfParams({ + * user: ..., + * }); + * ``` + */ +export function encodeRolesOfParams(options: RolesOfParams) { + return encodeAbiParameters(FN_INPUTS, [options.user]); +} + +/** + * Encodes the "rolesOf" function into a Hex string with its parameters. + * @param options - The options for the rolesOf function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeRolesOf } from "thirdweb/extensions/tokens"; + * const result = encodeRolesOf({ + * user: ..., + * }); + * ``` + */ +export function encodeRolesOf(options: RolesOfParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeRolesOfParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the rolesOf function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeRolesOfResult } from "thirdweb/extensions/tokens"; + * const result = decodeRolesOfResultResult("..."); + * ``` + */ +export function decodeRolesOfResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "rolesOf" function on the contract. + * @param options - The options for the rolesOf function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { rolesOf } from "thirdweb/extensions/tokens"; + * + * const result = await rolesOf({ + * contract, + * user: ..., + * }); + * + * ``` + */ +export async function rolesOf(options: BaseTransactionOptions) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.user], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/cancelOwnershipHandover.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/cancelOwnershipHandover.ts index dcbc74fc6af..801dc93983d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/claimRewards.ts similarity index 61% rename from packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/claimRewards.ts index 2c4c7054648..fbb31fc5c6c 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setRouter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/claimRewards.ts @@ -1,42 +1,42 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "setRouter" function. + * Represents the parameters for the "claimRewards" function. */ -export type SetRouterParams = WithOverrides<{ - router: AbiParameterToPrimitiveType<{ type: "address"; name: "router" }>; +export type ClaimRewardsParams = WithOverrides<{ + asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; }>; -export const FN_SELECTOR = "0xc0d78655" as const; +export const FN_SELECTOR = "0xef5cfb8c" as const; const FN_INPUTS = [ { type: "address", - name: "router", + name: "asset", }, ] as const; const FN_OUTPUTS = [] as const; /** - * Checks if the `setRouter` method is supported by the given contract. + * Checks if the `claimRewards` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `setRouter` method is supported. + * @returns A boolean indicating if the `claimRewards` method is supported. * @extension TOKENS * @example * ```ts - * import { isSetRouterSupported } from "thirdweb/extensions/tokens"; + * import { isClaimRewardsSupported } from "thirdweb/extensions/tokens"; * - * const supported = isSetRouterSupported(["0x..."]); + * const supported = isClaimRewardsSupported(["0x..."]); * ``` */ -export function isSetRouterSupported(availableSelectors: string[]) { +export function isClaimRewardsSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -44,57 +44,57 @@ export function isSetRouterSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "setRouter" function. - * @param options - The options for the setRouter function. + * Encodes the parameters for the "claimRewards" function. + * @param options - The options for the claimRewards function. * @returns The encoded ABI parameters. * @extension TOKENS * @example * ```ts - * import { encodeSetRouterParams } from "thirdweb/extensions/tokens"; - * const result = encodeSetRouterParams({ - * router: ..., + * import { encodeClaimRewardsParams } from "thirdweb/extensions/tokens"; + * const result = encodeClaimRewardsParams({ + * asset: ..., * }); * ``` */ -export function encodeSetRouterParams(options: SetRouterParams) { - return encodeAbiParameters(FN_INPUTS, [options.router]); +export function encodeClaimRewardsParams(options: ClaimRewardsParams) { + return encodeAbiParameters(FN_INPUTS, [options.asset]); } /** - * Encodes the "setRouter" function into a Hex string with its parameters. - * @param options - The options for the setRouter function. + * Encodes the "claimRewards" function into a Hex string with its parameters. + * @param options - The options for the claimRewards function. * @returns The encoded hexadecimal string. * @extension TOKENS * @example * ```ts - * import { encodeSetRouter } from "thirdweb/extensions/tokens"; - * const result = encodeSetRouter({ - * router: ..., + * import { encodeClaimRewards } from "thirdweb/extensions/tokens"; + * const result = encodeClaimRewards({ + * asset: ..., * }); * ``` */ -export function encodeSetRouter(options: SetRouterParams) { +export function encodeClaimRewards(options: ClaimRewardsParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeSetRouterParams(options).slice( + encodeClaimRewardsParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "setRouter" function on the contract. - * @param options - The options for the "setRouter" function. + * Prepares a transaction to call the "claimRewards" function on the contract. + * @param options - The options for the "claimRewards" function. * @returns A prepared transaction object. * @extension TOKENS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { setRouter } from "thirdweb/extensions/tokens"; + * import { claimRewards } from "thirdweb/extensions/tokens"; * - * const transaction = setRouter({ + * const transaction = claimRewards({ * contract, - * router: ..., + * asset: ..., * overrides: { * ... * } @@ -104,11 +104,11 @@ export function encodeSetRouter(options: SetRouterParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function setRouter( +export function claimRewards( options: BaseTransactionOptions< - | SetRouterParams + | ClaimRewardsParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { @@ -121,7 +121,7 @@ export function setRouter( method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, params: async () => { const resolvedOptions = await asyncOptions(); - return [resolvedOptions.router] as const; + return [resolvedOptions.asset] as const; }, value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/completeOwnershipHandover.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/completeOwnershipHandover.ts index 21cad20a483..a1a66858c05 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/createPool.ts similarity index 83% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/createPool.ts index 8b6a8118e25..62a3c440dd8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/createPool.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPool" function. @@ -18,16 +18,17 @@ export type CreatePoolParams = WithOverrides<{ components: [ { type: "address"; name: "recipient" }, { type: "address"; name: "referrer" }, - { type: "address"; name: "tokenA" }, - { type: "address"; name: "tokenB" }, - { type: "uint256"; name: "amountA" }, - { type: "uint256"; name: "amountB" }, + { type: "uint16"; name: "referrerBps" }, + { type: "address"; name: "token" }, + { type: "address"; name: "tokenPair" }, + { type: "uint256"; name: "amount" }, + { type: "uint256"; name: "amountPair" }, { type: "bytes"; name: "data" }, ]; }>; }>; -export const FN_SELECTOR = "0xa1970c55" as const; +export const FN_SELECTOR = "0x91fe5f8c" as const; const FN_INPUTS = [ { type: "tuple", @@ -41,21 +42,25 @@ const FN_INPUTS = [ type: "address", name: "referrer", }, + { + type: "uint16", + name: "referrerBps", + }, { type: "address", - name: "tokenA", + name: "token", }, { type: "address", - name: "tokenB", + name: "tokenPair", }, { type: "uint256", - name: "amountA", + name: "amount", }, { type: "uint256", - name: "amountB", + name: "amountPair", }, { type: "bytes", @@ -66,24 +71,38 @@ const FN_INPUTS = [ ] as const; const FN_OUTPUTS = [ { - type: "address", - name: "pool", - }, - { - type: "address", - name: "position", - }, - { - type: "uint256", - name: "positionId", - }, - { - type: "uint256", - name: "refundAmount0", - }, - { - type: "uint256", - name: "refundAmount1", + type: "tuple", + name: "result", + components: [ + { + type: "address", + name: "pool", + }, + { + type: "address", + name: "positionManager", + }, + { + type: "uint256", + name: "positionId", + }, + { + type: "address", + name: "refundToken0", + }, + { + type: "uint256", + name: "refundAmount0", + }, + { + type: "address", + name: "refundToken1", + }, + { + type: "uint256", + name: "refundAmount1", + }, + ], }, ] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/disableAdapter.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/disableAdapter.ts index c05be76bf9b..f9fad21e9e3 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/disableAdapter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/disableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "disableAdapter" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/enableAdapter.ts similarity index 89% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/enableAdapter.ts index fe212085318..88f3d594646 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/enableAdapter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/enableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "enableAdapter" function. @@ -17,9 +17,13 @@ export type EnableAdapterParams = WithOverrides<{ name: "adapterType"; }>; config: AbiParameterToPrimitiveType<{ type: "bytes"; name: "config" }>; + rewardLocker: AbiParameterToPrimitiveType<{ + type: "address"; + name: "rewardLocker"; + }>; }>; -export const FN_SELECTOR = "0xab348bdb" as const; +export const FN_SELECTOR = "0xa5a2fa73" as const; const FN_INPUTS = [ { type: "uint8", @@ -29,6 +33,10 @@ const FN_INPUTS = [ type: "bytes", name: "config", }, + { + type: "address", + name: "rewardLocker", + }, ] as const; const FN_OUTPUTS = [] as const; @@ -62,11 +70,16 @@ export function isEnableAdapterSupported(availableSelectors: string[]) { * const result = encodeEnableAdapterParams({ * adapterType: ..., * config: ..., + * rewardLocker: ..., * }); * ``` */ export function encodeEnableAdapterParams(options: EnableAdapterParams) { - return encodeAbiParameters(FN_INPUTS, [options.adapterType, options.config]); + return encodeAbiParameters(FN_INPUTS, [ + options.adapterType, + options.config, + options.rewardLocker, + ]); } /** @@ -80,6 +93,7 @@ export function encodeEnableAdapterParams(options: EnableAdapterParams) { * const result = encodeEnableAdapter({ * adapterType: ..., * config: ..., + * rewardLocker: ..., * }); * ``` */ @@ -106,6 +120,7 @@ export function encodeEnableAdapter(options: EnableAdapterParams) { * contract, * adapterType: ..., * config: ..., + * rewardLocker: ..., * overrides: { * ... * } @@ -132,7 +147,11 @@ export function enableAdapter( method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, params: async () => { const resolvedOptions = await asyncOptions(); - return [resolvedOptions.adapterType, resolvedOptions.config] as const; + return [ + resolvedOptions.adapterType, + resolvedOptions.config, + resolvedOptions.rewardLocker, + ] as const; }, value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/grantRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/grantRoles.ts new file mode 100644 index 00000000000..922a8038ad1 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/grantRoles.ts @@ -0,0 +1,147 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "grantRoles" function. + */ +export type GrantRolesParams = WithOverrides<{ + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}>; + +export const FN_SELECTOR = "0x1c10893f" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `grantRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `grantRoles` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isGrantRolesSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isGrantRolesSupported(["0x..."]); + * ``` + */ +export function isGrantRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "grantRoles" function. + * @param options - The options for the grantRoles function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeGrantRolesParams } from "thirdweb/extensions/tokens"; + * const result = encodeGrantRolesParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeGrantRolesParams(options: GrantRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "grantRoles" function into a Hex string with its parameters. + * @param options - The options for the grantRoles function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeGrantRoles } from "thirdweb/extensions/tokens"; + * const result = encodeGrantRoles({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeGrantRoles(options: GrantRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeGrantRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "grantRoles" function on the contract. + * @param options - The options for the "grantRoles" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { grantRoles } from "thirdweb/extensions/tokens"; + * + * const transaction = grantRoles({ + * contract, + * user: ..., + * roles: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function grantRoles( + options: BaseTransactionOptions< + | GrantRolesParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.user, resolvedOptions.roles] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/initialize.ts similarity index 92% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/initialize.ts index d34d8491cfb..a6c9b4d7f19 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/initialize.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/initialize.ts @@ -1,26 +1,31 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "initialize" function. */ export type InitializeParams = WithOverrides<{ owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; + manager: AbiParameterToPrimitiveType<{ type: "address"; name: "manager" }>; }>; -export const FN_SELECTOR = "0xc4d66de8" as const; +export const FN_SELECTOR = "0x485cc955" as const; const FN_INPUTS = [ { type: "address", name: "owner", }, + { + type: "address", + name: "manager", + }, ] as const; const FN_OUTPUTS = [] as const; @@ -53,11 +58,12 @@ export function isInitializeSupported(availableSelectors: string[]) { * import { encodeInitializeParams } from "thirdweb/extensions/tokens"; * const result = encodeInitializeParams({ * owner: ..., + * manager: ..., * }); * ``` */ export function encodeInitializeParams(options: InitializeParams) { - return encodeAbiParameters(FN_INPUTS, [options.owner]); + return encodeAbiParameters(FN_INPUTS, [options.owner, options.manager]); } /** @@ -70,6 +76,7 @@ export function encodeInitializeParams(options: InitializeParams) { * import { encodeInitialize } from "thirdweb/extensions/tokens"; * const result = encodeInitialize({ * owner: ..., + * manager: ..., * }); * ``` */ @@ -95,6 +102,7 @@ export function encodeInitialize(options: InitializeParams) { * const transaction = initialize({ * contract, * owner: ..., + * manager: ..., * overrides: { * ... * } @@ -121,7 +129,7 @@ export function initialize( method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, params: async () => { const resolvedOptions = await asyncOptions(); - return [resolvedOptions.owner] as const; + return [resolvedOptions.owner, resolvedOptions.manager] as const; }, value: async () => (await asyncOptions()).overrides?.value, accessList: async () => (await asyncOptions()).overrides?.accessList, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceOwnership.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceOwnership.ts index 622553c35e4..28b4cb69e17 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceRoles.ts new file mode 100644 index 00000000000..e5aebc6ebfb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceRoles.ts @@ -0,0 +1,139 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "renounceRoles" function. + */ +export type RenounceRolesParams = WithOverrides<{ + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}>; + +export const FN_SELECTOR = "0x183a4f6e" as const; +const FN_INPUTS = [ + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceRoles` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRenounceRolesSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRenounceRolesSupported(["0x..."]); + * ``` + */ +export function isRenounceRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "renounceRoles" function. + * @param options - The options for the renounceRoles function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeRenounceRolesParams } from "thirdweb/extensions/tokens"; + * const result = encodeRenounceRolesParams({ + * roles: ..., + * }); + * ``` + */ +export function encodeRenounceRolesParams(options: RenounceRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.roles]); +} + +/** + * Encodes the "renounceRoles" function into a Hex string with its parameters. + * @param options - The options for the renounceRoles function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeRenounceRoles } from "thirdweb/extensions/tokens"; + * const result = encodeRenounceRoles({ + * roles: ..., + * }); + * ``` + */ +export function encodeRenounceRoles(options: RenounceRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeRenounceRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "renounceRoles" function on the contract. + * @param options - The options for the "renounceRoles" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceRoles } from "thirdweb/extensions/tokens"; + * + * const transaction = renounceRoles({ + * contract, + * roles: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceRoles( + options: BaseTransactionOptions< + | RenounceRolesParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.roles] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/requestOwnershipHandover.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/requestOwnershipHandover.ts index 91b716f38a8..b6d7e224e58 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/revokeRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/revokeRoles.ts new file mode 100644 index 00000000000..7957513d7aa --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/revokeRoles.ts @@ -0,0 +1,147 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "revokeRoles" function. + */ +export type RevokeRolesParams = WithOverrides<{ + user: AbiParameterToPrimitiveType<{ type: "address"; name: "user" }>; + roles: AbiParameterToPrimitiveType<{ type: "uint256"; name: "roles" }>; +}>; + +export const FN_SELECTOR = "0x4a4ee7b1" as const; +const FN_INPUTS = [ + { + type: "address", + name: "user", + }, + { + type: "uint256", + name: "roles", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `revokeRoles` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `revokeRoles` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRevokeRolesSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRevokeRolesSupported(["0x..."]); + * ``` + */ +export function isRevokeRolesSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "revokeRoles" function. + * @param options - The options for the revokeRoles function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeRevokeRolesParams } from "thirdweb/extensions/tokens"; + * const result = encodeRevokeRolesParams({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeRevokeRolesParams(options: RevokeRolesParams) { + return encodeAbiParameters(FN_INPUTS, [options.user, options.roles]); +} + +/** + * Encodes the "revokeRoles" function into a Hex string with its parameters. + * @param options - The options for the revokeRoles function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeRevokeRoles } from "thirdweb/extensions/tokens"; + * const result = encodeRevokeRoles({ + * user: ..., + * roles: ..., + * }); + * ``` + */ +export function encodeRevokeRoles(options: RevokeRolesParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeRevokeRolesParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "revokeRoles" function on the contract. + * @param options - The options for the "revokeRoles" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { revokeRoles } from "thirdweb/extensions/tokens"; + * + * const transaction = revokeRoles({ + * contract, + * user: ..., + * roles: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function revokeRoles( + options: BaseTransactionOptions< + | RevokeRolesParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.user, resolvedOptions.roles] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/transferOwnership.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/transferOwnership.ts index 108df00ea3f..c365c21efdb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/upgradeToAndCall.ts similarity index 100% rename from packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/upgradeToAndCall.ts index d5af1b33184..2647a840a19 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/withdraw.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/withdraw.ts new file mode 100644 index 00000000000..297fa7fa18e --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/withdraw.ts @@ -0,0 +1,145 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "withdraw" function. + */ +export type WithdrawParams = WithOverrides<{ + token: AbiParameterToPrimitiveType<{ type: "address"; name: "token" }>; + to: AbiParameterToPrimitiveType<{ type: "address"; name: "to" }>; +}>; + +export const FN_SELECTOR = "0xf940e385" as const; +const FN_INPUTS = [ + { + type: "address", + name: "token", + }, + { + type: "address", + name: "to", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `withdraw` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `withdraw` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isWithdrawSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isWithdrawSupported(["0x..."]); + * ``` + */ +export function isWithdrawSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "withdraw" function. + * @param options - The options for the withdraw function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeWithdrawParams } from "thirdweb/extensions/tokens"; + * const result = encodeWithdrawParams({ + * token: ..., + * to: ..., + * }); + * ``` + */ +export function encodeWithdrawParams(options: WithdrawParams) { + return encodeAbiParameters(FN_INPUTS, [options.token, options.to]); +} + +/** + * Encodes the "withdraw" function into a Hex string with its parameters. + * @param options - The options for the withdraw function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeWithdraw } from "thirdweb/extensions/tokens"; + * const result = encodeWithdraw({ + * token: ..., + * to: ..., + * }); + * ``` + */ +export function encodeWithdraw(options: WithdrawParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeWithdrawParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "withdraw" function on the contract. + * @param options - The options for the "withdraw" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { withdraw } from "thirdweb/extensions/tokens"; + * + * const transaction = withdraw({ + * contract, + * token: ..., + * to: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function withdraw( + options: BaseTransactionOptions< + | WithdrawParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.token, resolvedOptions.to] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverCanceled.ts new file mode 100644 index 00000000000..45010946b7e --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverCanceled.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverCanceled" event. + */ +export type OwnershipHandoverCanceledEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverCanceled event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverCanceledEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverCanceledEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverCanceledEvent( + filters: OwnershipHandoverCanceledEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverCanceled(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverRequested.ts new file mode 100644 index 00000000000..9e1813f4ebb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverRequested.ts @@ -0,0 +1,42 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipHandoverRequested" event. + */ +export type OwnershipHandoverRequestedEventFilters = Partial<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipHandoverRequested event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipHandoverRequestedEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipHandoverRequestedEvent({ + * pendingOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipHandoverRequestedEvent( + filters: OwnershipHandoverRequestedEventFilters = {}, +) { + return prepareEvent({ + signature: "event OwnershipHandoverRequested(address indexed pendingOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipTransferred.ts new file mode 100644 index 00000000000..1282b4f57e7 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipTransferred.ts @@ -0,0 +1,49 @@ +import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; + +/** + * Represents the filters for the "OwnershipTransferred" event. + */ +export type OwnershipTransferredEventFilters = Partial<{ + oldOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "oldOwner"; + indexed: true; + }>; + newOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "newOwner"; + indexed: true; + }>; +}>; + +/** + * Creates an event object for the OwnershipTransferred event. + * @param filters - Optional filters to apply to the event. + * @returns The prepared event object. + * @extension TOKENS + * @example + * ```ts + * import { getContractEvents } from "thirdweb"; + * import { ownershipTransferredEvent } from "thirdweb/extensions/tokens"; + * + * const events = await getContractEvents({ + * contract, + * events: [ + * ownershipTransferredEvent({ + * oldOwner: ..., + * newOwner: ..., + * }) + * ], + * }); + * ``` + */ +export function ownershipTransferredEvent( + filters: OwnershipTransferredEventFilters = {}, +) { + return prepareEvent({ + signature: + "event OwnershipTransferred(address indexed oldOwner, address indexed newOwner)", + filters, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts index beb43a7b08e..134a53fdcce 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts @@ -1,15 +1,10 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PositionLocked" event. */ export type PositionLockedEventFilters = Partial<{ - owner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "owner"; - indexed: true; - }>; asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset"; @@ -31,7 +26,6 @@ export type PositionLockedEventFilters = Partial<{ * contract, * events: [ * positionLockedEvent({ - * owner: ..., * asset: ..., * }) * ], @@ -41,7 +35,7 @@ export type PositionLockedEventFilters = Partial<{ export function positionLockedEvent(filters: PositionLockedEventFilters = {}) { return prepareEvent({ signature: - "event PositionLocked(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, address recipient, address referrer)", + "event PositionLocked(address owner, address indexed asset, address positionManager, uint256 positionId, address recipient, address referrer)", filters, }); } diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts index ed150b0173c..04b4d962938 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts @@ -1,15 +1,10 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "RewardCollected" event. */ export type RewardCollectedEventFilters = Partial<{ - owner: AbiParameterToPrimitiveType<{ - type: "address"; - name: "owner"; - indexed: true; - }>; asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset"; @@ -31,7 +26,6 @@ export type RewardCollectedEventFilters = Partial<{ * contract, * events: [ * rewardCollectedEvent({ - * owner: ..., * asset: ..., * }) * ], @@ -43,7 +37,7 @@ export function rewardCollectedEvent( ) { return prepareEvent({ signature: - "event RewardCollected(address indexed owner, address indexed asset, address positionManager, uint256 tokenId, uint256 amount0, uint256 amount1)", + "event RewardCollected(address owner, address indexed asset, address positionManager, uint256 positionId, address recipient, address referrer, address token0, uint256 recipientAmount0, uint256 referrerAmount0, uint256 feeAmount0, address token1, uint256 recipientAmount1, uint256 referrerAmount1, uint256 feeAmount1)", filters, }); } diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts index 281a03eec01..a0562899bf9 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xd0fb0203" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/owner.ts similarity index 59% rename from packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/owner.ts index 7bd0351392e..69277ccf299 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/owner.ts @@ -1,30 +1,31 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -export const FN_SELECTOR = "0xb0f479a1" as const; +export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { type: "address", - name: "router", + name: "result", }, ] as const; /** - * Checks if the `getRouter` method is supported by the given contract. + * Checks if the `owner` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `getRouter` method is supported. + * @returns A boolean indicating if the `owner` method is supported. * @extension TOKENS * @example * ```ts - * import { isGetRouterSupported } from "thirdweb/extensions/tokens"; - * const supported = isGetRouterSupported(["0x..."]); + * import { isOwnerSupported } from "thirdweb/extensions/tokens"; + * const supported = isOwnerSupported(["0x..."]); * ``` */ -export function isGetRouterSupported(availableSelectors: string[]) { +export function isOwnerSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -32,36 +33,36 @@ export function isGetRouterSupported(availableSelectors: string[]) { } /** - * Decodes the result of the getRouter function call. + * Decodes the result of the owner function call. * @param result - The hexadecimal result to decode. * @returns The decoded result as per the FN_OUTPUTS definition. * @extension TOKENS * @example * ```ts - * import { decodeGetRouterResult } from "thirdweb/extensions/tokens"; - * const result = decodeGetRouterResultResult("..."); + * import { decodeOwnerResult } from "thirdweb/extensions/tokens"; + * const result = decodeOwnerResultResult("..."); * ``` */ -export function decodeGetRouterResult(result: Hex) { +export function decodeOwnerResult(result: Hex) { return decodeAbiParameters(FN_OUTPUTS, result)[0]; } /** - * Calls the "getRouter" function on the contract. - * @param options - The options for the getRouter function. + * Calls the "owner" function on the contract. + * @param options - The options for the owner function. * @returns The parsed result of the function call. * @extension TOKENS * @example * ```ts - * import { getRouter } from "thirdweb/extensions/tokens"; + * import { owner } from "thirdweb/extensions/tokens"; * - * const result = await getRouter({ + * const result = await owner({ * contract, * }); * * ``` */ -export async function getRouter(options: BaseTransactionOptions) { +export async function owner(options: BaseTransactionOptions) { return readContract({ contract: options.contract, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/ownershipHandoverExpiresAt.ts new file mode 100644 index 00000000000..477cc34c0eb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/ownershipHandoverExpiresAt.ts @@ -0,0 +1,135 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import { readContract } from "../../../../../transaction/read-contract.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { decodeAbiParameters } from "viem"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "ownershipHandoverExpiresAt" function. + */ +export type OwnershipHandoverExpiresAtParams = { + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}; + +export const FN_SELECTOR = "0xfee81cf4" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [ + { + type: "uint256", + name: "result", + }, +] as const; + +/** + * Checks if the `ownershipHandoverExpiresAt` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `ownershipHandoverExpiresAt` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isOwnershipHandoverExpiresAtSupported } from "thirdweb/extensions/tokens"; + * const supported = isOwnershipHandoverExpiresAtSupported(["0x..."]); + * ``` + */ +export function isOwnershipHandoverExpiresAtSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "ownershipHandoverExpiresAt" function. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAtParams } from "thirdweb/extensions/tokens"; + * const result = encodeOwnershipHandoverExpiresAtParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAtParams( + options: OwnershipHandoverExpiresAtParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "ownershipHandoverExpiresAt" function into a Hex string with its parameters. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeOwnershipHandoverExpiresAt } from "thirdweb/extensions/tokens"; + * const result = encodeOwnershipHandoverExpiresAt({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeOwnershipHandoverExpiresAt( + options: OwnershipHandoverExpiresAtParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeOwnershipHandoverExpiresAtParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Decodes the result of the ownershipHandoverExpiresAt function call. + * @param result - The hexadecimal result to decode. + * @returns The decoded result as per the FN_OUTPUTS definition. + * @extension TOKENS + * @example + * ```ts + * import { decodeOwnershipHandoverExpiresAtResult } from "thirdweb/extensions/tokens"; + * const result = decodeOwnershipHandoverExpiresAtResultResult("..."); + * ``` + */ +export function decodeOwnershipHandoverExpiresAtResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; +} + +/** + * Calls the "ownershipHandoverExpiresAt" function on the contract. + * @param options - The options for the ownershipHandoverExpiresAt function. + * @returns The parsed result of the function call. + * @extension TOKENS + * @example + * ```ts + * import { ownershipHandoverExpiresAt } from "thirdweb/extensions/tokens"; + * + * const result = await ownershipHandoverExpiresAt({ + * contract, + * pendingOwner: ..., + * }); + * + * ``` + */ +export async function ownershipHandoverExpiresAt( + options: BaseTransactionOptions, +) { + return readContract({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: [options.pendingOwner], + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/position.ts similarity index 52% rename from packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/position.ts index 25b8fc3b814..74b932fa3fb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positions.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/position.ts @@ -1,20 +1,20 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** - * Represents the parameters for the "positions" function. + * Represents the parameters for the "position" function. */ -export type PositionsParams = { +export type PositionParams = { owner: AbiParameterToPrimitiveType<{ type: "address"; name: "owner" }>; asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; }; -export const FN_SELECTOR = "0x4bd21445" as const; +export const FN_SELECTOR = "0xe9c6b4c1" as const; const FN_INPUTS = [ { type: "address", @@ -27,39 +27,44 @@ const FN_INPUTS = [ ] as const; const FN_OUTPUTS = [ { - type: "address", - name: "positionManager", - }, - { - type: "uint256", - name: "tokenId", - }, - { - type: "address", - name: "recipient", - }, - { - type: "address", - name: "referrer", - }, - { - type: "uint16", - name: "referrerBps", + type: "tuple", + components: [ + { + type: "uint256", + name: "positionId", + }, + { + type: "address", + name: "recipient", + }, + { + type: "address", + name: "referrer", + }, + { + type: "uint16", + name: "referrerBps", + }, + { + type: "bytes", + name: "data", + }, + ], }, ] as const; /** - * Checks if the `positions` method is supported by the given contract. + * Checks if the `position` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `positions` method is supported. + * @returns A boolean indicating if the `position` method is supported. * @extension TOKENS * @example * ```ts - * import { isPositionsSupported } from "thirdweb/extensions/tokens"; - * const supported = isPositionsSupported(["0x..."]); + * import { isPositionSupported } from "thirdweb/extensions/tokens"; + * const supported = isPositionSupported(["0x..."]); * ``` */ -export function isPositionsSupported(availableSelectors: string[]) { +export function isPositionSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -67,71 +72,69 @@ export function isPositionsSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "positions" function. - * @param options - The options for the positions function. + * Encodes the parameters for the "position" function. + * @param options - The options for the position function. * @returns The encoded ABI parameters. * @extension TOKENS * @example * ```ts - * import { encodePositionsParams } from "thirdweb/extensions/tokens"; - * const result = encodePositionsParams({ + * import { encodePositionParams } from "thirdweb/extensions/tokens"; + * const result = encodePositionParams({ * owner: ..., * asset: ..., * }); * ``` */ -export function encodePositionsParams(options: PositionsParams) { +export function encodePositionParams(options: PositionParams) { return encodeAbiParameters(FN_INPUTS, [options.owner, options.asset]); } /** - * Encodes the "positions" function into a Hex string with its parameters. - * @param options - The options for the positions function. + * Encodes the "position" function into a Hex string with its parameters. + * @param options - The options for the position function. * @returns The encoded hexadecimal string. * @extension TOKENS * @example * ```ts - * import { encodePositions } from "thirdweb/extensions/tokens"; - * const result = encodePositions({ + * import { encodePosition } from "thirdweb/extensions/tokens"; + * const result = encodePosition({ * owner: ..., * asset: ..., * }); * ``` */ -export function encodePositions(options: PositionsParams) { +export function encodePosition(options: PositionParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodePositionsParams(options).slice( - 2, - )) as `${typeof FN_SELECTOR}${string}`; + encodePositionParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; } /** - * Decodes the result of the positions function call. + * Decodes the result of the position function call. * @param result - The hexadecimal result to decode. * @returns The decoded result as per the FN_OUTPUTS definition. * @extension TOKENS * @example * ```ts - * import { decodePositionsResult } from "thirdweb/extensions/tokens"; - * const result = decodePositionsResultResult("..."); + * import { decodePositionResult } from "thirdweb/extensions/tokens"; + * const result = decodePositionResultResult("..."); * ``` */ -export function decodePositionsResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result); +export function decodePositionResult(result: Hex) { + return decodeAbiParameters(FN_OUTPUTS, result)[0]; } /** - * Calls the "positions" function on the contract. - * @param options - The options for the positions function. + * Calls the "position" function on the contract. + * @param options - The options for the position function. * @returns The parsed result of the function call. * @extension TOKENS * @example * ```ts - * import { positions } from "thirdweb/extensions/tokens"; + * import { position } from "thirdweb/extensions/tokens"; * - * const result = await positions({ + * const result = await position({ * contract, * owner: ..., * asset: ..., @@ -139,8 +142,8 @@ export function decodePositionsResult(result: Hex) { * * ``` */ -export async function positions( - options: BaseTransactionOptions, +export async function position( + options: BaseTransactionOptions, ) { return readContract({ contract: options.contract, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positionManager.ts similarity index 60% rename from packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positionManager.ts index 77fe9eb8d65..974954d3872 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewardLocker.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positionManager.ts @@ -1,30 +1,30 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -export const FN_SELECTOR = "0xb0188df2" as const; +export const FN_SELECTOR = "0x791b98bc" as const; const FN_INPUTS = [] as const; const FN_OUTPUTS = [ { type: "address", - name: "rewardLocker", }, ] as const; /** - * Checks if the `getRewardLocker` method is supported by the given contract. + * Checks if the `positionManager` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `getRewardLocker` method is supported. + * @returns A boolean indicating if the `positionManager` method is supported. * @extension TOKENS * @example * ```ts - * import { isGetRewardLockerSupported } from "thirdweb/extensions/tokens"; - * const supported = isGetRewardLockerSupported(["0x..."]); + * import { isPositionManagerSupported } from "thirdweb/extensions/tokens"; + * const supported = isPositionManagerSupported(["0x..."]); * ``` */ -export function isGetRewardLockerSupported(availableSelectors: string[]) { +export function isPositionManagerSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -32,36 +32,36 @@ export function isGetRewardLockerSupported(availableSelectors: string[]) { } /** - * Decodes the result of the getRewardLocker function call. + * Decodes the result of the positionManager function call. * @param result - The hexadecimal result to decode. * @returns The decoded result as per the FN_OUTPUTS definition. * @extension TOKENS * @example * ```ts - * import { decodeGetRewardLockerResult } from "thirdweb/extensions/tokens"; - * const result = decodeGetRewardLockerResultResult("..."); + * import { decodePositionManagerResult } from "thirdweb/extensions/tokens"; + * const result = decodePositionManagerResultResult("..."); * ``` */ -export function decodeGetRewardLockerResult(result: Hex) { +export function decodePositionManagerResult(result: Hex) { return decodeAbiParameters(FN_OUTPUTS, result)[0]; } /** - * Calls the "getRewardLocker" function on the contract. - * @param options - The options for the getRewardLocker function. + * Calls the "positionManager" function on the contract. + * @param options - The options for the positionManager function. * @returns The parsed result of the function call. * @extension TOKENS * @example * ```ts - * import { getRewardLocker } from "thirdweb/extensions/tokens"; + * import { positionManager } from "thirdweb/extensions/tokens"; * - * const result = await getRewardLocker({ + * const result = await positionManager({ * contract, * }); * * ``` */ -export async function getRewardLocker(options: BaseTransactionOptions) { +export async function positionManager(options: BaseTransactionOptions) { return readContract({ contract: options.contract, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts deleted file mode 100644 index c832b641015..00000000000 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v3PositionManager.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0x39406c50" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - }, -] as const; - -/** - * Checks if the `v3PositionManager` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `v3PositionManager` method is supported. - * @extension TOKENS - * @example - * ```ts - * import { isV3PositionManagerSupported } from "thirdweb/extensions/tokens"; - * const supported = isV3PositionManagerSupported(["0x..."]); - * ``` - */ -export function isV3PositionManagerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the v3PositionManager function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension TOKENS - * @example - * ```ts - * import { decodeV3PositionManagerResult } from "thirdweb/extensions/tokens"; - * const result = decodeV3PositionManagerResultResult("..."); - * ``` - */ -export function decodeV3PositionManagerResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "v3PositionManager" function on the contract. - * @param options - The options for the v3PositionManager function. - * @returns The parsed result of the function call. - * @extension TOKENS - * @example - * ```ts - * import { v3PositionManager } from "thirdweb/extensions/tokens"; - * - * const result = await v3PositionManager({ - * contract, - * }); - * - * ``` - */ -export async function v3PositionManager(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts deleted file mode 100644 index 3a5300aab46..00000000000 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/v4PositionManager.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { decodeAbiParameters } from "viem"; -import { readContract } from "../../../../../transaction/read-contract.js"; -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; - -export const FN_SELECTOR = "0xe2f4dd43" as const; -const FN_INPUTS = [] as const; -const FN_OUTPUTS = [ - { - type: "address", - }, -] as const; - -/** - * Checks if the `v4PositionManager` method is supported by the given contract. - * @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. - * @returns A boolean indicating if the `v4PositionManager` method is supported. - * @extension TOKENS - * @example - * ```ts - * import { isV4PositionManagerSupported } from "thirdweb/extensions/tokens"; - * const supported = isV4PositionManagerSupported(["0x..."]); - * ``` - */ -export function isV4PositionManagerSupported(availableSelectors: string[]) { - return detectMethod({ - availableSelectors, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - }); -} - -/** - * Decodes the result of the v4PositionManager function call. - * @param result - The hexadecimal result to decode. - * @returns The decoded result as per the FN_OUTPUTS definition. - * @extension TOKENS - * @example - * ```ts - * import { decodeV4PositionManagerResult } from "thirdweb/extensions/tokens"; - * const result = decodeV4PositionManagerResultResult("..."); - * ``` - */ -export function decodeV4PositionManagerResult(result: Hex) { - return decodeAbiParameters(FN_OUTPUTS, result)[0]; -} - -/** - * Calls the "v4PositionManager" function on the contract. - * @param options - The options for the v4PositionManager function. - * @returns The parsed result of the function call. - * @extension TOKENS - * @example - * ```ts - * import { v4PositionManager } from "thirdweb/extensions/tokens"; - * - * const result = await v4PositionManager({ - * contract, - * }); - * - * ``` - */ -export async function v4PositionManager(options: BaseTransactionOptions) { - return readContract({ - contract: options.contract, - method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, - params: [], - }); -} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/cancelOwnershipHandover.ts new file mode 100644 index 00000000000..801dc93983d --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/cancelOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x54d1f13d" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `cancelOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `cancelOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCancelOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCancelOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCancelOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "cancelOwnershipHandover" function on the contract. + * @param options - The options for the "cancelOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { cancelOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = cancelOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function cancelOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts index 39333e90e28..9affd3f9efb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "collectReward" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/completeOwnershipHandover.ts new file mode 100644 index 00000000000..a1a66858c05 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/completeOwnershipHandover.ts @@ -0,0 +1,148 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "completeOwnershipHandover" function. + */ +export type CompleteOwnershipHandoverParams = WithOverrides<{ + pendingOwner: AbiParameterToPrimitiveType<{ + type: "address"; + name: "pendingOwner"; + }>; +}>; + +export const FN_SELECTOR = "0xf04e283e" as const; +const FN_INPUTS = [ + { + type: "address", + name: "pendingOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `completeOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `completeOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isCompleteOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isCompleteOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isCompleteOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "completeOwnershipHandover" function. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeCompleteOwnershipHandoverParams } from "thirdweb/extensions/tokens"; + * const result = encodeCompleteOwnershipHandoverParams({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandoverParams( + options: CompleteOwnershipHandoverParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.pendingOwner]); +} + +/** + * Encodes the "completeOwnershipHandover" function into a Hex string with its parameters. + * @param options - The options for the completeOwnershipHandover function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeCompleteOwnershipHandover } from "thirdweb/extensions/tokens"; + * const result = encodeCompleteOwnershipHandover({ + * pendingOwner: ..., + * }); + * ``` + */ +export function encodeCompleteOwnershipHandover( + options: CompleteOwnershipHandoverParams, +) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeCompleteOwnershipHandoverParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "completeOwnershipHandover" function on the contract. + * @param options - The options for the "completeOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { completeOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = completeOwnershipHandover({ + * contract, + * pendingOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function completeOwnershipHandover( + options: BaseTransactionOptions< + | CompleteOwnershipHandoverParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.pendingOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts index 14e9b1dd933..3a8c02146b5 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts @@ -1,23 +1,22 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "lockPosition" function. */ export type LockPositionParams = WithOverrides<{ asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; - positionManager: AbiParameterToPrimitiveType<{ - type: "address"; - name: "positionManager"; + positionId: AbiParameterToPrimitiveType<{ + type: "uint256"; + name: "positionId"; }>; - tokenId: AbiParameterToPrimitiveType<{ type: "uint256"; name: "tokenId" }>; recipient: AbiParameterToPrimitiveType<{ type: "address"; name: "recipient"; @@ -27,21 +26,18 @@ export type LockPositionParams = WithOverrides<{ type: "uint16"; name: "referrerBps"; }>; + data: AbiParameterToPrimitiveType<{ type: "bytes"; name: "data" }>; }>; -export const FN_SELECTOR = "0x2cde40c2" as const; +export const FN_SELECTOR = "0xbe7506e8" as const; const FN_INPUTS = [ { type: "address", name: "asset", }, - { - type: "address", - name: "positionManager", - }, { type: "uint256", - name: "tokenId", + name: "positionId", }, { type: "address", @@ -55,6 +51,10 @@ const FN_INPUTS = [ type: "uint16", name: "referrerBps", }, + { + type: "bytes", + name: "data", + }, ] as const; const FN_OUTPUTS = [] as const; @@ -87,22 +87,22 @@ export function isLockPositionSupported(availableSelectors: string[]) { * import { encodeLockPositionParams } from "thirdweb/extensions/tokens"; * const result = encodeLockPositionParams({ * asset: ..., - * positionManager: ..., - * tokenId: ..., + * positionId: ..., * recipient: ..., * referrer: ..., * referrerBps: ..., + * data: ..., * }); * ``` */ export function encodeLockPositionParams(options: LockPositionParams) { return encodeAbiParameters(FN_INPUTS, [ options.asset, - options.positionManager, - options.tokenId, + options.positionId, options.recipient, options.referrer, options.referrerBps, + options.data, ]); } @@ -116,11 +116,11 @@ export function encodeLockPositionParams(options: LockPositionParams) { * import { encodeLockPosition } from "thirdweb/extensions/tokens"; * const result = encodeLockPosition({ * asset: ..., - * positionManager: ..., - * tokenId: ..., + * positionId: ..., * recipient: ..., * referrer: ..., * referrerBps: ..., + * data: ..., * }); * ``` */ @@ -146,11 +146,11 @@ export function encodeLockPosition(options: LockPositionParams) { * const transaction = lockPosition({ * contract, * asset: ..., - * positionManager: ..., - * tokenId: ..., + * positionId: ..., * recipient: ..., * referrer: ..., * referrerBps: ..., + * data: ..., * overrides: { * ... * } @@ -179,11 +179,11 @@ export function lockPosition( const resolvedOptions = await asyncOptions(); return [ resolvedOptions.asset, - resolvedOptions.positionManager, - resolvedOptions.tokenId, + resolvedOptions.positionId, resolvedOptions.recipient, resolvedOptions.referrer, resolvedOptions.referrerBps, + resolvedOptions.data, ] as const; }, value: async () => (await asyncOptions()).overrides?.value, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/renounceOwnership.ts new file mode 100644 index 00000000000..28b4cb69e17 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/renounceOwnership.ts @@ -0,0 +1,50 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x715018a6" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `renounceOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `renounceOwnership` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRenounceOwnershipSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRenounceOwnershipSupported(["0x..."]); + * ``` + */ +export function isRenounceOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "renounceOwnership" function on the contract. + * @param options - The options for the "renounceOwnership" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { renounceOwnership } from "thirdweb/extensions/tokens"; + * + * const transaction = renounceOwnership(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function renounceOwnership(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/requestOwnershipHandover.ts new file mode 100644 index 00000000000..b6d7e224e58 --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/requestOwnershipHandover.ts @@ -0,0 +1,52 @@ +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; + +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +export const FN_SELECTOR = "0x25692962" as const; +const FN_INPUTS = [] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `requestOwnershipHandover` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `requestOwnershipHandover` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isRequestOwnershipHandoverSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isRequestOwnershipHandoverSupported(["0x..."]); + * ``` + */ +export function isRequestOwnershipHandoverSupported( + availableSelectors: string[], +) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Prepares a transaction to call the "requestOwnershipHandover" function on the contract. + * @param options - The options for the "requestOwnershipHandover" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { requestOwnershipHandover } from "thirdweb/extensions/tokens"; + * + * const transaction = requestOwnershipHandover(); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function requestOwnershipHandover(options: BaseTransactionOptions) { + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/transferOwnership.ts new file mode 100644 index 00000000000..c365c21efdb --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/transferOwnership.ts @@ -0,0 +1,141 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "transferOwnership" function. + */ +export type TransferOwnershipParams = WithOverrides<{ + newOwner: AbiParameterToPrimitiveType<{ type: "address"; name: "newOwner" }>; +}>; + +export const FN_SELECTOR = "0xf2fde38b" as const; +const FN_INPUTS = [ + { + type: "address", + name: "newOwner", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `transferOwnership` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `transferOwnership` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isTransferOwnershipSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isTransferOwnershipSupported(["0x..."]); + * ``` + */ +export function isTransferOwnershipSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "transferOwnership" function. + * @param options - The options for the transferOwnership function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferOwnershipParams } from "thirdweb/extensions/tokens"; + * const result = encodeTransferOwnershipParams({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnershipParams( + options: TransferOwnershipParams, +) { + return encodeAbiParameters(FN_INPUTS, [options.newOwner]); +} + +/** + * Encodes the "transferOwnership" function into a Hex string with its parameters. + * @param options - The options for the transferOwnership function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeTransferOwnership } from "thirdweb/extensions/tokens"; + * const result = encodeTransferOwnership({ + * newOwner: ..., + * }); + * ``` + */ +export function encodeTransferOwnership(options: TransferOwnershipParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeTransferOwnershipParams(options).slice( + 2, + )) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "transferOwnership" function on the contract. + * @param options - The options for the "transferOwnership" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { transferOwnership } from "thirdweb/extensions/tokens"; + * + * const transaction = transferOwnership({ + * contract, + * newOwner: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function transferOwnership( + options: BaseTransactionOptions< + | TransferOwnershipParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.newOwner] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/withdraw.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/withdraw.ts new file mode 100644 index 00000000000..297fa7fa18e --- /dev/null +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/withdraw.ts @@ -0,0 +1,145 @@ +import type { AbiParameterToPrimitiveType } from "abitype"; +import type { + BaseTransactionOptions, + WithOverrides, +} from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; +import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +/** + * Represents the parameters for the "withdraw" function. + */ +export type WithdrawParams = WithOverrides<{ + token: AbiParameterToPrimitiveType<{ type: "address"; name: "token" }>; + to: AbiParameterToPrimitiveType<{ type: "address"; name: "to" }>; +}>; + +export const FN_SELECTOR = "0xf940e385" as const; +const FN_INPUTS = [ + { + type: "address", + name: "token", + }, + { + type: "address", + name: "to", + }, +] as const; +const FN_OUTPUTS = [] as const; + +/** + * Checks if the `withdraw` method is supported by the given contract. + * @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. + * @returns A boolean indicating if the `withdraw` method is supported. + * @extension TOKENS + * @example + * ```ts + * import { isWithdrawSupported } from "thirdweb/extensions/tokens"; + * + * const supported = isWithdrawSupported(["0x..."]); + * ``` + */ +export function isWithdrawSupported(availableSelectors: string[]) { + return detectMethod({ + availableSelectors, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + }); +} + +/** + * Encodes the parameters for the "withdraw" function. + * @param options - The options for the withdraw function. + * @returns The encoded ABI parameters. + * @extension TOKENS + * @example + * ```ts + * import { encodeWithdrawParams } from "thirdweb/extensions/tokens"; + * const result = encodeWithdrawParams({ + * token: ..., + * to: ..., + * }); + * ``` + */ +export function encodeWithdrawParams(options: WithdrawParams) { + return encodeAbiParameters(FN_INPUTS, [options.token, options.to]); +} + +/** + * Encodes the "withdraw" function into a Hex string with its parameters. + * @param options - The options for the withdraw function. + * @returns The encoded hexadecimal string. + * @extension TOKENS + * @example + * ```ts + * import { encodeWithdraw } from "thirdweb/extensions/tokens"; + * const result = encodeWithdraw({ + * token: ..., + * to: ..., + * }); + * ``` + */ +export function encodeWithdraw(options: WithdrawParams) { + // we do a "manual" concat here to avoid the overhead of the "concatHex" function + // we can do this because we know the specific formats of the values + return (FN_SELECTOR + + encodeWithdrawParams(options).slice(2)) as `${typeof FN_SELECTOR}${string}`; +} + +/** + * Prepares a transaction to call the "withdraw" function on the contract. + * @param options - The options for the "withdraw" function. + * @returns A prepared transaction object. + * @extension TOKENS + * @example + * ```ts + * import { sendTransaction } from "thirdweb"; + * import { withdraw } from "thirdweb/extensions/tokens"; + * + * const transaction = withdraw({ + * contract, + * token: ..., + * to: ..., + * overrides: { + * ... + * } + * }); + * + * // Send the transaction + * await sendTransaction({ transaction, account }); + * ``` + */ +export function withdraw( + options: BaseTransactionOptions< + | WithdrawParams + | { + asyncParams: () => Promise; + } + >, +) { + const asyncOptions = once(async () => { + return "asyncParams" in options ? await options.asyncParams() : options; + }); + + return prepareContractCall({ + contract: options.contract, + method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, + params: async () => { + const resolvedOptions = await asyncOptions(); + return [resolvedOptions.token, resolvedOptions.to] as const; + }, + value: async () => (await asyncOptions()).overrides?.value, + accessList: async () => (await asyncOptions()).overrides?.accessList, + gas: async () => (await asyncOptions()).overrides?.gas, + gasPrice: async () => (await asyncOptions()).overrides?.gasPrice, + maxFeePerGas: async () => (await asyncOptions()).overrides?.maxFeePerGas, + maxPriorityFeePerGas: async () => + (await asyncOptions()).overrides?.maxPriorityFeePerGas, + nonce: async () => (await asyncOptions()).overrides?.nonce, + extraGas: async () => (await asyncOptions()).overrides?.extraGas, + erc20Value: async () => (await asyncOptions()).overrides?.erc20Value, + authorizationList: async () => + (await asyncOptions()).overrides?.authorizationList, + }); +} diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts b/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts deleted file mode 100644 index 256a6eaa372..00000000000 --- a/packages/thirdweb/src/extensions/tokens/__generated__/Router/events/SwapExecuted.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareEvent } from "../../../../../event/prepare-event.js"; - -/** - * Represents the filters for the "SwapExecuted" event. - */ -export type SwapExecutedEventFilters = Partial<{ - sender: AbiParameterToPrimitiveType<{ - type: "address"; - name: "sender"; - indexed: true; - }>; - tokenIn: AbiParameterToPrimitiveType<{ - type: "address"; - name: "tokenIn"; - indexed: true; - }>; - tokenOut: AbiParameterToPrimitiveType<{ - type: "address"; - name: "tokenOut"; - indexed: true; - }>; -}>; - -/** - * Creates an event object for the SwapExecuted event. - * @param filters - Optional filters to apply to the event. - * @returns The prepared event object. - * @extension TOKENS - * @example - * ```ts - * import { getContractEvents } from "thirdweb"; - * import { swapExecutedEvent } from "thirdweb/extensions/tokens"; - * - * const events = await getContractEvents({ - * contract, - * events: [ - * swapExecutedEvent({ - * sender: ..., - * tokenIn: ..., - * tokenOut: ..., - * }) - * ], - * }); - * ``` - */ -export function swapExecutedEvent(filters: SwapExecutedEventFilters = {}) { - return prepareEvent({ - signature: - "event SwapExecuted(address indexed sender, address indexed tokenIn, address indexed tokenOut, uint256 amountIn, uint256 amountOut, uint8 adapterUsed)", - filters, - }); -} diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts index 93ca28a8d86..a5b2de9ba3d 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactInput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts index f2baf013d7b..e2f2bd0b25f 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactInputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts index 948e8b4716b..e70abf27fa9 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactOutput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts index 962e1b2233d..40571bef183 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quoteExactOutputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts index e8c72448821..62b9d01cce6 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactInput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts index 74801a6fd77..7e3abba3449 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactInputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts index ad12cfeb388..dcbeb08a4a1 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactOutput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts index d49a1333baf..da33aaa7b58 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exactOutputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts index 0a338fba5a1..7ecf70ce4c8 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "OwnerChanged" event. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts index 08c5be9c5c5..e58a4baf468 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "PoolCreated" event. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts index 0bdf634fbb2..255f43c261a 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "feeAmountTickSpacing" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts index 5464e0e6f11..0ba8694755b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getPool" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts index c4a193d970e..5c788ce980c 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts index 7a0564dfebb..9fb6af4ed9a 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "createPool" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts index 02a8bbc64a1..c8e4e71ccd4 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "enableFeeAmount" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts index dc6112bab1d..6e4c1ba930b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts index f53337ebd10..f4a9b84da2c 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "exists" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts index 2a5b24385b4..e108e47b49f 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getMany" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts index d56c354bfee..1f4ff5195b1 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "namehash" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts index 42f892a3904..b86c1c4bd8a 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "reverseNameOf" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts index 060fe07c78a..ec04f2d479a 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xdeaaa7cc" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts index 1a0672fb8cc..6734c8b2303 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xdd4e2ba5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts index 67cf2f01d31..4325be6c282 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xcceb68f5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts index 341cb80315b..c2b66c0be2a 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getVotes" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts index 2034cf1dddc..f8eca80d4bf 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "getVotesWithParams" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts index f2b60cf3bca..5815f1c8684 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hasVoted" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts index 1639665197e..87e81f3c2ec 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "hashProposal" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts index 2e4f570cd64..e0640658526 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposalDeadline" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts index d1b77a0eeca..a8d1ccb5c76 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x5977e0f2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts index e1667b05f5d..593f248d154 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposalSnapshot" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts index ced5cabd45f..098c4dc79c8 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xb58131b0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts index 8a510a2aa46..5bc8c234e58 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposalVotes" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts index d58e899e6d7..3c89313b550 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "proposals" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts index dce30a0a265..b2de58c41b0 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "quorum" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts index cf3126a06d1..56636d20aee 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x97c3d334" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts index e9b56d165e4..15bcb254830 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "state" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts index 60c0d33089b..02e70e2d6c7 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts index 51689a20a6c..eff242b13e6 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x3932abb1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts index 5b96e7a33aa..35de8cb92c0 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts @@ -1,8 +1,9 @@ -import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; + +import { decodeAbiParameters } from "viem"; import type { Hex } from "../../../../../utils/encoding/hex.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; export const FN_SELECTOR = "0x02a251a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts index 2666f84fa71..f7c42629976 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVote" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts index adfd1fc076b..6322bdf5e39 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteBySig" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts index d32e7363312..4d5af34b63c 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteWithReason" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts index 978cb26a8fa..0c625832619 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteWithReasonAndParams" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts index a2e92478f18..20122e5859d 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "castVoteWithReasonAndParamsBySig" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts index 9012c2dfc6b..4f94b043506 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts index 6262ae30b0f..abc8a1f168c 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "propose" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts index 785a2a588d1..edd2ad5a3f3 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "relay" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts index ece4ee5abf3..9eac196fd77 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setProposalThreshold" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts index 3b34e86231e..313d949b8c2 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setVotingDelay" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts index 1f4740dd710..d74fc333fcb 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "setVotingPeriod" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts index d76a5f43144..819963e4608 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; +import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; /** * Represents the parameters for the "updateQuorumNumerator" function. diff --git a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts index 328036ce944..48964fd99a3 100644 --- a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts +++ b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts @@ -1,5 +1,5 @@ -import type { AbiParameterToPrimitiveType } from "abitype"; import { prepareEvent } from "../../../../../event/prepare-event.js"; +import type { AbiParameterToPrimitiveType } from "abitype"; /** * Represents the filters for the "ContractDeployed" event. diff --git a/packages/thirdweb/src/tokens/constants.ts b/packages/thirdweb/src/tokens/constants.ts index 1d1a96c0e65..393e3b263c5 100644 --- a/packages/thirdweb/src/tokens/constants.ts +++ b/packages/thirdweb/src/tokens/constants.ts @@ -1,6 +1,5 @@ export const DEFAULT_MAX_SUPPLY_ERC20 = 1_000_000_000n; export const DEFAULT_POOL_INITIAL_TICK = 230200; -export const DEFAULT_INFRA_ADMIN = "0x1a472863cf21d5aa27f417df9140400324c48f22"; export const DEFAULT_REFERRER_REWARD_BPS = 625; // 6.25% (6.25% * 80% = 5%) export const DEFAULT_REFERRER_ADDRESS = @@ -8,23 +7,10 @@ export const DEFAULT_REFERRER_ADDRESS = export const IMPLEMENTATIONS: Record> = { 8453: { - AssetEntrypointERC20: "0x70458B0b8afA1113b5716C0e213Bc3a48bFcFF74", + EntrypointERC20: "", }, 84532: { - AssetEntrypointERC20: "0x69e8298bB5c52FF8385a5Ea51688dbEe13e75ece", + EntrypointERC20: "0x76d5aa9dEC618b54186DCa332C713B27A8ea70Ac", }, }; -// export enum ImplementationType { -// CLONE = 0, -// CLONE_WITH_IMMUTABLE_ARGS = 1, -// ERC1967 = 2, -// ERC1967_WITH_IMMUTABLE_ARGS = 3, -// } - -// export enum CreateHook { -// NONE = 0, // do nothing -// CREATE_POOL = 1, // create a DEX pool via Router -// DISTRIBUTE = 2, // distribute tokens to recipients -// EXTERNAL_HOOK = 3, // call an external hook contract -// } diff --git a/packages/thirdweb/src/tokens/create-token.ts b/packages/thirdweb/src/tokens/create-token.ts index b5823af3e01..f147c378980 100644 --- a/packages/thirdweb/src/tokens/create-token.ts +++ b/packages/thirdweb/src/tokens/create-token.ts @@ -5,7 +5,7 @@ import { createdEvent } from "../extensions/tokens/__generated__/ERC20Entrypoint import { create } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/create.js"; import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; import { DEFAULT_REFERRER_ADDRESS } from "./constants.js"; -import { getOrDeployEntrypointERC20 } from "./get-entrypoint-erc20.js"; +import { getEntrypointERC20 } from "./get-entrypoint-erc20.js"; import { encodeInitParams, encodePoolConfig, @@ -25,7 +25,7 @@ export async function createToken(options: CreateTokenOptions) { const salt: Hex = generateSalt(options.salt || bytesToHex(randomBytes(31))); - const entrypoint = await getOrDeployEntrypointERC20(options); + const entrypoint = await getEntrypointERC20(options); let hookData: Hex = "0x"; if (launchConfig?.kind === "pool") { diff --git a/packages/thirdweb/src/tokens/distribute-token.ts b/packages/thirdweb/src/tokens/distribute-token.ts index c3e0233a3c4..4e6245eca5c 100644 --- a/packages/thirdweb/src/tokens/distribute-token.ts +++ b/packages/thirdweb/src/tokens/distribute-token.ts @@ -1,7 +1,7 @@ import { distribute } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.js"; import type { ClientAndChain } from "../utils/types.js"; import { toUnits } from "../utils/units.js"; -import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; +import { getEntrypointERC20 } from "./get-entrypoint-erc20.js"; import type { DistributeContent } from "./types.js"; type DistrbuteTokenParams = ClientAndChain & { @@ -10,7 +10,7 @@ type DistrbuteTokenParams = ClientAndChain & { }; export async function distributeToken(options: DistrbuteTokenParams) { - const entrypoint = await getDeployedEntrypointERC20(options); + const entrypoint = await getEntrypointERC20(options); if (!entrypoint) { throw new Error(`Entrypoint not found on chain: ${options.chain.id}`); diff --git a/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts b/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts index b5c411f26c6..c6da6b71a96 100644 --- a/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts +++ b/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts @@ -1,37 +1,22 @@ -import { getContract, type ThirdwebContract } from "../contract/contract.js"; +import { getContract } from "../contract/contract.js"; import type { ClientAndChain, - ClientAndChainAndAccount, } from "../utils/types.js"; import { IMPLEMENTATIONS } from "./constants.js"; -export async function getOrDeployEntrypointERC20( - options: ClientAndChainAndAccount, -): Promise { +export async function getEntrypointERC20(options: ClientAndChain) { const implementations = IMPLEMENTATIONS[options.chain.id]; - if (implementations?.AssetEntrypointERC20) { + if (implementations?.EntrypointERC20) { return getContract({ - address: implementations.AssetEntrypointERC20, - chain: options.chain, - client: options.client, - }); - } - - // TODO: Dynamically deploy asset factory if not already deployed - throw new Error("Asset factory deployment is not deployed yet."); -} - -export async function getDeployedEntrypointERC20(options: ClientAndChain) { - const implementations = IMPLEMENTATIONS[options.chain.id]; - - if (implementations?.AssetEntrypointERC20) { - return getContract({ - address: implementations.AssetEntrypointERC20, + address: implementations.EntrypointERC20, chain: options.chain, client: options.client, }); } + // TODO (1): get the create2 factory address + // TODO (2): get the bootstrap factory address from the create2 factory + // TODO (3): predict or get the contract addresses throw new Error("Asset factory deployment is not deployed yet."); } diff --git a/packages/thirdweb/src/tokens/is-router-enabled.ts b/packages/thirdweb/src/tokens/is-router-enabled.ts index c7c1a5ec061..6f4fa533dcf 100644 --- a/packages/thirdweb/src/tokens/is-router-enabled.ts +++ b/packages/thirdweb/src/tokens/is-router-enabled.ts @@ -1,20 +1,44 @@ import { ZERO_ADDRESS } from "../constants/addresses.js"; -import { getRouter } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getRouter.js"; +import { getContract } from "../contract/contract.js"; +import { getPoolRouter } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getPoolRouter.js"; +import { getAdapter } from "../extensions/tokens/__generated__/PoolRouter/read/getAdapter.js"; import type { ClientAndChain } from "../utils/types.js"; -import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; +import { getEntrypointERC20 } from "./get-entrypoint-erc20.js"; -export async function isRouterEnabled( +export async function isPoolRouterEnabled( options: ClientAndChain, ): Promise { - const entrypoint = await getDeployedEntrypointERC20(options); - + const entrypoint = await getEntrypointERC20(options); if (!entrypoint) { return false; } - const router = await getRouter({ + const poolRouterAddress = await getPoolRouter({ contract: entrypoint, }); + if (poolRouterAddress === ZERO_ADDRESS) { + return false; + } + + const poolRouterContract = getContract({ + address: poolRouterAddress, + chain: options.chain, + client: options.client, + }) + + const [v3Adapter, v4Adapter] = await Promise.all([ + getAdapter({ + contract: poolRouterContract, + adapterType: 1, + }), + getAdapter({ + contract: poolRouterContract, + adapterType: 2, + })]); + + if (v3Adapter.rewardLocker === ZERO_ADDRESS && v4Adapter.rewardLocker === ZERO_ADDRESS) { + return false; + } - return router !== ZERO_ADDRESS; + return true; } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a748ca46f7a..880d7407fa8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -135,10 +135,10 @@ importers: version: 1.2.7(@types/react-dom@19.1.6(@types/react@19.1.8))(@types/react@19.1.8)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@scalar/api-reference-react': specifier: 0.7.25 - version: 0.7.25(axios@1.10.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(react@19.1.0)(tailwindcss@3.4.17)(typescript@5.8.3) + version: 0.7.25(axios@1.11.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(react@19.1.0)(tailwindcss@3.4.17)(typescript@5.8.3) '@sentry/nextjs': specifier: 9.34.0 - version: 9.34.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)(webpack@5.99.9(esbuild@0.25.5)) + version: 9.34.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)(webpack@5.99.9) '@shazow/whatsabi': specifier: 0.22.2 version: 0.22.2(@noble/hashes@1.8.0)(typescript@5.8.3)(zod@3.25.75) @@ -340,7 +340,7 @@ importers: version: 9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10)) '@storybook/nextjs': specifier: 9.0.15 - version: 9.0.15(esbuild@0.25.5)(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(type-fest@4.41.0)(typescript@5.8.3)(webpack-hot-middleware@2.26.1)(webpack@5.99.9(esbuild@0.25.5)) + version: 9.0.15(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(type-fest@4.41.0)(typescript@5.8.3)(webpack-hot-middleware@2.26.1)(webpack@5.99.9) '@types/color': specifier: 4.2.0 version: 4.2.0 @@ -382,7 +382,7 @@ importers: version: 10.4.21(postcss@8.5.6) checkly: specifier: 6.0.1 - version: 6.0.1(@types/node@22.14.1)(bufferutil@4.0.9)(jiti@2.4.2)(typescript@5.8.3)(utf-8-validate@5.0.10) + version: 6.0.1(@types/node@22.14.1)(bufferutil@4.0.9)(jiti@2.5.1)(typescript@5.8.3)(utf-8-validate@5.0.10) eslint: specifier: 8.57.0 version: 8.57.0 @@ -551,7 +551,7 @@ importers: version: 9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5)) '@storybook/nextjs': specifier: 9.0.15 - version: 9.0.15(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5))(type-fest@4.41.0)(typescript@5.8.3)(webpack-hot-middleware@2.26.1)(webpack@5.99.9) + version: 9.0.15(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5))(type-fest@4.41.0)(typescript@5.8.3)(webpack-hot-middleware@2.26.1)(webpack@5.100.2) '@types/node': specifier: 22.14.1 version: 22.14.1 @@ -753,13 +753,13 @@ importers: version: 1.0.6(react@19.1.0) '@mdx-js/loader': specifier: 3.1.0 - version: 3.1.0(acorn@8.15.0)(webpack@5.99.9) + version: 3.1.0(acorn@8.15.0)(webpack@5.100.2) '@mdx-js/react': specifier: 3.1.0 version: 3.1.0(@types/react@19.1.8)(react@19.1.0) '@next/mdx': specifier: 15.3.5 - version: 15.3.5(@mdx-js/loader@3.1.0(acorn@8.15.0)(webpack@5.99.9))(@mdx-js/react@3.1.0(@types/react@19.1.8)(react@19.1.0)) + version: 15.3.5(@mdx-js/loader@3.1.0(acorn@8.15.0)(webpack@5.100.2))(@mdx-js/react@3.1.0(@types/react@19.1.8)(react@19.1.0)) '@radix-ui/react-dialog': specifier: 1.1.14 version: 1.1.14(@types/react-dom@19.1.6(@types/react@19.1.8))(@types/react@19.1.8)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) @@ -1046,7 +1046,7 @@ importers: version: 8.5.6 postcss-load-config: specifier: ^6.0.1 - version: 6.0.1(jiti@2.4.2)(postcss@8.5.6)(tsx@4.20.3)(yaml@2.8.0) + version: 6.0.1(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.3)(yaml@2.8.0) tailwindcss: specifier: 3.4.17 version: 3.4.17 @@ -1204,13 +1204,13 @@ importers: version: 22.14.1 '@vitest/coverage-v8': specifier: 3.2.4 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) typescript: specifier: 5.8.3 version: 5.8.3 vitest: specifier: 3.2.4 - version: 3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + version: 3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) packages/thirdweb: dependencies: @@ -1230,8 +1230,8 @@ importers: specifier: 1.7.2 version: 1.7.2 '@passwordless-id/webauthn': - specifier: ^2.1.2 - version: 2.1.2 + specifier: ^2.3.1 + version: 2.3.1 '@radix-ui/react-dialog': specifier: 1.1.14 version: 1.1.14(@types/react-dom@19.1.6(@types/react@19.1.8))(@types/react@19.1.8)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) @@ -1270,12 +1270,12 @@ importers: version: 7.0.6 ethers: specifier: ^5 || ^6 - version: 6.13.5(bufferutil@4.0.9)(utf-8-validate@5.0.10) + version: 6.15.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) fuse.js: specifier: 7.1.0 version: 7.1.0 input-otp: - specifier: ^1.4.1 + specifier: ^1.4.2 version: 1.4.2(react-dom@19.1.0(react@19.1.0))(react@19.1.0) mipd: specifier: 0.0.7 @@ -1322,7 +1322,7 @@ importers: version: 4.0.1(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10)) '@codspeed/vitest-plugin': specifier: 4.0.1 - version: 4.0.1(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.0.10)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) + version: 4.0.1(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) '@coinbase/wallet-mobile-sdk': specifier: 1.1.2 version: 1.1.2(expo@53.0.17(@babel/core@7.28.0)(bufferutil@4.0.9)(graphql@16.11.0)(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(utf-8-validate@5.0.10))(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) @@ -1334,7 +1334,7 @@ importers: version: 2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)) '@size-limit/preset-big-lib': specifier: 11.2.0 - version: 11.2.0(bufferutil@4.0.9)(size-limit@11.2.0)(utf-8-validate@5.0.10) + version: 11.2.0(bufferutil@4.0.9)(esbuild@0.25.8)(size-limit@11.2.0)(utf-8-validate@5.0.10) '@storybook/addon-docs': specifier: 9.0.15 version: 9.0.15(@types/react@19.1.8)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10)) @@ -1346,7 +1346,7 @@ importers: version: 9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10)) '@storybook/react-vite': specifier: 9.0.15 - version: 9.0.15(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(rollup@4.44.1)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3)(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) + version: 9.0.15(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(rollup@4.45.1)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3)(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) '@testing-library/jest-dom': specifier: ^6.6.3 version: 6.6.3 @@ -1369,23 +1369,23 @@ importers: specifier: 0.0.10 version: 0.0.10(bufferutil@4.0.9)(utf-8-validate@5.0.10) '@vitejs/plugin-react': - specifier: ^4.6.0 - version: 4.6.0(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) + specifier: ^4.7.0 + version: 4.7.0(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) '@vitest/coverage-v8': specifier: 3.2.4 - version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.0.10)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) + version: 3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) '@vitest/ui': specifier: 3.2.4 version: 3.2.4(vitest@3.2.4) dotenv-mono: - specifier: ^1.3.14 - version: 1.3.14 + specifier: ^1.4.0 + version: 1.4.0 ethers5: - specifier: npm:ethers@5 + specifier: npm:ethers@^5.8.0 version: ethers@5.8.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) ethers6: - specifier: npm:ethers@6 - version: ethers@6.13.5(bufferutil@4.0.9)(utf-8-validate@5.0.10) + specifier: npm:ethers@^6.15.0 + version: ethers@6.15.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) expo-linking: specifier: 7.0.5 version: 7.0.5(expo@53.0.17(@babel/core@7.28.0)(bufferutil@4.0.9)(graphql@16.11.0)(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(utf-8-validate@5.0.10))(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) @@ -1397,10 +1397,10 @@ importers: version: 17.4.4 knip: specifier: 5.60.2 - version: 5.60.2(@types/node@24.0.10)(typescript@5.8.3) + version: 5.60.2(@types/node@24.1.0)(typescript@5.8.3) msw: specifier: 2.7.5 - version: 2.7.5(@types/node@24.0.10)(typescript@5.8.3) + version: 2.7.5(@types/node@24.1.0)(typescript@5.8.3) prettier: specifier: 3.6.2 version: 3.6.2 @@ -1429,8 +1429,8 @@ importers: specifier: 6.0.1 version: 6.0.1 sharp: - specifier: ^0.34.2 - version: 0.34.2 + specifier: ^0.34.3 + version: 0.34.3 size-limit: specifier: 11.2.0 version: 11.2.0 @@ -1448,10 +1448,10 @@ importers: version: 5.8.3 vite: specifier: 7.0.1 - version: 7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + version: 7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) vitest: specifier: 3.2.4 - version: 3.2.4(@types/debug@4.1.12)(@types/node@24.0.10)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + version: 3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) packages/vault-sdk: dependencies: @@ -1915,8 +1915,8 @@ packages: resolution: {integrity: sha512-NFJK2sHUvrjo8wAU/nQTWU890/zB2jj0qBcCbZbbf+005cAsv6tMjXz31fBign6M5ov1o0Bllu+9nbqkfsjjJQ==} engines: {node: '>=6.9.0'} - '@babel/helpers@7.27.6': - resolution: {integrity: sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug==} + '@babel/helpers@7.28.2': + resolution: {integrity: sha512-/V9771t+EgXz62aCcyofnQhGM8DQACbRhvzKFsXKC9QM+5MadF8ZmIm0crDMaz3+o0h0zXfJnd4EhbYbxsrcFw==} engines: {node: '>=6.9.0'} '@babel/highlight@7.25.9': @@ -2391,6 +2391,12 @@ packages: peerDependencies: '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-regenerator@7.28.1': + resolution: {integrity: sha512-P0QiV/taaa3kXpLY+sXla5zec4E+4t4Aqc9ggHlfZ7a2cp8/x/Gv08jfwEtn9gnnYIMvHx6aoOZ8XJL8eU71Dg==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0-0 + '@babel/plugin-transform-regexp-modifiers@7.27.1': resolution: {integrity: sha512-TtEciroaiODtXvLZv4rmfMhkCv8jx3wgKpL68PuiPh2M4fvz5jhsA7697N1gMvkvr/JTF13DrFYyEbY9U7cVPA==} engines: {node: '>=6.9.0'} @@ -2512,6 +2518,10 @@ packages: resolution: {integrity: sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==} engines: {node: '>=6.9.0'} + '@babel/runtime@7.28.2': + resolution: {integrity: sha512-KHp2IflsnGywDjBWDkR9iEqiWSpc8GIi0lgTT3mOElT0PP1tG26P4tmFI2YvAdzgq9RGyoHZQEIEdZy6Ec5xCA==} + engines: {node: '>=6.9.0'} + '@babel/template@7.27.2': resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==} engines: {node: '>=6.9.0'} @@ -2524,6 +2534,10 @@ packages: resolution: {integrity: sha512-jYnje+JyZG5YThjHiF28oT4SIZLnYOcSBb6+SDaFIyzDVSkXQmQQYclJ2R+YxcdmK0AX6x1E5OQNtuh3jHDrUg==} engines: {node: '>=6.9.0'} + '@babel/types@7.28.2': + resolution: {integrity: sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==} + engines: {node: '>=6.9.0'} + '@bcoe/v8-coverage@1.0.2': resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} engines: {node: '>=18'} @@ -2810,12 +2824,18 @@ packages: '@emnapi/core@1.4.3': resolution: {integrity: sha512-4m62DuCE07lw01soJwPiBGC0nAww0Q+RY70VZ+n49yDIO13yyinhbWCeNnaob0lakDtWQzSdtNWzJeOJt2ma+g==} - '@emnapi/runtime@1.4.3': - resolution: {integrity: sha512-pBPWdu6MLKROBX05wSNKcNb++m5Er+KQ9QkB+WVM+pW2Kx9hoSrVTnu3BdkI5eBLZoKu/J6mW/B6i6bJB2ytXQ==} + '@emnapi/core@1.4.5': + resolution: {integrity: sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q==} + + '@emnapi/runtime@1.4.5': + resolution: {integrity: sha512-++LApOtY0pEEz1zrd9vy1/zXVaVJJ/EbAF3u0fXIzPJEDtnITsBGbbK0EkM72amhl/R5b+5xx0Y/QhcVOpuulg==} '@emnapi/wasi-threads@1.0.2': resolution: {integrity: sha512-5n3nTJblwRi8LlXkJ9eBzu+kZR8Yxcc7ubakyQTFzPMtIhFpUBRbsnc2Dv88IZDIbCDlBiWrknhB4Lsz7mg6BA==} + '@emnapi/wasi-threads@1.0.4': + resolution: {integrity: sha512-PJR+bOmMOPH8AtcTGAyYNiuJ3/Fcoj2XN/gBEWzDIKh254XO+mM9XoXHk5GNEhodxeMznbg7BlRojVbKN+gC6g==} + '@emotion/babel-plugin@11.13.5': resolution: {integrity: sha512-pxHCpT2ex+0q+HH91/zsdHkw/lXd468DIN2zvfvLtPKLLMo6gQj7oLObq8PhkrxOZb/gGCq03S3Z7PDhS8pduQ==} @@ -2891,6 +2911,12 @@ packages: cpu: [ppc64] os: [aix] + '@esbuild/aix-ppc64@0.25.8': + resolution: {integrity: sha512-urAvrUedIqEiFR3FYSLTWQgLu5tb+m0qZw0NBEasUeo6wuqatkMDaRT+1uABiGXEu5vqgPd7FGE1BhsAIy9QVA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + '@esbuild/android-arm64@0.20.2': resolution: {integrity: sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==} engines: {node: '>=12'} @@ -2903,6 +2929,12 @@ packages: cpu: [arm64] os: [android] + '@esbuild/android-arm64@0.25.8': + resolution: {integrity: sha512-OD3p7LYzWpLhZEyATcTSJ67qB5D+20vbtr6vHlHWSQYhKtzUYrETuWThmzFpZtFsBIxRvhO07+UgVA9m0i/O1w==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + '@esbuild/android-arm@0.20.2': resolution: {integrity: sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==} engines: {node: '>=12'} @@ -2915,6 +2947,12 @@ packages: cpu: [arm] os: [android] + '@esbuild/android-arm@0.25.8': + resolution: {integrity: sha512-RONsAvGCz5oWyePVnLdZY/HHwA++nxYWIX1atInlaW6SEkwq6XkP3+cb825EUcRs5Vss/lGh/2YxAb5xqc07Uw==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + '@esbuild/android-x64@0.20.2': resolution: {integrity: sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==} engines: {node: '>=12'} @@ -2927,6 +2965,12 @@ packages: cpu: [x64] os: [android] + '@esbuild/android-x64@0.25.8': + resolution: {integrity: sha512-yJAVPklM5+4+9dTeKwHOaA+LQkmrKFX96BM0A/2zQrbS6ENCmxc4OVoBs5dPkCCak2roAD+jKCdnmOqKszPkjA==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + '@esbuild/darwin-arm64@0.20.2': resolution: {integrity: sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==} engines: {node: '>=12'} @@ -2939,6 +2983,12 @@ packages: cpu: [arm64] os: [darwin] + '@esbuild/darwin-arm64@0.25.8': + resolution: {integrity: sha512-Jw0mxgIaYX6R8ODrdkLLPwBqHTtYHJSmzzd+QeytSugzQ0Vg4c5rDky5VgkoowbZQahCbsv1rT1KW72MPIkevw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + '@esbuild/darwin-x64@0.20.2': resolution: {integrity: sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==} engines: {node: '>=12'} @@ -2951,6 +3001,12 @@ packages: cpu: [x64] os: [darwin] + '@esbuild/darwin-x64@0.25.8': + resolution: {integrity: sha512-Vh2gLxxHnuoQ+GjPNvDSDRpoBCUzY4Pu0kBqMBDlK4fuWbKgGtmDIeEC081xi26PPjn+1tct+Bh8FjyLlw1Zlg==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + '@esbuild/freebsd-arm64@0.20.2': resolution: {integrity: sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==} engines: {node: '>=12'} @@ -2963,6 +3019,12 @@ packages: cpu: [arm64] os: [freebsd] + '@esbuild/freebsd-arm64@0.25.8': + resolution: {integrity: sha512-YPJ7hDQ9DnNe5vxOm6jaie9QsTwcKedPvizTVlqWG9GBSq+BuyWEDazlGaDTC5NGU4QJd666V0yqCBL2oWKPfA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + '@esbuild/freebsd-x64@0.20.2': resolution: {integrity: sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==} engines: {node: '>=12'} @@ -2975,6 +3037,12 @@ packages: cpu: [x64] os: [freebsd] + '@esbuild/freebsd-x64@0.25.8': + resolution: {integrity: sha512-MmaEXxQRdXNFsRN/KcIimLnSJrk2r5H8v+WVafRWz5xdSVmWLoITZQXcgehI2ZE6gioE6HirAEToM/RvFBeuhw==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + '@esbuild/linux-arm64@0.20.2': resolution: {integrity: sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==} engines: {node: '>=12'} @@ -2987,6 +3055,12 @@ packages: cpu: [arm64] os: [linux] + '@esbuild/linux-arm64@0.25.8': + resolution: {integrity: sha512-WIgg00ARWv/uYLU7lsuDK00d/hHSfES5BzdWAdAig1ioV5kaFNrtK8EqGcUBJhYqotlUByUKz5Qo6u8tt7iD/w==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + '@esbuild/linux-arm@0.20.2': resolution: {integrity: sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==} engines: {node: '>=12'} @@ -2999,6 +3073,12 @@ packages: cpu: [arm] os: [linux] + '@esbuild/linux-arm@0.25.8': + resolution: {integrity: sha512-FuzEP9BixzZohl1kLf76KEVOsxtIBFwCaLupVuk4eFVnOZfU+Wsn+x5Ryam7nILV2pkq2TqQM9EZPsOBuMC+kg==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + '@esbuild/linux-ia32@0.20.2': resolution: {integrity: sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==} engines: {node: '>=12'} @@ -3011,6 +3091,12 @@ packages: cpu: [ia32] os: [linux] + '@esbuild/linux-ia32@0.25.8': + resolution: {integrity: sha512-A1D9YzRX1i+1AJZuFFUMP1E9fMaYY+GnSQil9Tlw05utlE86EKTUA7RjwHDkEitmLYiFsRd9HwKBPEftNdBfjg==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + '@esbuild/linux-loong64@0.20.2': resolution: {integrity: sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==} engines: {node: '>=12'} @@ -3023,6 +3109,12 @@ packages: cpu: [loong64] os: [linux] + '@esbuild/linux-loong64@0.25.8': + resolution: {integrity: sha512-O7k1J/dwHkY1RMVvglFHl1HzutGEFFZ3kNiDMSOyUrB7WcoHGf96Sh+64nTRT26l3GMbCW01Ekh/ThKM5iI7hQ==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + '@esbuild/linux-mips64el@0.20.2': resolution: {integrity: sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==} engines: {node: '>=12'} @@ -3035,6 +3127,12 @@ packages: cpu: [mips64el] os: [linux] + '@esbuild/linux-mips64el@0.25.8': + resolution: {integrity: sha512-uv+dqfRazte3BzfMp8PAQXmdGHQt2oC/y2ovwpTteqrMx2lwaksiFZ/bdkXJC19ttTvNXBuWH53zy/aTj1FgGw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + '@esbuild/linux-ppc64@0.20.2': resolution: {integrity: sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==} engines: {node: '>=12'} @@ -3047,6 +3145,12 @@ packages: cpu: [ppc64] os: [linux] + '@esbuild/linux-ppc64@0.25.8': + resolution: {integrity: sha512-GyG0KcMi1GBavP5JgAkkstMGyMholMDybAf8wF5A70CALlDM2p/f7YFE7H92eDeH/VBtFJA5MT4nRPDGg4JuzQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + '@esbuild/linux-riscv64@0.20.2': resolution: {integrity: sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==} engines: {node: '>=12'} @@ -3059,6 +3163,12 @@ packages: cpu: [riscv64] os: [linux] + '@esbuild/linux-riscv64@0.25.8': + resolution: {integrity: sha512-rAqDYFv3yzMrq7GIcen3XP7TUEG/4LK86LUPMIz6RT8A6pRIDn0sDcvjudVZBiiTcZCY9y2SgYX2lgK3AF+1eg==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + '@esbuild/linux-s390x@0.20.2': resolution: {integrity: sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==} engines: {node: '>=12'} @@ -3071,6 +3181,12 @@ packages: cpu: [s390x] os: [linux] + '@esbuild/linux-s390x@0.25.8': + resolution: {integrity: sha512-Xutvh6VjlbcHpsIIbwY8GVRbwoviWT19tFhgdA7DlenLGC/mbc3lBoVb7jxj9Z+eyGqvcnSyIltYUrkKzWqSvg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + '@esbuild/linux-x64@0.20.2': resolution: {integrity: sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==} engines: {node: '>=12'} @@ -3083,12 +3199,24 @@ packages: cpu: [x64] os: [linux] + '@esbuild/linux-x64@0.25.8': + resolution: {integrity: sha512-ASFQhgY4ElXh3nDcOMTkQero4b1lgubskNlhIfJrsH5OKZXDpUAKBlNS0Kx81jwOBp+HCeZqmoJuihTv57/jvQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + '@esbuild/netbsd-arm64@0.25.5': resolution: {integrity: sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==} engines: {node: '>=18'} cpu: [arm64] os: [netbsd] + '@esbuild/netbsd-arm64@0.25.8': + resolution: {integrity: sha512-d1KfruIeohqAi6SA+gENMuObDbEjn22olAR7egqnkCD9DGBG0wsEARotkLgXDu6c4ncgWTZJtN5vcgxzWRMzcw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + '@esbuild/netbsd-x64@0.20.2': resolution: {integrity: sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==} engines: {node: '>=12'} @@ -3101,12 +3229,24 @@ packages: cpu: [x64] os: [netbsd] + '@esbuild/netbsd-x64@0.25.8': + resolution: {integrity: sha512-nVDCkrvx2ua+XQNyfrujIG38+YGyuy2Ru9kKVNyh5jAys6n+l44tTtToqHjino2My8VAY6Lw9H7RI73XFi66Cg==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + '@esbuild/openbsd-arm64@0.25.5': resolution: {integrity: sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] + '@esbuild/openbsd-arm64@0.25.8': + resolution: {integrity: sha512-j8HgrDuSJFAujkivSMSfPQSAa5Fxbvk4rgNAS5i3K+r8s1X0p1uOO2Hl2xNsGFppOeHOLAVgYwDVlmxhq5h+SQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + '@esbuild/openbsd-x64@0.20.2': resolution: {integrity: sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==} engines: {node: '>=12'} @@ -3119,6 +3259,18 @@ packages: cpu: [x64] os: [openbsd] + '@esbuild/openbsd-x64@0.25.8': + resolution: {integrity: sha512-1h8MUAwa0VhNCDp6Af0HToI2TJFAn1uqT9Al6DJVzdIBAd21m/G0Yfc77KDM3uF3T/YaOgQq3qTJHPbTOInaIQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.25.8': + resolution: {integrity: sha512-r2nVa5SIK9tSWd0kJd9HCffnDHKchTGikb//9c7HX+r+wHYCpQrSgxhlY6KWV1nFo1l4KFbsMlHk+L6fekLsUg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + '@esbuild/sunos-x64@0.20.2': resolution: {integrity: sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==} engines: {node: '>=12'} @@ -3131,6 +3283,12 @@ packages: cpu: [x64] os: [sunos] + '@esbuild/sunos-x64@0.25.8': + resolution: {integrity: sha512-zUlaP2S12YhQ2UzUfcCuMDHQFJyKABkAjvO5YSndMiIkMimPmxA+BYSBikWgsRpvyxuRnow4nS5NPnf9fpv41w==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + '@esbuild/win32-arm64@0.20.2': resolution: {integrity: sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==} engines: {node: '>=12'} @@ -3143,6 +3301,12 @@ packages: cpu: [arm64] os: [win32] + '@esbuild/win32-arm64@0.25.8': + resolution: {integrity: sha512-YEGFFWESlPva8hGL+zvj2z/SaK+pH0SwOM0Nc/d+rVnW7GSTFlLBGzZkuSU9kFIGIo8q9X3ucpZhu8PDN5A2sQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + '@esbuild/win32-ia32@0.20.2': resolution: {integrity: sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==} engines: {node: '>=12'} @@ -3155,6 +3319,12 @@ packages: cpu: [ia32] os: [win32] + '@esbuild/win32-ia32@0.25.8': + resolution: {integrity: sha512-hiGgGC6KZ5LZz58OL/+qVVoZiuZlUYlYHNAmczOm7bs2oE1XriPFi5ZHHrS8ACpV5EjySrnoCKmcbQMN+ojnHg==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + '@esbuild/win32-x64@0.20.2': resolution: {integrity: sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==} engines: {node: '>=12'} @@ -3167,6 +3337,12 @@ packages: cpu: [x64] os: [win32] + '@esbuild/win32-x64@0.25.8': + resolution: {integrity: sha512-cn3Yr7+OaaZq1c+2pe+8yxC8E144SReCQjN6/2ynubzYjvyqZjTXfQJpAcQpsdJq3My7XADANiYGHoFC69pLQw==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + '@eslint-community/eslint-utils@4.7.0': resolution: {integrity: sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -3303,8 +3479,8 @@ packages: '@expo/code-signing-certificates@0.0.5': resolution: {integrity: sha512-BNhXkY1bblxKZpltzAx98G2Egj9g1Q+JRcvR7E99DOj862FTCX+ZPsAUtPTr7aHxwtrL7+fL3r0JSmM9kBm+Bw==} - '@expo/config-plugins@10.1.1': - resolution: {integrity: sha512-2L/ryY/R/AzwHfLpzBBsj0qdwN+E2RkF24uwo33L7M5DOswbLVaA007IdLlun+G6ctZYnwgm3TDLxjbvqZ9Avw==} + '@expo/config-plugins@10.1.2': + resolution: {integrity: sha512-IMYCxBOcnuFStuK0Ay+FzEIBKrwW8OVUMc65+v0+i7YFIIe8aL342l7T4F8lR4oCfhXn7d6M5QPgXvjtc/gAcw==} '@expo/config-plugins@9.0.17': resolution: {integrity: sha512-m24F1COquwOm7PBl5wRbkT9P9DviCXe0D7S7nQsolfbhdCWuvMkfXeoWmgjtdhy7sDlOyIgBrAdnB6MfsWKqIg==} @@ -3318,8 +3494,8 @@ packages: '@expo/config@10.0.11': resolution: {integrity: sha512-nociJ4zr/NmbVfMNe9j/+zRlt7wz/siISu7PjdWE4WE+elEGxWWxsGzltdJG0llzrM+khx8qUiFK5aiVcdMBww==} - '@expo/config@11.0.12': - resolution: {integrity: sha512-XEh7g5F8OziJ6eZzBi93qt2YwmPceD3yAEd4Qv/ODK3MrgFCmB5IAJJ2ZFepdeoQFpcxS26Nl4aUuIJYEhJiUw==} + '@expo/config@11.0.13': + resolution: {integrity: sha512-TnGb4u/zUZetpav9sx/3fWK71oCPaOjZHoVED9NaEncktAd0Eonhq5NUghiJmkUGt3gGSjRAEBXiBbbY9/B1LA==} '@expo/devcert@1.2.0': resolution: {integrity: sha512-Uilcv3xGELD5t/b0eM4cxBFEKQRIivB3v7i+VhWLV/gL98aw810unLKKJbGAxAIhY6Ipyz8ChWibFsKFXYwstA==} @@ -3359,8 +3535,8 @@ packages: '@expo/plist@0.3.5': resolution: {integrity: sha512-9RYVU1iGyCJ7vWfg3e7c/NVyMFs8wbl+dMWZphtFtsqyN9zppGREU3ctlD3i8KUE0sCUTVnLjCWr+VeUIDep2g==} - '@expo/prebuild-config@9.0.10': - resolution: {integrity: sha512-lpzuel+Qb3QvGV0mnFOfeiyTq8pTGmnoGIX7p/enEgwjaCOUMSfOkbZkn6QJNAHOgNE1z5PAqzO1EBQPj2jrfA==} + '@expo/prebuild-config@9.0.11': + resolution: {integrity: sha512-0DsxhhixRbCCvmYskBTq8czsU0YOBsntYURhWPNpkl0IPVpeP9haE5W4OwtHGzXEbmHdzaoDwNmVcWjS/mqbDw==} '@expo/sdk-runtime-versions@1.0.0': resolution: {integrity: sha512-Doz2bfiPndXYFPMRwPyGa1k5QaKDVpY806UJj570epIiMzWaYyCtobasyfC++qfIXVb5Ocy7r3tP9d62hAQ7IQ==} @@ -3413,8 +3589,8 @@ packages: '@gerrit0/mini-shiki@1.27.2': resolution: {integrity: sha512-GeWyHz8ao2gBiUW4OJnQDxXQnFgZQwwQk05t/CVVgNBN7/rK8XZ7xY6YhLVv9tH3VppWWmr9DCl3MwemB/i+Og==} - '@headlessui/react@2.2.4': - resolution: {integrity: sha512-lz+OGcAH1dK93rgSMzXmm1qKOJkBUqZf1L4M8TWLNplftQD3IkoEDdUFNfAn4ylsN6WOTVtWaLmvmaHOUk1dTA==} + '@headlessui/react@2.2.6': + resolution: {integrity: sha512-gN5CT8Kf4IWwL04GQOjZ/ZnHMFoeFHZmVSFoDKeTmbtmy9oFqQqJMthdBiO3Pl5LXk2w03fGFLpQV6EW84vjjQ==} engines: {node: '>=10'} peerDependencies: react: ^18 || ^19 || ^19.0.0-rc @@ -3490,118 +3666,124 @@ packages: '@hyperjump/uri@1.3.1': resolution: {integrity: sha512-2ecKymxf6prQMgrNpAvlx4RhsuM5+PFT6oh6uUTZdv5qmBv0RZvxv8LJ7oR30ZxGhdPdZAl4We/1NFc0nqHeAw==} - '@img/sharp-darwin-arm64@0.34.2': - resolution: {integrity: sha512-OfXHZPppddivUJnqyKoi5YVeHRkkNE2zUFT2gbpKxp/JZCFYEYubnMg+gOp6lWfasPrTS+KPosKqdI+ELYVDtg==} + '@img/sharp-darwin-arm64@0.34.3': + resolution: {integrity: sha512-ryFMfvxxpQRsgZJqBd4wsttYQbCxsJksrv9Lw/v798JcQ8+w84mBWuXwl+TT0WJ/WrYOLaYpwQXi3sA9nTIaIg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [darwin] - '@img/sharp-darwin-x64@0.34.2': - resolution: {integrity: sha512-dYvWqmjU9VxqXmjEtjmvHnGqF8GrVjM2Epj9rJ6BUIXvk8slvNDJbhGFvIoXzkDhrJC2jUxNLz/GUjjvSzfw+g==} + '@img/sharp-darwin-x64@0.34.3': + resolution: {integrity: sha512-yHpJYynROAj12TA6qil58hmPmAwxKKC7reUqtGLzsOHfP7/rniNGTL8tjWX6L3CTV4+5P4ypcS7Pp+7OB+8ihA==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [darwin] - '@img/sharp-libvips-darwin-arm64@1.1.0': - resolution: {integrity: sha512-HZ/JUmPwrJSoM4DIQPv/BfNh9yrOA8tlBbqbLz4JZ5uew2+o22Ik+tHQJcih7QJuSa0zo5coHTfD5J8inqj9DA==} + '@img/sharp-libvips-darwin-arm64@1.2.0': + resolution: {integrity: sha512-sBZmpwmxqwlqG9ueWFXtockhsxefaV6O84BMOrhtg/YqbTaRdqDE7hxraVE3y6gVM4eExmfzW4a8el9ArLeEiQ==} cpu: [arm64] os: [darwin] - '@img/sharp-libvips-darwin-x64@1.1.0': - resolution: {integrity: sha512-Xzc2ToEmHN+hfvsl9wja0RlnXEgpKNmftriQp6XzY/RaSfwD9th+MSh0WQKzUreLKKINb3afirxW7A0fz2YWuQ==} + '@img/sharp-libvips-darwin-x64@1.2.0': + resolution: {integrity: sha512-M64XVuL94OgiNHa5/m2YvEQI5q2cl9d/wk0qFTDVXcYzi43lxuiFTftMR1tOnFQovVXNZJ5TURSDK2pNe9Yzqg==} cpu: [x64] os: [darwin] - '@img/sharp-libvips-linux-arm64@1.1.0': - resolution: {integrity: sha512-IVfGJa7gjChDET1dK9SekxFFdflarnUB8PwW8aGwEoF3oAsSDuNUTYS+SKDOyOJxQyDC1aPFMuRYLoDInyV9Ew==} + '@img/sharp-libvips-linux-arm64@1.2.0': + resolution: {integrity: sha512-RXwd0CgG+uPRX5YYrkzKyalt2OJYRiJQ8ED/fi1tq9WQW2jsQIn0tqrlR5l5dr/rjqq6AHAxURhj2DVjyQWSOA==} cpu: [arm64] os: [linux] - '@img/sharp-libvips-linux-arm@1.1.0': - resolution: {integrity: sha512-s8BAd0lwUIvYCJyRdFqvsj+BJIpDBSxs6ivrOPm/R7piTs5UIwY5OjXrP2bqXC9/moGsyRa37eYWYCOGVXxVrA==} + '@img/sharp-libvips-linux-arm@1.2.0': + resolution: {integrity: sha512-mWd2uWvDtL/nvIzThLq3fr2nnGfyr/XMXlq8ZJ9WMR6PXijHlC3ksp0IpuhK6bougvQrchUAfzRLnbsen0Cqvw==} cpu: [arm] os: [linux] - '@img/sharp-libvips-linux-ppc64@1.1.0': - resolution: {integrity: sha512-tiXxFZFbhnkWE2LA8oQj7KYR+bWBkiV2nilRldT7bqoEZ4HiDOcePr9wVDAZPi/Id5fT1oY9iGnDq20cwUz8lQ==} + '@img/sharp-libvips-linux-ppc64@1.2.0': + resolution: {integrity: sha512-Xod/7KaDDHkYu2phxxfeEPXfVXFKx70EAFZ0qyUdOjCcxbjqyJOEUpDe6RIyaunGxT34Anf9ue/wuWOqBW2WcQ==} cpu: [ppc64] os: [linux] - '@img/sharp-libvips-linux-s390x@1.1.0': - resolution: {integrity: sha512-xukSwvhguw7COyzvmjydRb3x/09+21HykyapcZchiCUkTThEQEOMtBj9UhkaBRLuBrgLFzQ2wbxdeCCJW/jgJA==} + '@img/sharp-libvips-linux-s390x@1.2.0': + resolution: {integrity: sha512-eMKfzDxLGT8mnmPJTNMcjfO33fLiTDsrMlUVcp6b96ETbnJmd4uvZxVJSKPQfS+odwfVaGifhsB07J1LynFehw==} cpu: [s390x] os: [linux] - '@img/sharp-libvips-linux-x64@1.1.0': - resolution: {integrity: sha512-yRj2+reB8iMg9W5sULM3S74jVS7zqSzHG3Ol/twnAAkAhnGQnpjj6e4ayUz7V+FpKypwgs82xbRdYtchTTUB+Q==} + '@img/sharp-libvips-linux-x64@1.2.0': + resolution: {integrity: sha512-ZW3FPWIc7K1sH9E3nxIGB3y3dZkpJlMnkk7z5tu1nSkBoCgw2nSRTFHI5pB/3CQaJM0pdzMF3paf9ckKMSE9Tg==} cpu: [x64] os: [linux] - '@img/sharp-libvips-linuxmusl-arm64@1.1.0': - resolution: {integrity: sha512-jYZdG+whg0MDK+q2COKbYidaqW/WTz0cc1E+tMAusiDygrM4ypmSCjOJPmFTvHHJ8j/6cAGyeDWZOsK06tP33w==} + '@img/sharp-libvips-linuxmusl-arm64@1.2.0': + resolution: {integrity: sha512-UG+LqQJbf5VJ8NWJ5Z3tdIe/HXjuIdo4JeVNADXBFuG7z9zjoegpzzGIyV5zQKi4zaJjnAd2+g2nna8TZvuW9Q==} cpu: [arm64] os: [linux] - '@img/sharp-libvips-linuxmusl-x64@1.1.0': - resolution: {integrity: sha512-wK7SBdwrAiycjXdkPnGCPLjYb9lD4l6Ze2gSdAGVZrEL05AOUJESWU2lhlC+Ffn5/G+VKuSm6zzbQSzFX/P65A==} + '@img/sharp-libvips-linuxmusl-x64@1.2.0': + resolution: {integrity: sha512-SRYOLR7CXPgNze8akZwjoGBoN1ThNZoqpOgfnOxmWsklTGVfJiGJoC/Lod7aNMGA1jSsKWM1+HRX43OP6p9+6Q==} cpu: [x64] os: [linux] - '@img/sharp-linux-arm64@0.34.2': - resolution: {integrity: sha512-D8n8wgWmPDakc83LORcfJepdOSN6MvWNzzz2ux0MnIbOqdieRZwVYY32zxVx+IFUT8er5KPcyU3XXsn+GzG/0Q==} + '@img/sharp-linux-arm64@0.34.3': + resolution: {integrity: sha512-QdrKe3EvQrqwkDrtuTIjI0bu6YEJHTgEeqdzI3uWJOH6G1O8Nl1iEeVYRGdj1h5I21CqxSvQp1Yv7xeU3ZewbA==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] - '@img/sharp-linux-arm@0.34.2': - resolution: {integrity: sha512-0DZzkvuEOqQUP9mo2kjjKNok5AmnOr1jB2XYjkaoNRwpAYMDzRmAqUIa1nRi58S2WswqSfPOWLNOr0FDT3H5RQ==} + '@img/sharp-linux-arm@0.34.3': + resolution: {integrity: sha512-oBK9l+h6KBN0i3dC8rYntLiVfW8D8wH+NPNT3O/WBHeW0OQWCjfWksLUaPidsrDKpJgXp3G3/hkmhptAW0I3+A==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm] os: [linux] - '@img/sharp-linux-s390x@0.34.2': - resolution: {integrity: sha512-EGZ1xwhBI7dNISwxjChqBGELCWMGDvmxZXKjQRuqMrakhO8QoMgqCrdjnAqJq/CScxfRn+Bb7suXBElKQpPDiw==} + '@img/sharp-linux-ppc64@0.34.3': + resolution: {integrity: sha512-GLtbLQMCNC5nxuImPR2+RgrviwKwVql28FWZIW1zWruy6zLgA5/x2ZXk3mxj58X/tszVF69KK0Is83V8YgWhLA==} + engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} + cpu: [ppc64] + os: [linux] + + '@img/sharp-linux-s390x@0.34.3': + resolution: {integrity: sha512-3gahT+A6c4cdc2edhsLHmIOXMb17ltffJlxR0aC2VPZfwKoTGZec6u5GrFgdR7ciJSsHT27BD3TIuGcuRT0KmQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [s390x] os: [linux] - '@img/sharp-linux-x64@0.34.2': - resolution: {integrity: sha512-sD7J+h5nFLMMmOXYH4DD9UtSNBD05tWSSdWAcEyzqW8Cn5UxXvsHAxmxSesYUsTOBmUnjtxghKDl15EvfqLFbQ==} + '@img/sharp-linux-x64@0.34.3': + resolution: {integrity: sha512-8kYso8d806ypnSq3/Ly0QEw90V5ZoHh10yH0HnrzOCr6DKAPI6QVHvwleqMkVQ0m+fc7EH8ah0BB0QPuWY6zJQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] - '@img/sharp-linuxmusl-arm64@0.34.2': - resolution: {integrity: sha512-NEE2vQ6wcxYav1/A22OOxoSOGiKnNmDzCYFOZ949xFmrWZOVII1Bp3NqVVpvj+3UeHMFyN5eP/V5hzViQ5CZNA==} + '@img/sharp-linuxmusl-arm64@0.34.3': + resolution: {integrity: sha512-vAjbHDlr4izEiXM1OTggpCcPg9tn4YriK5vAjowJsHwdBIdx0fYRsURkxLG2RLm9gyBq66gwtWI8Gx0/ov+JKQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [linux] - '@img/sharp-linuxmusl-x64@0.34.2': - resolution: {integrity: sha512-DOYMrDm5E6/8bm/yQLCWyuDJwUnlevR8xtF8bs+gjZ7cyUNYXiSf/E8Kp0Ss5xasIaXSHzb888V1BE4i1hFhAA==} + '@img/sharp-linuxmusl-x64@0.34.3': + resolution: {integrity: sha512-gCWUn9547K5bwvOn9l5XGAEjVTTRji4aPTqLzGXHvIr6bIDZKNTA34seMPgM0WmSf+RYBH411VavCejp3PkOeQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [linux] - '@img/sharp-wasm32@0.34.2': - resolution: {integrity: sha512-/VI4mdlJ9zkaq53MbIG6rZY+QRN3MLbR6usYlgITEzi4Rpx5S6LFKsycOQjkOGmqTNmkIdLjEvooFKwww6OpdQ==} + '@img/sharp-wasm32@0.34.3': + resolution: {integrity: sha512-+CyRcpagHMGteySaWos8IbnXcHgfDn7pO2fiC2slJxvNq9gDipYBN42/RagzctVRKgxATmfqOSulgZv5e1RdMg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [wasm32] - '@img/sharp-win32-arm64@0.34.2': - resolution: {integrity: sha512-cfP/r9FdS63VA5k0xiqaNaEoGxBg9k7uE+RQGzuK9fHt7jib4zAVVseR9LsE4gJcNWgT6APKMNnCcnyOtmSEUQ==} + '@img/sharp-win32-arm64@0.34.3': + resolution: {integrity: sha512-MjnHPnbqMXNC2UgeLJtX4XqoVHHlZNd+nPt1kRPmj63wURegwBhZlApELdtxM2OIZDRv/DFtLcNhVbd1z8GYXQ==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [arm64] os: [win32] - '@img/sharp-win32-ia32@0.34.2': - resolution: {integrity: sha512-QLjGGvAbj0X/FXl8n1WbtQ6iVBpWU7JO94u/P2M4a8CFYsvQi4GW2mRy/JqkRx0qpBzaOdKJKw8uc930EX2AHw==} + '@img/sharp-win32-ia32@0.34.3': + resolution: {integrity: sha512-xuCdhH44WxuXgOM714hn4amodJMZl3OEvf0GVTm0BEyMeA2to+8HEdRPShH0SLYptJY1uBw+SCFP9WVQi1Q/cw==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [ia32] os: [win32] - '@img/sharp-win32-x64@0.34.2': - resolution: {integrity: sha512-aUdT6zEYtDKCaxkofmmJDJYGCf0+pJg3eU9/oBuqvEeoB9dKI6ZLc/1iLJCTuJQDO4ptntAlkUmHgGjyuobZbw==} + '@img/sharp-win32-x64@0.34.3': + resolution: {integrity: sha512-OWwz05d++TxzLEv4VnsTz5CmZ6mI6S05sfQGEMrNrQcOEERbX46332IvE7pO/EUiw7jUrrS40z/M7kPyjfl04g==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} cpu: [x64] os: [win32] @@ -3615,8 +3797,8 @@ packages: '@types/node': optional: true - '@inquirer/confirm@5.1.13': - resolution: {integrity: sha512-EkCtvp67ICIVVzjsquUiVSd+V5HRGOGQfsqA4E4vMWhYnB7InUL0pa0TIWt1i+OfP16Gkds8CdIu6yGZwOM1Yw==} + '@inquirer/confirm@5.1.14': + resolution: {integrity: sha512-5yR4IBfe0kXe59r1YCTG8WXkUbl7Z35HK87Sw+WUyGD8wNUx7JvY7laahzeytyE1oLn74bQnL7hstctQxisQ8Q==} engines: {node: '>=18'} peerDependencies: '@types/node': '>=18' @@ -3624,8 +3806,8 @@ packages: '@types/node': optional: true - '@inquirer/core@10.1.14': - resolution: {integrity: sha512-Ma+ZpOJPewtIYl6HZHZckeX1STvDnHTCB2GVINNUlSEn2Am6LddWwfPkIGY0IUFVjUUrr/93XlBwTK6mfLjf0A==} + '@inquirer/core@10.1.15': + resolution: {integrity: sha512-8xrp836RZvKkpNbVvgWUlxjT4CraKk2q+I3Ksy+seI2zkcE+y6wNs1BVhgcv8VyImFecUhdQrYLdW32pAjwBdA==} engines: {node: '>=18'} peerDependencies: '@types/node': '>=18' @@ -3651,8 +3833,8 @@ packages: '@types/node': optional: true - '@inquirer/figures@1.0.12': - resolution: {integrity: sha512-MJttijd8rMFcKJC8NYmprWr6hD3r9Gd9qUC0XwPNwoEPWSMVJwA2MlXxF+nhZZNMY+HXsWa+o7KY2emWYIn0jQ==} + '@inquirer/figures@1.0.13': + resolution: {integrity: sha512-lGPVU3yO9ZNqA7vTYz26jny41lE7yoQansmqdMLBEfqaGsmdg7V3W9mK9Pvb5IL4EVZ9GnSDGMO/cJXud5dMaw==} engines: {node: '>=18'} '@inquirer/input@4.1.12': @@ -3718,8 +3900,8 @@ packages: '@types/node': optional: true - '@inquirer/type@3.0.7': - resolution: {integrity: sha512-PfunHQcjwnju84L+ycmcMKB/pTPIngjUJvfnRhKY6FKPuYXlM4aQCb/nIdTFR6BEhMjFvngzvng/vBAJMZpLSA==} + '@inquirer/type@3.0.8': + resolution: {integrity: sha512-lg9Whz8onIHRthWaN1Q9EGLa/0LFJjyM8mEUbL1eTi6yMGvBf8gvyDLtxSXztQsxMvhxxNpJYrwa1YHdq+w4Jw==} engines: {node: '>=18'} peerDependencies: '@types/node': '>=18' @@ -3843,14 +4025,14 @@ packages: '@lezer/yaml@1.0.3': resolution: {integrity: sha512-GuBLekbw9jDBDhGur82nuwkxKQ+a3W5H0GfaAthDXcAu+XdpS43VlnxA9E9hllkpSP5ellRDKjLLj7Lu9Wr6xA==} - '@lit-labs/ssr-dom-shim@1.3.0': - resolution: {integrity: sha512-nQIWonJ6eFAvUUrSlwyHDm/aE8PBDu5kRpL0vHMg6K8fK3Diq1xdPjTnsJSwxABhaZ+5eBi1btQB5ShUTKo4nQ==} + '@lit-labs/ssr-dom-shim@1.4.0': + resolution: {integrity: sha512-ficsEARKnmmW5njugNYKipTm4SFnbik7CXtoencDZzmzo/dQ+2Q0bgkzJuoJP20Aj0F+izzJjOqsnkd6F/o1bw==} '@lit/reactive-element@1.6.3': resolution: {integrity: sha512-QuTgnG52Poic7uM1AN5yJ09QMe0O28e10XzSvWDz02TJiiKee4stsiownEIadWm8nYzyDAyT+gKzUoZmiWQtsQ==} - '@lit/reactive-element@2.1.0': - resolution: {integrity: sha512-L2qyoZSQClcBmq0qajBVbhYEcG6iK0XfLn66ifLe/RfC0/ihpc+pl0Wdn8bJ8o+hj38cG0fGXRgSS20MuXn7qA==} + '@lit/reactive-element@2.1.1': + resolution: {integrity: sha512-N+dm5PAYdQ8e6UlywyyrgI2t++wFGXfHx+dSJ1oBrg6FAxUj40jId++EaRm80MKX5JnlH1sBsyZ5h0bcZKemCg==} '@manypkg/find-root@1.1.0': resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==} @@ -4029,13 +4211,16 @@ packages: resolution: {integrity: sha512-wK+5pLK5XFmgtH3aQ2YVvA3HohS3xqV/OxuVOdNx9Wpnz7VE/fnC+e1A7ln6LFYeck7gOJ/dsZV6OLplOtAJ2w==} engines: {node: '>=18'} - '@mswjs/interceptors@0.39.2': - resolution: {integrity: sha512-RuzCup9Ct91Y7V79xwCb146RaBRHZ7NBbrIUySumd1rpKqHL5OonaqrGIbug5hNwP/fRyxFMA6ISgw4FTtYFYg==} + '@mswjs/interceptors@0.39.4': + resolution: {integrity: sha512-B82DbrGVCIBrNEfRJbqUFB0eNz0wVzqbenEpmbE71XLVU4yKZbDnRBuxz+7udc/uM7LDWDD4sRJ5tISzHf2QkQ==} engines: {node: '>=18'} '@napi-rs/wasm-runtime@0.2.11': resolution: {integrity: sha512-9DPkXtvHydrcOsopiYpUgPHpmj0HWZKMUnL2dZqpvC42lsratuBG06V5ipyno0fUek5VlFsNQ+AcFATSrJXgMA==} + '@napi-rs/wasm-runtime@1.0.1': + resolution: {integrity: sha512-KVlQ/jgywZpixGCKMNwxStmmbYEMyokZpCf2YuIChhfJA2uqfAKNEM8INz7zzTo55iEXfBhIIs3VqYyqzDLj8g==} + '@neoconfetti/react@1.0.0': resolution: {integrity: sha512-klcSooChXXOzIm+SE5IISIAn3bYzYfPjbX7D7HoqZL84oAfgREeSg5vSIaSFH+DaGzzvImTyWe1OyrJ67vik4A==} @@ -4151,6 +4336,10 @@ packages: resolution: {integrity: sha512-HxngEd2XUcg9xi20JkwlLCtYwfoFw4JGkuZpT+WlsPD4gB/cxkvTD8fSsoAnphGZhFdZYKeQIPCuFlWPm1uE0g==} engines: {node: ^14.21.3 || >=16} + '@noble/curves@1.9.4': + resolution: {integrity: sha512-2bKONnuM53lINoDrSmK8qP8W271ms7pygDhZt4SiLOoLwBtoHqeCFi6RG42V8zd3mLHuJFhU/Bmaqo4nX0/kBw==} + engines: {node: ^14.21.3 || >=16} + '@noble/hashes@1.3.2': resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} engines: {node: '>= 16'} @@ -4432,76 +4621,106 @@ packages: peerDependencies: '@opentelemetry/api': ^1.1.0 - '@oxc-resolver/binding-darwin-arm64@11.2.0': - resolution: {integrity: sha512-ruKLkS+Dm/YIJaUhzEB7zPI+jh3EXxu0QnNV8I7t9jf0lpD2VnltuyRbhrbJEkksklZj//xCMyFFsILGjiU2Mg==} + '@oxc-resolver/binding-android-arm-eabi@11.6.0': + resolution: {integrity: sha512-UJTf5uZs919qavt9Btvbzkr3eaUu4d+FXBri8AB2BtOezriaTTUvArab2K9fdACQ4yFggTD5ews1l19V/6SW2Q==} + cpu: [arm] + os: [android] + + '@oxc-resolver/binding-android-arm64@11.6.0': + resolution: {integrity: sha512-v17j1WLEAIlyc+6JOWPXcky7dkU3fN8nHTP8KSK05zkkBO0t28R3Q0udmNBiJtVSnw4EFB/fy/3Mu2ItpG6bVQ==} + cpu: [arm64] + os: [android] + + '@oxc-resolver/binding-darwin-arm64@11.6.0': + resolution: {integrity: sha512-ZrU+qd5AKe8s7PZDLCHY23UpbGn1RAkcNd4JYjOTnX22XEjSqLvyC6pCMngTyfgGVJ4zXFubBkRzt/k3xOjNlQ==} cpu: [arm64] os: [darwin] - '@oxc-resolver/binding-darwin-x64@11.2.0': - resolution: {integrity: sha512-0zhgNUm5bYezdSFOg3FYhtVP83bAq7FTV/3suGQDl/43MixfQG7+bl+hlrP4mz6WlD2SUb2u9BomnJWl1uey9w==} + '@oxc-resolver/binding-darwin-x64@11.6.0': + resolution: {integrity: sha512-qBIlX0X0RSxQHcXQnFpBGKxrDVtj7OdpWFGmrcR3NcndVjZ/wJRPST5uTTM83NfsHyuUeOi/vRZjmDrthvhnSQ==} cpu: [x64] os: [darwin] - '@oxc-resolver/binding-freebsd-x64@11.2.0': - resolution: {integrity: sha512-SHOxfCcZV1axeIGfyeD1BkdLvfQgjmPy18tO0OUXGElcdScxD6MqU5rj/AVtiuBT+51GtFfOKlwl1+BdVwhD1A==} + '@oxc-resolver/binding-freebsd-x64@11.6.0': + resolution: {integrity: sha512-tTyMlHHNhbkq/oEP/fM8hPZ6lqntHIz6EfOt577/lslrwxC5a/ii0lOOHjPuQtkurpyUBWYPs7Z17EgrZulc4Q==} cpu: [x64] os: [freebsd] - '@oxc-resolver/binding-linux-arm-gnueabihf@11.2.0': - resolution: {integrity: sha512-mgEkYrJ+N90sgEDqEZ07zH+4I1D28WjqAhdzfW3aS2x2vynVpoY9jWfHuH8S62vZt3uATJrTKTRa8CjPWEsrdw==} + '@oxc-resolver/binding-linux-arm-gnueabihf@11.6.0': + resolution: {integrity: sha512-tYinHy5k9/rujo21mG2jZckJJD7fsceNDl5HOl/eh5NPjSt2vXQv181PVKeITw3+3i+gI1d666w5EtgpiCegRA==} cpu: [arm] os: [linux] - '@oxc-resolver/binding-linux-arm64-gnu@11.2.0': - resolution: {integrity: sha512-BhEzNLjn4HjP8+Q18D3/jeIDBxW7OgoJYIjw2CaaysnYneoTlij8hPTKxHfyqq4IGM3fFs9TLR/k338M3zkQ7g==} + '@oxc-resolver/binding-linux-arm-musleabihf@11.6.0': + resolution: {integrity: sha512-aOlGlSiT9fBgSyiIWvSxbyzaBx3XrgCy6UJRrqBkIvMO9D7W90JmV0RsiLua4w43zJSSrfuQQWqmFCwgIib3Iw==} + cpu: [arm] + os: [linux] + + '@oxc-resolver/binding-linux-arm64-gnu@11.6.0': + resolution: {integrity: sha512-EZ/OuxZA9qQoAANBDb9V4krfYXU3MC+LZ9qY+cE0yMYMIxm7NT5AdR0OaRQqfa3tWIbina1VF7FaMR6rpKvmlA==} cpu: [arm64] os: [linux] - '@oxc-resolver/binding-linux-arm64-musl@11.2.0': - resolution: {integrity: sha512-yxbMYUgRmN2V8x8XoxmD/Qq6aG7YIW3ToMDILfmcfeeRRVieEJ3DOWBT0JSE+YgrOy79OyFDH/1lO8VnqLmDQQ==} + '@oxc-resolver/binding-linux-arm64-musl@11.6.0': + resolution: {integrity: sha512-NpF7sID4NnPetpqDk2eOu6TPUt381Qlpos8nGDcSkAluqSsSGFOPfETEB5VbJeqNVQbepEQX9mOxZygFpW0+nA==} cpu: [arm64] os: [linux] - '@oxc-resolver/binding-linux-riscv64-gnu@11.2.0': - resolution: {integrity: sha512-QG1UfgC2N2qhW1tOnDCgB/26vn1RCshR5sYPhMeaxO1gMQ3kEKbZ3QyBXxrG1IX5qsXYj5hPDJLDYNYUjRcOpg==} + '@oxc-resolver/binding-linux-ppc64-gnu@11.6.0': + resolution: {integrity: sha512-Sqn9Ha4rxCCpjpfkFi9f9y9phsaBnseaKw+JqHgBQoNMToe+/20A1jwIu9OX+484UuLpduM+wLydgngjnoi7Dg==} + cpu: [ppc64] + os: [linux] + + '@oxc-resolver/binding-linux-riscv64-gnu@11.6.0': + resolution: {integrity: sha512-eFoNcPhImp1FLAQf5U3Nlph4WNWEsdWohSThSTtKPrX+jhPZiVsj3iBC9gjaRwq2Ez4QhP1x7/PSL6mtKnS6rw==} + cpu: [riscv64] + os: [linux] + + '@oxc-resolver/binding-linux-riscv64-musl@11.6.0': + resolution: {integrity: sha512-WQw3CT10aJg7SIc/X1QPrh6lTx2wOLg5IaCu/+Mqlxf1nZBEW3+tV/+y3PzXG0MCRhq7FDTiHaW8MBVAwBineQ==} cpu: [riscv64] os: [linux] - '@oxc-resolver/binding-linux-s390x-gnu@11.2.0': - resolution: {integrity: sha512-uqTDsQdi6mrkSV1gvwbuT8jf/WFl6qVDVjNlx7IPSaAByrNiJfPrhTmH8b+Do58Dylz7QIRZgxQ8CHIZSyBUdg==} + '@oxc-resolver/binding-linux-s390x-gnu@11.6.0': + resolution: {integrity: sha512-p5qcPr/EtGJ2PpeeArL3ifZU/YljWLypeu38+e19z2dyPv8Aoby8tjM+D1VTI8+suMwTkseyove/uu6zIUiqRw==} cpu: [s390x] os: [linux] - '@oxc-resolver/binding-linux-x64-gnu@11.2.0': - resolution: {integrity: sha512-GZdHXhJ7p6GaQg9MjRqLebwBf8BLvGIagccI6z5yMj4fV3LU4QuDfwSEERG+R6oQ/Su9672MBqWwncvKcKT68w==} + '@oxc-resolver/binding-linux-x64-gnu@11.6.0': + resolution: {integrity: sha512-/9M/ieoY5v54k3UjtF9Vw43WQ4bBfed+qRL1uIpFbZcO2qi5aXwVMYnjSd/BoaRtDs5JFV9iOjzHwpw0zdOYZA==} cpu: [x64] os: [linux] - '@oxc-resolver/binding-linux-x64-musl@11.2.0': - resolution: {integrity: sha512-YBAC3GOicYznReG2twE7oFPSeK9Z1f507z1EYWKg6HpGYRYRlJyszViu7PrhMT85r/MumDTs429zm+CNqpFWOA==} + '@oxc-resolver/binding-linux-x64-musl@11.6.0': + resolution: {integrity: sha512-HMtWWHTU7zbwceTFZPAPMMhhWR1nNO2OR60r6i55VprCMvttTWPQl7uLP0AUtAPoU9B/2GqP48rzOuaaKhHnYw==} cpu: [x64] os: [linux] - '@oxc-resolver/binding-wasm32-wasi@11.2.0': - resolution: {integrity: sha512-+qlIg45CPVPy+Jn3vqU1zkxA/AAv6e/2Ax/ImX8usZa8Tr2JmQn/93bmSOOOnr9fXRV9d0n4JyqYzSWxWPYDEw==} + '@oxc-resolver/binding-wasm32-wasi@11.6.0': + resolution: {integrity: sha512-rDAwr2oqmnG/6LSZJwvO3Bmt/RC3/Q6myyaUmg3P7GhZDyFPrWJONB7NFhPwU2Q4JIpA73ST4LBdhzmGxMTmrw==} engines: {node: '>=14.0.0'} cpu: [wasm32] - '@oxc-resolver/binding-win32-arm64-msvc@11.2.0': - resolution: {integrity: sha512-AI4KIpS8Zf6vwfOPk0uQPSC0pQ1m5HU4hCbtrgL21JgJSlnJaeEu3/aoOBB45AXKiExBU9R+CDR7aSnW7uhc5A==} + '@oxc-resolver/binding-win32-arm64-msvc@11.6.0': + resolution: {integrity: sha512-COzy8weljZo2lObWl6ZzW6ypDx1v1rtLdnt7JPjTUARikK1gMzlz9kouQhCtCegNFILx2L2oWw7714fnchqujw==} cpu: [arm64] os: [win32] - '@oxc-resolver/binding-win32-x64-msvc@11.2.0': - resolution: {integrity: sha512-r19cQc7HaEJ76HFsMsbiKMTIV2YqFGSof8H5hB7e5Jkb/23Y8Isv1YrSzkDaGhcw02I/COsrPo+eEmjy35eFuA==} + '@oxc-resolver/binding-win32-ia32-msvc@11.6.0': + resolution: {integrity: sha512-p2tMRdi91CovjLBApDPD/uEy1/5r7U6iVkfagLYDytgvj6nJ1EAxLUdXbhoe6//50IvDC/5I51nGCdxmOUiXlQ==} + cpu: [ia32] + os: [win32] + + '@oxc-resolver/binding-win32-x64-msvc@11.6.0': + resolution: {integrity: sha512-p6b9q5TACd/y39kDK2HENXqd4lThoVrTkxdvizqd5/VwyHcoSd0cDcIEhHpxvfjc83VsODCBgB/zcjp//TlaqA==} cpu: [x64] os: [win32] '@paralleldrive/cuid2@2.2.2': resolution: {integrity: sha512-ZOBkgDwEdoYVlSeRbYYXs0S9MejQofiVYoTbKzy/6GQa39/q5tQU2IX46+shYnUkpEl3wc+J6wRlar7r2EK2xA==} - '@passwordless-id/webauthn@2.1.2': - resolution: {integrity: sha512-Ahj+A3O0gP3EsLV4FRXjfhbzzP895d8CnHKmhT1hkAz1zLSBCRE/iXJsasL1kwGoriDFLJ+YtO6x1rok4SZH2g==} + '@passwordless-id/webauthn@2.3.1': + resolution: {integrity: sha512-n75LOVz9J24FhEiLHiAfqC2gxh2wXJ4G+nvMxRy6fTpmhg6lK+tKwp/GZaXZjRXgUtPWHRVMtvCHKQQCfojXmw==} '@paulmillr/qr@0.2.1': resolution: {integrity: sha512-IHnV6A+zxU7XwmKFinmYjUcwlyK9+xkG3/s9KcQhI9BjQKycrJ1JRO+FbNYPwZiPKW3je/DR0k7w8/gLa5eaxQ==} @@ -4630,13 +4849,13 @@ packages: permissionless: optional: true - '@puppeteer/browsers@2.2.2': - resolution: {integrity: sha512-hZ/JhxPIceWaGSEzUZp83/8M49CoxlkuThfTR7t4AoCu5+ZvJ3vktLm60Otww2TXeROB5igiZ8D9oPQh6ckBVg==} + '@puppeteer/browsers@2.10.6': + resolution: {integrity: sha512-pHUn6ZRt39bP3698HFQlu2ZHCkS/lPcpv7fVQcGBSzNNygw171UXAKrCUhy+TEMw4lEttOKDgNpb04hwUAJeiQ==} engines: {node: '>=18'} hasBin: true - '@puppeteer/browsers@2.7.1': - resolution: {integrity: sha512-MK7rtm8JjaxPN7Mf1JdZIZKPD2Z+W7osvrC1vjpvfOX1K0awDIHYbNi89f7eotp7eMUn2shWnt03HwVbriXtKQ==} + '@puppeteer/browsers@2.2.2': + resolution: {integrity: sha512-hZ/JhxPIceWaGSEzUZp83/8M49CoxlkuThfTR7t4AoCu5+ZvJ3vktLm60Otww2TXeROB5igiZ8D9oPQh6ckBVg==} engines: {node: '>=18'} hasBin: true @@ -5153,26 +5372,26 @@ packages: '@radix-ui/rect@1.1.1': resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==} - '@react-aria/focus@3.20.5': - resolution: {integrity: sha512-JpFtXmWQ0Oca7FcvkqgjSyo6xEP7v3oQOLUId6o0xTvm4AD5W0mU2r3lYrbhsJ+XxdUUX4AVR5473sZZ85kU4A==} + '@react-aria/focus@3.21.0': + resolution: {integrity: sha512-7NEGtTPsBy52EZ/ToVKCu0HSelE3kq9qeis+2eEq90XSuJOMaDHUQrA7RC2Y89tlEwQB31bud/kKRi9Qme1dkA==} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 - '@react-aria/interactions@3.25.3': - resolution: {integrity: sha512-J1bhlrNtjPS/fe5uJQ+0c7/jiXniwa4RQlP+Emjfc/iuqpW2RhbF9ou5vROcLzWIyaW8tVMZ468J68rAs/aZ5A==} + '@react-aria/interactions@3.25.4': + resolution: {integrity: sha512-HBQMxgUPHrW8V63u9uGgBymkMfj6vdWbB0GgUJY49K9mBKMsypcHeWkWM6+bF7kxRO728/IK8bWDV6whDbqjHg==} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 - '@react-aria/ssr@3.9.9': - resolution: {integrity: sha512-2P5thfjfPy/np18e5wD4WPt8ydNXhij1jwA8oehxZTFqlgVMGXzcWKxTb4RtJrLFsqPO7RUQTiY8QJk0M4Vy2g==} + '@react-aria/ssr@3.9.10': + resolution: {integrity: sha512-hvTm77Pf+pMBhuBm760Li0BVIO38jv1IBws1xFm1NoL26PU+fe+FMW5+VZWyANR6nYL65joaJKZqOdTQMkO9IQ==} engines: {node: '>= 12'} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 - '@react-aria/utils@3.29.1': - resolution: {integrity: sha512-yXMFVJ73rbQ/yYE/49n5Uidjw7kh192WNN9PNQGV0Xoc7EJUlSOxqhnpHmYTyO0EotJ8fdM1fMH8durHjUSI8g==} + '@react-aria/utils@3.30.0': + resolution: {integrity: sha512-ydA6y5G1+gbem3Va2nczj/0G0W7/jUVo/cbN10WA5IizzWIwMP5qhFr7macgbKfHMkZ+YZC3oXnt2NNre5odKw==} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 react-dom: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 @@ -5282,54 +5501,54 @@ packages: '@react-stately/flags@3.1.2': resolution: {integrity: sha512-2HjFcZx1MyQXoPqcBGALwWWmgFVUk2TuKVIQxCbRq7fPyWXIl6VHcakCLurdtYC2Iks7zizvz0Idv48MQ38DWg==} - '@react-stately/utils@3.10.7': - resolution: {integrity: sha512-cWvjGAocvy4abO9zbr6PW6taHgF24Mwy/LbQ4TC4Aq3tKdKDntxyD+sh7AkSRfJRT2ccMVaHVv2+FfHThd3PKQ==} + '@react-stately/utils@3.10.8': + resolution: {integrity: sha512-SN3/h7SzRsusVQjQ4v10LaVsDc81jyyR0DD5HnsQitm/I5WDpaSr2nRHtyloPFU48jlql1XX/S04T2DLQM7Y3g==} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 - '@react-types/shared@3.30.0': - resolution: {integrity: sha512-COIazDAx1ncDg046cTJ8SFYsX8aS3lB/08LDnbkH/SkdYrFPWDlXMrO/sUam8j1WWM+PJ+4d1mj7tODIKNiFog==} + '@react-types/shared@3.31.0': + resolution: {integrity: sha512-ua5U6V66gDcbLZe4P2QeyNgPp4YWD1ymGA6j3n+s8CGExtrCPe64v+g4mvpT8Bnb985R96e4zFT61+m0YCwqMg==} peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1 - '@reown/appkit-common@1.7.13': - resolution: {integrity: sha512-A89OddJp0KImneGnJfwBvAtbrD5vX0KqqKWU8l3EXYGaFAiW+hitl4GwZ6kjoBFgXRc8sQ3T7xg1MBZRZH6wLQ==} + '@reown/appkit-common@1.7.16': + resolution: {integrity: sha512-Tbo/8r6Yb50tIe6shu6JqtUjQVJdBuFR6Zlz6s6DS027YBNylDi89FJM1ZBI1bN6kkFAD6yb5YOdj1PGxaeDLw==} '@reown/appkit-common@1.7.8': resolution: {integrity: sha512-ridIhc/x6JOp7KbDdwGKY4zwf8/iK8EYBl+HtWrruutSLwZyVi5P8WaZa+8iajL6LcDcDF7LoyLwMTym7SRuwQ==} - '@reown/appkit-controllers@1.7.13': - resolution: {integrity: sha512-p4KkQKw9tvB56OyBKvJQFHWTtIw9xSX/sXIAWo8RZ5yrzp3Xln5THe75ATbIjqiIW4sywYCGe0C7vfyjJl/Z3A==} + '@reown/appkit-controllers@1.7.16': + resolution: {integrity: sha512-n68kqLrAzb251J3MS8XMHv2sZmhRCylE/lz8jE12+0/TsLLuMuWLfYYjq7uNX4XkfV718OPew75PH5kEGBxsfQ==} '@reown/appkit-controllers@1.7.8': resolution: {integrity: sha512-IdXlJlivrlj6m63VsGLsjtPHHsTWvKGVzWIP1fXZHVqmK+rZCBDjCi9j267Rb9/nYRGHWBtlFQhO8dK35WfeDA==} - '@reown/appkit-pay@1.7.13': - resolution: {integrity: sha512-1C5E7DM+C5z48eqV2N5CrimYOLGQLeOi7LwBoliQn9S50fDxPIi17XePDQ3+/q1zIYDw2N3a1aEoZ9khlPIGjQ==} + '@reown/appkit-pay@1.7.16': + resolution: {integrity: sha512-RT+dY/4zGEiDfqoEFvNg0pYmHPUUoj8kBtkOGj1zTPH7Pm6kBzwM/F/b+Cy/qWaq6N543OMdmUi6JvD+9jt50w==} '@reown/appkit-pay@1.7.8': resolution: {integrity: sha512-OSGQ+QJkXx0FEEjlpQqIhT8zGJKOoHzVnyy/0QFrl3WrQTjCzg0L6+i91Ad5Iy1zb6V5JjqtfIFpRVRWN4M3pw==} - '@reown/appkit-polyfills@1.7.13': - resolution: {integrity: sha512-vMiVd+H5HrpShVHAtiGp1GHxZf6hkXkxLB1NCfR0m4/49KOFzfxAcu52CBq6f6ttljeTIj/clbO3b8s4eP1rUw==} + '@reown/appkit-polyfills@1.7.16': + resolution: {integrity: sha512-efdEfSdIPxykbG9NJ/mrcSUCKffOlbkycc5xoq4Th1khl749gz68Gx7kaDMCRSzc+ye+CIhdpOjN1ABBPWsQEQ==} '@reown/appkit-polyfills@1.7.8': resolution: {integrity: sha512-W/kq786dcHHAuJ3IV2prRLEgD/2iOey4ueMHf1sIFjhhCGMynMkhsOhQMUH0tzodPqUgAC494z4bpIDYjwWXaA==} - '@reown/appkit-scaffold-ui@1.7.13': - resolution: {integrity: sha512-KFfrpMGWXfXzWNt9FKkkhFQ/xdDSjlDAiAtBXYuM6e9GSi9j2EwvLw64mluLHRkgZHZL+z2tauZ+4S57B/N95w==} + '@reown/appkit-scaffold-ui@1.7.16': + resolution: {integrity: sha512-l7xNSDcMrNRJ0XSwFDCUiaEYOwbuv/42MMfzxsRAcVYP8BbMpxKkTGkFkH5Sk/52oPEaBbQYGkhU6ifUurSHNg==} '@reown/appkit-scaffold-ui@1.7.8': resolution: {integrity: sha512-RCeHhAwOrIgcvHwYlNWMcIDibdI91waaoEYBGw71inE0kDB8uZbE7tE6DAXJmDkvl0qPh+DqlC4QbJLF1FVYdQ==} - '@reown/appkit-ui@1.7.13': - resolution: {integrity: sha512-u/r+SpJ2UgXdCFo0YXdMDP5/SRjbO1qDsqbJGRhPo1q/RyH1r3QhmCkZDGKKAiyARinC+k5NnBTVJ1cXNgh77Q==} + '@reown/appkit-ui@1.7.16': + resolution: {integrity: sha512-nCZ93Sw6pitlh9VMKeLUecQbDpyHzX5jzpSUxPR/VWgAeKs9MJpnWhjdfm9Skq1CSDUv58OLTZeh3p/WnXCvFw==} '@reown/appkit-ui@1.7.8': resolution: {integrity: sha512-1hjCKjf6FLMFzrulhl0Y9Vb9Fu4royE+SXCPSWh4VhZhWqlzUFc7kutnZKx8XZFVQH4pbBvY62SpRC93gqoHow==} - '@reown/appkit-utils@1.7.13': - resolution: {integrity: sha512-0BBtGLXEONLaGFThnbQ18CxNY9KOxbHIeG9rVIiSvHzyvCn2KIAtKHcJxIJfcz/1UQpMHq4BHMV4sqejvrBJGA==} + '@reown/appkit-utils@1.7.16': + resolution: {integrity: sha512-dQ/bGp07V2WyhAF8xYFPATYZqwJoM2jvApARZ6j7OxgkfdO+7gBK6Shx87Bo4Zm5uSaxv+n5CBc7eTuouz3Bog==} peerDependencies: valtio: 2.1.5 @@ -5338,14 +5557,14 @@ packages: peerDependencies: valtio: 1.13.2 - '@reown/appkit-wallet@1.7.13': - resolution: {integrity: sha512-E8/jwahY8CKlnzadF3+ZFeMpxnlnBOKHzHXEsibCUeR5dzohEai1qEIkV81rArmhm4RB+0p5JM+/eYlIB8h7YQ==} + '@reown/appkit-wallet@1.7.16': + resolution: {integrity: sha512-ROKU/X/eFlQbxarIbCUp54Ky+6oEmoexdRq9i09bGuAfZUbfxRPzgR+4RZ41g4zRRtILTBrPZ6RSJDFslpIv7w==} '@reown/appkit-wallet@1.7.8': resolution: {integrity: sha512-kspz32EwHIOT/eg/ZQbFPxgXq0B/olDOj3YMu7gvLEFz4xyOFd/wgzxxAXkp5LbG4Cp++s/elh79rVNmVFdB9A==} - '@reown/appkit@1.7.13': - resolution: {integrity: sha512-/9gvKTS3nuDU7K7PPxgPTS0zyPguPxM/v1szKdXvuBaq/P9GbsL3U9WoxBj7+6crGGjr9Dub3QwSt0iWyvPSnw==} + '@reown/appkit@1.7.16': + resolution: {integrity: sha512-sRKoEs0Hn6CBMm5th+d4BSYR9aTNxdDAHBDvH8/gu3UaYaj2tQa3XPKkEzbbHRmjKWMHD0vf0LSOvFeMDV7fkA==} '@reown/appkit@1.7.8': resolution: {integrity: sha512-51kTleozhA618T1UvMghkhKfaPcc9JlKwLJ5uV+riHyvSoWPKPRIa5A6M1Wano5puNyW0s3fwywhyqTHSilkaA==} @@ -5361,8 +5580,8 @@ packages: resolution: {integrity: sha512-C7c51Nn4yTxXFKvgh2txJFNweaVcfUPQxwEUFw4aWsCmfiBDJsTSwviIF8EcwjQ6k8bPyMWCl1vw4BdxE569Cg==} engines: {node: '>= 10'} - '@rolldown/pluginutils@1.0.0-beta.19': - resolution: {integrity: sha512-3FL3mnMbPu0muGOCaKAhhFEYmqv9eTfPSJRJmANrCwtgK8VuxpsZDGK+m0LYAGoyO8+0j5uRe4PeyPDK1yA/hA==} + '@rolldown/pluginutils@1.0.0-beta.27': + resolution: {integrity: sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==} '@rollup/plugin-commonjs@28.0.1': resolution: {integrity: sha512-+tNWdlWKbpB3WgBN7ijjYkq9X5uhjmcvyjEght4NmH5fAU++zfQzAJ6wumLS+dNcvwEZhKx2Z+skY8m7v0wGSA==} @@ -5387,8 +5606,8 @@ packages: cpu: [arm] os: [android] - '@rollup/rollup-android-arm-eabi@4.44.1': - resolution: {integrity: sha512-JAcBr1+fgqx20m7Fwe1DxPUl/hPkee6jA6Pl7n1v2EFiktAHenTaXl5aIFjUIEsfn9w3HE4gK1lEgNGMzBDs1w==} + '@rollup/rollup-android-arm-eabi@4.45.1': + resolution: {integrity: sha512-NEySIFvMY0ZQO+utJkgoMiCAjMrGvnbDLHvcmlA33UXJpYBCvlBEbMMtV837uCkS+plG2umfhn0T5mMAxGrlRA==} cpu: [arm] os: [android] @@ -5397,8 +5616,8 @@ packages: cpu: [arm64] os: [android] - '@rollup/rollup-android-arm64@4.44.1': - resolution: {integrity: sha512-RurZetXqTu4p+G0ChbnkwBuAtwAbIwJkycw1n6GvlGlBuS4u5qlr5opix8cBAYFJgaY05TWtM+LaoFggUmbZEQ==} + '@rollup/rollup-android-arm64@4.45.1': + resolution: {integrity: sha512-ujQ+sMXJkg4LRJaYreaVx7Z/VMgBBd89wGS4qMrdtfUFZ+TSY5Rs9asgjitLwzeIbhwdEhyj29zhst3L1lKsRQ==} cpu: [arm64] os: [android] @@ -5407,8 +5626,8 @@ packages: cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-arm64@4.44.1': - resolution: {integrity: sha512-fM/xPesi7g2M7chk37LOnmnSTHLG/v2ggWqKj3CCA1rMA4mm5KVBT1fNoswbo1JhPuNNZrVwpTvlCVggv8A2zg==} + '@rollup/rollup-darwin-arm64@4.45.1': + resolution: {integrity: sha512-FSncqHvqTm3lC6Y13xncsdOYfxGSLnP+73k815EfNmpewPs+EyM49haPS105Rh4aF5mJKywk9X0ogzLXZzN9lA==} cpu: [arm64] os: [darwin] @@ -5417,8 +5636,8 @@ packages: cpu: [x64] os: [darwin] - '@rollup/rollup-darwin-x64@4.44.1': - resolution: {integrity: sha512-gDnWk57urJrkrHQ2WVx9TSVTH7lSlU7E3AFqiko+bgjlh78aJ88/3nycMax52VIVjIm3ObXnDL2H00e/xzoipw==} + '@rollup/rollup-darwin-x64@4.45.1': + resolution: {integrity: sha512-2/vVn/husP5XI7Fsf/RlhDaQJ7x9zjvC81anIVbr4b/f0xtSmXQTFcGIQ/B1cXIYM6h2nAhJkdMHTnD7OtQ9Og==} cpu: [x64] os: [darwin] @@ -5427,8 +5646,8 @@ packages: cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-arm64@4.44.1': - resolution: {integrity: sha512-wnFQmJ/zPThM5zEGcnDcCJeYJgtSLjh1d//WuHzhf6zT3Md1BvvhJnWoy+HECKu2bMxaIcfWiu3bJgx6z4g2XA==} + '@rollup/rollup-freebsd-arm64@4.45.1': + resolution: {integrity: sha512-4g1kaDxQItZsrkVTdYQ0bxu4ZIQ32cotoQbmsAnW1jAE4XCMbcBPDirX5fyUzdhVCKgPcrwWuucI8yrVRBw2+g==} cpu: [arm64] os: [freebsd] @@ -5437,8 +5656,8 @@ packages: cpu: [x64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.44.1': - resolution: {integrity: sha512-uBmIxoJ4493YATvU2c0upGz87f99e3wop7TJgOA/bXMFd2SvKCI7xkxY/5k50bv7J6dw1SXT4MQBQSLn8Bb/Uw==} + '@rollup/rollup-freebsd-x64@4.45.1': + resolution: {integrity: sha512-L/6JsfiL74i3uK1Ti2ZFSNsp5NMiM4/kbbGEcOCps99aZx3g8SJMO1/9Y0n/qKlWZfn6sScf98lEOUe2mBvW9A==} cpu: [x64] os: [freebsd] @@ -5447,8 +5666,8 @@ packages: cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-gnueabihf@4.44.1': - resolution: {integrity: sha512-n0edDmSHlXFhrlmTK7XBuwKlG5MbS7yleS1cQ9nn4kIeW+dJH+ExqNgQ0RrFRew8Y+0V/x6C5IjsHrJmiHtkxQ==} + '@rollup/rollup-linux-arm-gnueabihf@4.45.1': + resolution: {integrity: sha512-RkdOTu2jK7brlu+ZwjMIZfdV2sSYHK2qR08FUWcIoqJC2eywHbXr0L8T/pONFwkGukQqERDheaGTeedG+rra6Q==} cpu: [arm] os: [linux] @@ -5457,8 +5676,8 @@ packages: cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.44.1': - resolution: {integrity: sha512-8WVUPy3FtAsKSpyk21kV52HCxB+me6YkbkFHATzC2Yd3yuqHwy2lbFL4alJOLXKljoRw08Zk8/xEj89cLQ/4Nw==} + '@rollup/rollup-linux-arm-musleabihf@4.45.1': + resolution: {integrity: sha512-3kJ8pgfBt6CIIr1o+HQA7OZ9mp/zDk3ctekGl9qn/pRBgrRgfwiffaUmqioUGN9hv0OHv2gxmvdKOkARCtRb8Q==} cpu: [arm] os: [linux] @@ -5467,8 +5686,8 @@ packages: cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.44.1': - resolution: {integrity: sha512-yuktAOaeOgorWDeFJggjuCkMGeITfqvPgkIXhDqsfKX8J3jGyxdDZgBV/2kj/2DyPaLiX6bPdjJDTu9RB8lUPQ==} + '@rollup/rollup-linux-arm64-gnu@4.45.1': + resolution: {integrity: sha512-k3dOKCfIVixWjG7OXTCOmDfJj3vbdhN0QYEqB+OuGArOChek22hn7Uy5A/gTDNAcCy5v2YcXRJ/Qcnm4/ma1xw==} cpu: [arm64] os: [linux] @@ -5477,8 +5696,8 @@ packages: cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.44.1': - resolution: {integrity: sha512-W+GBM4ifET1Plw8pdVaecwUgxmiH23CfAUj32u8knq0JPFyK4weRy6H7ooxYFD19YxBulL0Ktsflg5XS7+7u9g==} + '@rollup/rollup-linux-arm64-musl@4.45.1': + resolution: {integrity: sha512-PmI1vxQetnM58ZmDFl9/Uk2lpBBby6B6rF4muJc65uZbxCs0EA7hhKCk2PKlmZKuyVSHAyIw3+/SiuMLxKxWog==} cpu: [arm64] os: [linux] @@ -5487,8 +5706,8 @@ packages: cpu: [loong64] os: [linux] - '@rollup/rollup-linux-loongarch64-gnu@4.44.1': - resolution: {integrity: sha512-1zqnUEMWp9WrGVuVak6jWTl4fEtrVKfZY7CvcBmUUpxAJ7WcSowPSAWIKa/0o5mBL/Ij50SIf9tuirGx63Ovew==} + '@rollup/rollup-linux-loongarch64-gnu@4.45.1': + resolution: {integrity: sha512-9UmI0VzGmNJ28ibHW2GpE2nF0PBQqsyiS4kcJ5vK+wuwGnV5RlqdczVocDSUfGX/Na7/XINRVoUgJyFIgipoRg==} cpu: [loong64] os: [linux] @@ -5497,8 +5716,8 @@ packages: cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.44.1': - resolution: {integrity: sha512-Rl3JKaRu0LHIx7ExBAAnf0JcOQetQffaw34T8vLlg9b1IhzcBgaIdnvEbbsZq9uZp3uAH+JkHd20Nwn0h9zPjA==} + '@rollup/rollup-linux-powerpc64le-gnu@4.45.1': + resolution: {integrity: sha512-7nR2KY8oEOUTD3pBAxIBBbZr0U7U+R9HDTPNy+5nVVHDXI4ikYniH1oxQz9VoB5PbBU1CZuDGHkLJkd3zLMWsg==} cpu: [ppc64] os: [linux] @@ -5507,13 +5726,13 @@ packages: cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.44.1': - resolution: {integrity: sha512-j5akelU3snyL6K3N/iX7otLBIl347fGwmd95U5gS/7z6T4ftK288jKq3A5lcFKcx7wwzb5rgNvAg3ZbV4BqUSw==} + '@rollup/rollup-linux-riscv64-gnu@4.45.1': + resolution: {integrity: sha512-nlcl3jgUultKROfZijKjRQLUu9Ma0PeNv/VFHkZiKbXTBQXhpytS8CIj5/NfBeECZtY2FJQubm6ltIxm/ftxpw==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-riscv64-musl@4.44.1': - resolution: {integrity: sha512-ppn5llVGgrZw7yxbIm8TTvtj1EoPgYUAbfw0uDjIOzzoqlZlZrLJ/KuiE7uf5EpTpCTrNt1EdtzF0naMm0wGYg==} + '@rollup/rollup-linux-riscv64-musl@4.45.1': + resolution: {integrity: sha512-HJV65KLS51rW0VY6rvZkiieiBnurSzpzore1bMKAhunQiECPuxsROvyeaot/tcK3A3aGnI+qTHqisrpSgQrpgA==} cpu: [riscv64] os: [linux] @@ -5522,8 +5741,8 @@ packages: cpu: [s390x] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.44.1': - resolution: {integrity: sha512-Hu6hEdix0oxtUma99jSP7xbvjkUM/ycke/AQQ4EC5g7jNRLLIwjcNwaUy95ZKBJJwg1ZowsclNnjYqzN4zwkAw==} + '@rollup/rollup-linux-s390x-gnu@4.45.1': + resolution: {integrity: sha512-NITBOCv3Qqc6hhwFt7jLV78VEO/il4YcBzoMGGNxznLgRQf43VQDae0aAzKiBeEPIxnDrACiMgbqjuihx08OOw==} cpu: [s390x] os: [linux] @@ -5532,8 +5751,8 @@ packages: cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.44.1': - resolution: {integrity: sha512-EtnsrmZGomz9WxK1bR5079zee3+7a+AdFlghyd6VbAjgRJDbTANJ9dcPIPAi76uG05micpEL+gPGmAKYTschQw==} + '@rollup/rollup-linux-x64-gnu@4.45.1': + resolution: {integrity: sha512-+E/lYl6qu1zqgPEnTrs4WysQtvc/Sh4fC2nByfFExqgYrqkKWp1tWIbe+ELhixnenSpBbLXNi6vbEEJ8M7fiHw==} cpu: [x64] os: [linux] @@ -5542,8 +5761,8 @@ packages: cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.44.1': - resolution: {integrity: sha512-iAS4p+J1az6Usn0f8xhgL4PaU878KEtutP4hqw52I4IO6AGoyOkHCxcc4bqufv1tQLdDWFx8lR9YlwxKuv3/3g==} + '@rollup/rollup-linux-x64-musl@4.45.1': + resolution: {integrity: sha512-a6WIAp89p3kpNoYStITT9RbTbTnqarU7D8N8F2CV+4Cl9fwCOZraLVuVFvlpsW0SbIiYtEnhCZBPLoNdRkjQFw==} cpu: [x64] os: [linux] @@ -5552,8 +5771,8 @@ packages: cpu: [arm64] os: [win32] - '@rollup/rollup-win32-arm64-msvc@4.44.1': - resolution: {integrity: sha512-NtSJVKcXwcqozOl+FwI41OH3OApDyLk3kqTJgx8+gp6On9ZEt5mYhIsKNPGuaZr3p9T6NWPKGU/03Vw4CNU9qg==} + '@rollup/rollup-win32-arm64-msvc@4.45.1': + resolution: {integrity: sha512-T5Bi/NS3fQiJeYdGvRpTAP5P02kqSOpqiopwhj0uaXB6nzs5JVi2XMJb18JUSKhCOX8+UE1UKQufyD6Or48dJg==} cpu: [arm64] os: [win32] @@ -5562,8 +5781,8 @@ packages: cpu: [ia32] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.44.1': - resolution: {integrity: sha512-JYA3qvCOLXSsnTR3oiyGws1Dm0YTuxAAeaYGVlGpUsHqloPcFjPg+X0Fj2qODGLNwQOAcCiQmHub/V007kiH5A==} + '@rollup/rollup-win32-ia32-msvc@4.45.1': + resolution: {integrity: sha512-lxV2Pako3ujjuUe9jiU3/s7KSrDfH6IgTSQOnDWr9aJ92YsFd7EurmClK0ly/t8dzMkDtd04g60WX6yl0sGfdw==} cpu: [ia32] os: [win32] @@ -5572,8 +5791,8 @@ packages: cpu: [x64] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.44.1': - resolution: {integrity: sha512-J8o22LuF0kTe7m+8PvW9wk3/bRq5+mRo5Dqo6+vXb7otCm3TPhYOJqOaQtGU9YMWQSL3krMnoOxMr0+9E6F3Ug==} + '@rollup/rollup-win32-x64-msvc@4.45.1': + resolution: {integrity: sha512-M/fKi4sasCdM8i0aWJjCSFm2qEnYRR8AMLG2kxp6wD13+tMGA4Z1tVAuHkNRjud5SW2EM3naLuK35w9twvf6aA==} cpu: [x64] os: [win32] @@ -5938,8 +6157,8 @@ packages: resolution: {integrity: sha512-8olpW6mKCa0v+ibCjoCzgZHQx1SQmZuW/WkrdZo73wiTprTH6qhmskT60QLFdT9DRa5mXxjz89kQPZ7ZSsoqqg==} engines: {node: '>=16.0.0'} - '@smithy/core@3.6.0': - resolution: {integrity: sha512-Pgvfb+TQ4wUNLyHzvgCP4aYZMh16y7GcfF59oirRHcgGgkH1e/s9C0nv/v3WP+Quymyr5je71HeFQCwh+44XLg==} + '@smithy/core@3.7.2': + resolution: {integrity: sha512-JoLw59sT5Bm8SAjFCYZyuCGxK8y3vovmoVbZWLDPTH5XpPEIwpFd9m90jjVMwoypDuB/SdVgje5Y4T7w50lJaw==} engines: {node: '>=18.0.0'} '@smithy/credential-provider-imds@3.2.8': @@ -5975,8 +6194,8 @@ packages: '@smithy/fetch-http-handler@4.1.3': resolution: {integrity: sha512-6SxNltSncI8s689nvnzZQc/dPXcpHQ34KUj6gR/HBroytKOd/isMG3gJF/zBE1TBmTT18TXyzhg3O3SOOqGEhA==} - '@smithy/fetch-http-handler@5.0.4': - resolution: {integrity: sha512-AMtBR5pHppYMVD7z7G+OlHHAcgAN7v0kVKEpHuTO4Gb199Gowh0taYi9oDStFeUhetkeP55JLSVlTW1n9rFtUw==} + '@smithy/fetch-http-handler@5.1.0': + resolution: {integrity: sha512-mADw7MS0bYe2OGKkHYMaqarOXuDwRbO6ArD91XhHcl2ynjGCFF+hvqf0LyQcYxkA1zaWjefSkU7Ne9mqgApSgQ==} engines: {node: '>=18.0.0'} '@smithy/hash-node@3.0.11': @@ -6018,16 +6237,16 @@ packages: resolution: {integrity: sha512-OEJZKVUEhMOqMs3ktrTWp7UvvluMJEvD5XgQwRePSbDg1VvBaL8pX8mwPltFn6wk1GySbcVwwyldL8S+iqnrEQ==} engines: {node: '>=16.0.0'} - '@smithy/middleware-endpoint@4.1.13': - resolution: {integrity: sha512-xg3EHV/Q5ZdAO5b0UiIMj3RIOCobuS40pBBODguUDVdko6YK6QIzCVRrHTogVuEKglBWqWenRnZ71iZnLL3ZAQ==} + '@smithy/middleware-endpoint@4.1.17': + resolution: {integrity: sha512-S3hSGLKmHG1m35p/MObQCBCdRsrpbPU8B129BVzRqRfDvQqPMQ14iO4LyRw+7LNizYc605COYAcjqgawqi+6jA==} engines: {node: '>=18.0.0'} '@smithy/middleware-retry@3.0.34': resolution: {integrity: sha512-yVRr/AAtPZlUvwEkrq7S3x7Z8/xCd97m2hLDaqdz6ucP2RKHsBjEqaUA2ebNv2SsZoPEi+ZD0dZbOB1u37tGCA==} engines: {node: '>=16.0.0'} - '@smithy/middleware-retry@4.1.14': - resolution: {integrity: sha512-eoXaLlDGpKvdmvt+YBfRXE7HmIEtFF+DJCbTPwuLunP0YUnrydl+C4tS+vEM0+nyxXrX3PSUFqC+lP1+EHB1Tw==} + '@smithy/middleware-retry@4.1.18': + resolution: {integrity: sha512-bYLZ4DkoxSsPxpdmeapvAKy7rM5+25gR7PGxq2iMiecmbrRGBHj9s75N74Ylg+aBiw9i5jIowC/cLU2NR0qH8w==} engines: {node: '>=18.0.0'} '@smithy/middleware-serde@3.0.11': @@ -6058,8 +6277,8 @@ packages: resolution: {integrity: sha512-BrpZOaZ4RCbcJ2igiSNG16S+kgAc65l/2hmxWdmhyoGWHTLlzQzr06PXavJp9OBlPEG/sHlqdxjWmjzV66+BSQ==} engines: {node: '>=16.0.0'} - '@smithy/node-http-handler@4.0.6': - resolution: {integrity: sha512-NqbmSz7AW2rvw4kXhKGrYTiJVDHnMsFnX4i+/FzcZAfbOBauPYs2ekuECkSbtqaxETLLTu9Rl/ex6+I2BKErPA==} + '@smithy/node-http-handler@4.1.0': + resolution: {integrity: sha512-vqfSiHz2v8b3TTTrdXi03vNz1KLYYS3bhHCDv36FYDqxT7jvTll1mMnCrkD+gOvgwybuunh/2VmvOMqwBegxEg==} engines: {node: '>=18.0.0'} '@smithy/property-provider@3.1.11': @@ -6122,8 +6341,8 @@ packages: resolution: {integrity: sha512-9wYrjAZFlqWhgVo3C4y/9kpc68jgiSsKUnsFPzr/MSiRL93+QRDafGTfhhKAb2wsr69Ru87WTiqSfQusSmWipA==} engines: {node: '>=16.0.0'} - '@smithy/smithy-client@4.4.5': - resolution: {integrity: sha512-+lynZjGuUFJaMdDYSTMnP/uPBBXXukVfrJlP+1U/Dp5SFTEI++w6NMga8DjOENxecOF71V9Z2DllaVDYRnGlkg==} + '@smithy/smithy-client@4.4.9': + resolution: {integrity: sha512-mbMg8mIUAWwMmb74LoYiArP04zWElPzDoA1jVOp3or0cjlDMgoS6WTC3QXK0Vxoc9I4zdrX0tq6qsOmaIoTWEQ==} engines: {node: '>=18.0.0'} '@smithy/types@3.7.2': @@ -6188,16 +6407,16 @@ packages: resolution: {integrity: sha512-FumjjF631lR521cX+svMLBj3SwSDh9VdtyynTYDAiBDEf8YPP5xORNXKQ9j0105o5+ARAGnOOP/RqSl40uXddA==} engines: {node: '>= 10.0.0'} - '@smithy/util-defaults-mode-browser@4.0.21': - resolution: {integrity: sha512-wM0jhTytgXu3wzJoIqpbBAG5U6BwiubZ6QKzSbP7/VbmF1v96xlAbX2Am/mz0Zep0NLvLh84JT0tuZnk3wmYQA==} + '@smithy/util-defaults-mode-browser@4.0.25': + resolution: {integrity: sha512-pxEWsxIsOPLfKNXvpgFHBGFC3pKYKUFhrud1kyooO9CJai6aaKDHfT10Mi5iiipPXN/JhKAu3qX9o75+X85OdQ==} engines: {node: '>=18.0.0'} '@smithy/util-defaults-mode-node@3.0.34': resolution: {integrity: sha512-vN6aHfzW9dVVzkI0wcZoUXvfjkl4CSbM9nE//08lmUMyf00S75uuCpTrqF9uD4bD9eldIXlt53colrlwKAT8Gw==} engines: {node: '>= 10.0.0'} - '@smithy/util-defaults-mode-node@4.0.21': - resolution: {integrity: sha512-/F34zkoU0GzpUgLJydHY8Rxu9lBn8xQC/s/0M0U9lLBkYbA1htaAFjWYJzpzsbXPuri5D1H8gjp2jBum05qBrA==} + '@smithy/util-defaults-mode-node@4.0.25': + resolution: {integrity: sha512-+w4n4hKFayeCyELZLfsSQG5mCC3TwSkmRHv4+el5CzFU8ToQpYGhpV7mrRzqlwKkntlPilT1HJy1TVeEvEjWOQ==} engines: {node: '>=18.0.0'} '@smithy/util-endpoints@2.1.7': @@ -6236,8 +6455,8 @@ packages: resolution: {integrity: sha512-SGhGBG/KupieJvJSZp/rfHHka8BFgj56eek9px4pp7lZbOF+fRiVr4U7A3y3zJD8uGhxq32C5D96HxsTC9BckQ==} engines: {node: '>=16.0.0'} - '@smithy/util-stream@4.2.2': - resolution: {integrity: sha512-aI+GLi7MJoVxg24/3J1ipwLoYzgkB4kUfogZfnslcYlynj3xsQ0e7vk4TnTro9hhsS5PvX1mwmkRqqHQjwcU7w==} + '@smithy/util-stream@4.2.3': + resolution: {integrity: sha512-cQn412DWHHFNKrQfbHY8vSFI3nTROY1aIKji9N0tpp8gUABRilr7wdf8fqBbSlXresobM+tQFNk6I+0LXK/YZg==} engines: {node: '>=18.0.0'} '@smithy/util-uri-escape@3.0.0': @@ -6271,20 +6490,20 @@ packages: resolution: {integrity: sha512-E1ImOIAD1tBZFRdjeM4/pzTiTApC0AOBGwyAMS4fwIodCWArzJ3DWdoh8cKxeFM2fElkxBh2Aqts1BPC373rHA==} engines: {node: '>=5.10'} - '@solana/codecs-core@2.1.1': - resolution: {integrity: sha512-iPQW3UZ2Vi7QFBo2r9tw0NubtH8EdrhhmZulx6lC8V5a+qjaxovtM/q/UW2BTNpqqHLfO0tIcLyBLrNH4HTWPg==} + '@solana/codecs-core@2.3.0': + resolution: {integrity: sha512-oG+VZzN6YhBHIoSKgS5ESM9VIGzhWjEHEGNPSibiDTxFhsFWxNaz8LbMDPjBUE69r9wmdGLkrQ+wVPbnJcZPvw==} engines: {node: '>=20.18.0'} peerDependencies: typescript: '>=5.3.3' - '@solana/codecs-numbers@2.1.1': - resolution: {integrity: sha512-m20IUPJhPUmPkHSlZ2iMAjJ7PaYUvlMtFhCQYzm9BEBSI6OCvXTG3GAPpAnSGRBfg5y+QNqqmKn4QHU3B6zzCQ==} + '@solana/codecs-numbers@2.3.0': + resolution: {integrity: sha512-jFvvwKJKffvG7Iz9dmN51OGB7JBcy2CJ6Xf3NqD/VP90xak66m/Lg48T01u5IQ/hc15mChVHiBm+HHuOFDUrQg==} engines: {node: '>=20.18.0'} peerDependencies: typescript: '>=5.3.3' - '@solana/errors@2.1.1': - resolution: {integrity: sha512-sj6DaWNbSJFvLzT8UZoabMefQUfSW/8tXK7NTiagsDmh+Q87eyQDDC9L3z+mNmx9b6dEf6z660MOIplDD2nfEw==} + '@solana/errors@2.3.0': + resolution: {integrity: sha512-66RI9MAbwYV0UtP7kGcTBVLxJgUxoZGm8Fbc0ah+lGiAw17Gugco6+9GrJCV83VyF2mDWyYnYM9qdI3yjgpnaQ==} engines: {node: '>=20.18.0'} hasBin: true peerDependencies: @@ -6631,6 +6850,9 @@ packages: '@tryghost/content-api@1.11.28': resolution: {integrity: sha512-OKOnwpLOZEBi24Sbe5zPznNRWX9bmC9lbEfuhbB/2tnxAUAYxZvr9zLenJr7Wzz1CWZW93pqAdTo51m2lIIx3Q==} + '@tybys/wasm-util@0.10.0': + resolution: {integrity: sha512-VyyPYFlOMNylG45GoAe0xDoLwWuowvf92F9kySqzYh8vmYm7D2u4iUJKa1tOUpS70Ku13ASrOkS4ScXFsTaCNQ==} + '@tybys/wasm-util@0.9.0': resolution: {integrity: sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw==} @@ -6792,20 +7014,20 @@ packages: '@types/mdx@2.0.13': resolution: {integrity: sha512-+OWZQfAYyio6YkJb3HLxDrvnx6SWWDbC0zVPfBRzUk0/nqoDyf6dNxQi3eArPe8rJ473nobTMQ/8Zk+LxJ+Yuw==} - '@types/ms@0.7.34': - resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} + '@types/ms@2.1.0': + resolution: {integrity: sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==} '@types/mysql@2.15.26': resolution: {integrity: sha512-DSLCOXhkvfS5WNNPbfn2KdICAmk8lLc+/PNvnPnF7gOdMZCxopXduqv0OQ13y/yA/zXTSikZZqVgybUxOEg6YQ==} - '@types/node-forge@1.3.11': - resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} + '@types/node-forge@1.3.13': + resolution: {integrity: sha512-zePQJSW5QkwSHKRApqWCVKeKoSOt4xvEnLENZPjyvm9Ezdf/EyDeJM7jqLzOwjVICQQzvLZ63T55MKdJB5H6ww==} '@types/node@12.20.55': resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==} - '@types/node@20.19.4': - resolution: {integrity: sha512-OP+We5WV8Xnbuvw0zC2m4qfB/BJvjyCwtNjhHdJxV1639SGSKrLmJkc3fMnp2Qy8nJyHp8RO6umxELN/dS1/EA==} + '@types/node@20.19.9': + resolution: {integrity: sha512-cuVNgarYWZqxRJDQHEB58GEONhOK79QVR/qYx4S7kcUObQvUwvFnYxJuuHUKm2aieN9X3yZB4LZsuYNU1Qphsw==} '@types/node@22.14.1': resolution: {integrity: sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==} @@ -6813,8 +7035,8 @@ packages: '@types/node@22.7.5': resolution: {integrity: sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==} - '@types/node@24.0.10': - resolution: {integrity: sha512-ENHwaH+JIRTDIEEbDK6QSQntAYGtbvdDXnMXnZaZ6k13Du1dPMmprkEHIL7ok2Wl2aZevetwTAb5S+7yIF+enA==} + '@types/node@24.1.0': + resolution: {integrity: sha512-ut5FthK5moxFKH2T1CUOC6ctR67rQRvvHdFLCD2Ql6KXmMuCrjsSsRI9UsLCm9M18BMwClv4pn327UvB7eeO1w==} '@types/papaparse@5.3.16': resolution: {integrity: sha512-T3VuKMC2H0lgsjI9buTB3uuKj3EMD2eap1MOuEQuBQ44EnDx/IkGhU6EwiTf9zG3za4SKlmwKAImdDKdNnCsXg==} @@ -7168,11 +7390,11 @@ packages: '@viem/anvil@0.0.10': resolution: {integrity: sha512-9PzYXBRikfSUhhm8Bd0avv07agwcbMJ5FaSu2D2vbE0cxkvXGtolL3fW5nz2yefMqOqVQL4XzfM5nwY81x3ytw==} - '@vitejs/plugin-react@4.6.0': - resolution: {integrity: sha512-5Kgff+m8e2PB+9j51eGHEpn5kUzRKH2Ry0qGoe8ItJg7pqnkPrYPkDQZGgGmTa0EGarHrkjLvOdU3b1fzI8otQ==} + '@vitejs/plugin-react@4.7.0': + resolution: {integrity: sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: - vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0-beta.0 + vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 '@vitest/coverage-v8@3.2.4': resolution: {integrity: sha512-EyF9SXU6kS5Ku/U82E259WSnvg6c8KTjppUncuNdm5QHpe17mwREHnjDzozC8x9MZ0xfBUFSaLkRv4TMA75ALQ==} @@ -7362,14 +7584,14 @@ packages: resolution: {integrity: sha512-Tp4MHJYcdWD846PH//2r+Mu4wz1/ZU/fr9av1UWFiaYQ2t2TPLDiZxjLw54AAEpMqlEHemwCgiRiAmjR1NDdTQ==} engines: {node: '>=18'} - '@walletconnect/core@2.21.3': - resolution: {integrity: sha512-kMjo5bI6VOsFe/DmxgeTMxCdAIfSzUzG8kCDrpxUXrTnMgaU4H2JBW+tGn7KP/YY1x49+lErZsN5JiQsE5n6Rw==} - engines: {node: '>=18'} - '@walletconnect/core@2.21.4': resolution: {integrity: sha512-XtwPUCj3bCNX/2yjYGlQyvcsn32wkzixCjyWOD4pdKFVk7opZPAdF4xr85rmo6nJ7AiBYxjV1IH0bemTPEdE6Q==} engines: {node: '>=18'} + '@walletconnect/core@2.21.5': + resolution: {integrity: sha512-CxGbio1TdCkou/TYn8X6Ih1mUX3UtFTk+t618/cIrT3VX5IjQW09n9I/pVafr7bQbBtm9/ATr7ugUEMrLu5snA==} + engines: {node: '>=18'} + '@walletconnect/environment@1.0.1': resolution: {integrity: sha512-T426LLZtHj8e8rYnKfzsw1aG6+M0BT1ZxayMdv/p8yM0MU+eJDISqNY3/bccxRr4LrF9csq02Rhqt08Ibl0VRg==} @@ -7453,12 +7675,12 @@ packages: '@walletconnect/sign-client@2.21.1': resolution: {integrity: sha512-QaXzmPsMnKGV6tc4UcdnQVNOz4zyXgarvdIQibJ4L3EmLat73r5ZVl4c0cCOcoaV7rgM9Wbphgu5E/7jNcd3Zg==} - '@walletconnect/sign-client@2.21.3': - resolution: {integrity: sha512-Z6sTCBrset7u5CNjPWlqQuWxmLL2WlGLZYKoB7g/Nvg8wLWo0VaaNeTtNsuopLfJeqdV9/4nV/qHE4xXs2nMIQ==} - '@walletconnect/sign-client@2.21.4': resolution: {integrity: sha512-v1OJ9IQCZAqaDEUYGFnGLe2fSp8DN9cv7j8tUYm5ngiFK7h6LjP4Ew3gGCca4AHWzMFkHuIRNQ+6Ypep1K/B7g==} + '@walletconnect/sign-client@2.21.5': + resolution: {integrity: sha512-IAs/IqmE1HVL9EsvqkNRU4NeAYe//h9NwqKi7ToKYZv4jhcC3BBemUD1r8iQJSTHMhO41EKn1G9/DiBln3ZiwQ==} + '@walletconnect/time@1.0.2': resolution: {integrity: sha512-uzdd9woDcJ1AaBZRhqy5rNC9laqWGErfc4dxA9a87mPdKOgWMD85mcFo9dIYIts/Jwocfwn07EC6EzclKubk/g==} @@ -7474,12 +7696,12 @@ packages: '@walletconnect/types@2.21.1': resolution: {integrity: sha512-UeefNadqP6IyfwWC1Yi7ux+ljbP2R66PLfDrDm8izmvlPmYlqRerJWJvYO4t0Vvr9wrG4Ko7E0c4M7FaPKT/sQ==} - '@walletconnect/types@2.21.3': - resolution: {integrity: sha512-4fDchSb6q/YIuUokaIvp+/tpWtmiL+dOWuKUCq0+w81R0unsQzn4Zc57Xh+TkNAlBGSJmZ44ZQPevN4vaTnjwg==} - '@walletconnect/types@2.21.4': resolution: {integrity: sha512-6O61esDSW8FZNdFezgB4bX2S35HM6tCwBEjGHNB8JeoKCfpXG33hw2raU/SBgBL/jmM57QRW4M1aFH7v1u9z7g==} + '@walletconnect/types@2.21.5': + resolution: {integrity: sha512-kpTXbenKeMdaz6mgMN/jKaHHbu6mdY3kyyrddzE/mthOd2KLACVrZr7hrTf+Fg2coPVen5d1KKyQjyECEdzOCw==} + '@walletconnect/universal-provider@2.19.2': resolution: {integrity: sha512-LkKg+EjcSUpPUhhvRANgkjPL38wJPIWumAYD8OK/g4OFuJ4W3lS/XTCKthABQfFqmiNbNbVllmywiyE44KdpQg==} @@ -7489,12 +7711,12 @@ packages: '@walletconnect/universal-provider@2.21.1': resolution: {integrity: sha512-Wjx9G8gUHVMnYfxtasC9poGm8QMiPCpXpbbLFT+iPoQskDDly8BwueWnqKs4Mx2SdIAWAwuXeZ5ojk5qQOxJJg==} - '@walletconnect/universal-provider@2.21.3': - resolution: {integrity: sha512-Tlkfbtp5oNvSb9yEUl3Fxs0A1y8kLbGJOq7F3zyjVu2EvG96cMqqmlYlPRsi55VDn3scmw8zr2zN+BMsMAuDPw==} - '@walletconnect/universal-provider@2.21.4': resolution: {integrity: sha512-ZSYU5H7Zi/nEy3L21kw5l3ovMagrbXDRKBG8vjPpGQAkflQocRj6d0SesFOCBEdJS16nt+6dKI2f5blpOGzyTQ==} + '@walletconnect/universal-provider@2.21.5': + resolution: {integrity: sha512-SMXGGXyj78c8Ru2f665ZFZU24phn0yZyCP5Ej7goxVQxABwqWKM/odj3j/IxZv+hxA8yU13yxaubgVefnereqw==} + '@walletconnect/utils@2.19.2': resolution: {integrity: sha512-VU5CcUF4sZDg8a2/ov29OJzT3KfLuZqJUM0GemW30dlipI5fkpb0VPenZK7TcdLPXc1LN+Q+7eyTqHRoAu/BIA==} @@ -7507,12 +7729,12 @@ packages: '@walletconnect/utils@2.21.1': resolution: {integrity: sha512-VPZvTcrNQCkbGOjFRbC24mm/pzbRMUq2DSQoiHlhh0X1U7ZhuIrzVtAoKsrzu6rqjz0EEtGxCr3K1TGRqDG4NA==} - '@walletconnect/utils@2.21.3': - resolution: {integrity: sha512-LHxYX69vG7aPCQB9YT1F8ibwAfRNYwqCEBMplrmquAX+l4lMHTpXvsFF/a5NWFT23DKzbWZ4VTfQTDZ//XJKpg==} - '@walletconnect/utils@2.21.4': resolution: {integrity: sha512-LuSyBXvRLiDqIu4uMFei5eJ/WPhkIkdW58fmDlRnryatIuBPCho3dlrNSbOjVSdsID+OvxjOlpPLi+5h4oTbaA==} + '@walletconnect/utils@2.21.5': + resolution: {integrity: sha512-RSPSxPvGMuvfGhd5au1cf9cmHB/KVVLFotJR9ltisjFABGtH2215U5oaVp+a7W18QX37aemejRkvacqOELVySA==} + '@walletconnect/window-getters@1.0.1': resolution: {integrity: sha512-vHp+HqzGxORPAN8gY03qnbTMnhqIwjeRJNOMOAzePRg4xVEEE2WvYsI9G2NMjOknA8hnuYbU3/hwLcKbjhc8+Q==} @@ -7619,6 +7841,12 @@ packages: peerDependencies: acorn: ^8 + acorn-import-phases@1.0.4: + resolution: {integrity: sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ==} + engines: {node: '>=10.13.0'} + peerDependencies: + acorn: ^8.14.0 + acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -7647,8 +7875,8 @@ packages: resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} engines: {node: '>= 6.0.0'} - agent-base@7.1.3: - resolution: {integrity: sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==} + agent-base@7.1.4: + resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} engines: {node: '>= 14'} agentkeepalive@4.6.0: @@ -7731,8 +7959,8 @@ packages: resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==} engines: {node: '>=12'} - ansi-sequence-parser@1.1.1: - resolution: {integrity: sha512-vJXt3yiaUL4UU546s3rPXlsry/RnM730G1+HkpKE012AN0sx1eOrxSu95oKDIonskeLTijMgqWZ3uDEe3NFvyg==} + ansi-sequence-parser@1.1.3: + resolution: {integrity: sha512-+fksAx9eG3Ab6LDnLs3ZqZa8KVJ/jYnX+D4Qe1azX+LFGFAXqynCQLOdLpNYN/l9e7l6hMWwZbrnctqr6eSQSw==} ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==} @@ -7919,6 +8147,9 @@ packages: axios@1.10.0: resolution: {integrity: sha512-/1xYAC4MP/HEG+3duIhFr4ZQXR4sQXOIe+o6sdqzeykGLx6Upp/1p8MHqhINOvGeP7xyNHe7tsiJByc4SSVUxw==} + axios@1.11.0: + resolution: {integrity: sha512-1Lx3WLFQWm3ooKDYZD1eXmoGO9fxYQjrycfHFC8P0sCfQVXyROp0p9PFWBehewBOdCwHc+f/b8I0fMto5eSfwA==} + axobject-query@4.1.0: resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} engines: {node: '>= 0.4'} @@ -8003,19 +8234,27 @@ packages: bare-events@2.5.4: resolution: {integrity: sha512-+gFfDkR8pj4/TrWCGUGWmJIkBwuxPS5F+a5yWjOHQt2hHvNZd5YLzadjmDUtFmMM4y429bnKLa8bYBMHcYdnQA==} + bare-events@2.6.0: + resolution: {integrity: sha512-EKZ5BTXYExaNqi3I3f9RtEsaI/xBSGjE0XZCZilPzFAV/goswFHuPd9jEZlPIZ/iNZJwDSao9qRiScySz7MbQg==} + bare-fs@2.3.5: resolution: {integrity: sha512-SlE9eTxifPDJrT6YgemQ1WGFleevzwY+XAP1Xqgl56HtcrisC2CHCZ2tq6dBpcH2TnNxwUEUGhweo+lrQtYuiw==} - bare-fs@4.0.1: - resolution: {integrity: sha512-ilQs4fm/l9eMfWY2dY0WCIUplSUp7U0CT1vrqMg1MUdeZl4fypu5UP0XcDBK5WBQPJAKP1b7XEodISmekH/CEg==} - engines: {bare: '>=1.7.0'} + bare-fs@4.1.6: + resolution: {integrity: sha512-25RsLF33BqooOEFNdMcEhMpJy8EoR88zSMrnOQOaM3USnOK2VmaJ1uaQEwPA6AQjrv1lXChScosN6CzbwbO9OQ==} + engines: {bare: '>=1.16.0'} + peerDependencies: + bare-buffer: '*' + peerDependenciesMeta: + bare-buffer: + optional: true bare-os@2.4.4: resolution: {integrity: sha512-z3UiI2yi1mK0sXeRdc4O1Kk8aOa/e+FNWZcTiPB/dfTWyLypuE99LibgRaQki914Jq//yAWylcAt+mknKdixRQ==} - bare-os@3.4.0: - resolution: {integrity: sha512-9Ous7UlnKbe3fMi7Y+qh0DwAup6A1JkYgPnjvMDNOlmnxNRQvQ/7Nst+OnUQKzk0iAT0m9BisbDVp9gCv8+ETA==} - engines: {bare: '>=1.6.0'} + bare-os@3.6.1: + resolution: {integrity: sha512-uaIjxokhFidJP+bmmvKSgiMzj2sV5GPHaZVAIktcxcpCyBFFWO+YlikVAdhmUo2vYFvFhOXIAlldqV29L8126g==} + engines: {bare: '>=1.14.0'} bare-path@2.1.3: resolution: {integrity: sha512-lh/eITfU8hrj9Ru5quUp0Io1kJWIk1bTjzo7JH1P5dWmQ2EL4hFUlfI8FonAhSlgIfhn63p84CDY/x+PisgcXA==} @@ -8303,9 +8542,9 @@ packages: ccount@2.0.1: resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} - chai@5.2.0: - resolution: {integrity: sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==} - engines: {node: '>=12'} + chai@5.2.1: + resolution: {integrity: sha512-5nFxhUrX0PqtyogoYOA8IPswy5sZFTOsBFl/9bNsmDLgsxYTzSZQJDPppDnZPTQbzSEm0hqGjWPzRemQCYbD6A==} + engines: {node: '>=18'} chakra-react-select@4.10.1: resolution: {integrity: sha512-0d7lubrmcm7molVYNYWEYi7o71W8wn/WruINon+m23XQLYvJ+bZlYVawDdWYdJjX8O1nzJlTDo4b7CB6zTsr4A==} @@ -8592,9 +8831,9 @@ packages: resolution: {integrity: sha512-oPYleIY8wmTVzkvQq10AEok6YcTC4sRUBl8F9gVuwchGVUCTbl/vhLTaQqutuuySYOsu8YTgV+OxKc/8Yvx+mQ==} engines: {node: '>=18'} - commander@13.1.0: - resolution: {integrity: sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==} - engines: {node: '>=18'} + commander@14.0.0: + resolution: {integrity: sha512-2uM9rYjPvyq39NwLRqaiLtWHyDC1FvryJDa2ATTVims5YAS4PupsEQsDvP14FqhFr0P49CYDugi59xaxJlTXRA==} + engines: {node: '>=20'} commander@2.20.3: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} @@ -8631,8 +8870,8 @@ packages: resolution: {integrity: sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg==} engines: {node: '>= 0.6'} - compression@1.8.0: - resolution: {integrity: sha512-k6WLKfunuqCYD3t6AsuPGvQWaKwuLLh2/xHNcX4qE+vIfDNXpSqnrhwA7O53R7WVQUnt8dVAIW+YHr7xTgOgGA==} + compression@1.8.1: + resolution: {integrity: sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w==} engines: {node: '>= 0.8.0'} concat-map@0.0.1: @@ -8756,8 +8995,8 @@ packages: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} - crossws@0.3.3: - resolution: {integrity: sha512-/71DJT3xJlqSnBr83uGJesmVHSzZEvgxHt/fIKxBAAngqMHmnBWQNxCphVxxJ2XL3xleu5+hJD6IQ3TglBedcw==} + crossws@0.3.5: + resolution: {integrity: sha512-ojKiDvcmByhwa8YYqbQI/hg7MEU0NC03+pSdEq4ZUnZR9xXpwk7E43SMNGkn+JxJGPFtNvQ48+vV2p+P1ml5PA==} crypt@0.0.2: resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==} @@ -8806,6 +9045,9 @@ packages: css-select@5.1.0: resolution: {integrity: sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg==} + css-select@5.2.2: + resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==} + css-to-react-native@3.2.0: resolution: {integrity: sha512-e8RKaLXMOFii+02mOlqwjbD00KSEKqblnpO9e++1aXS1fPQOpS1YoqdVHBqPjHNoxeF2mimzVqawm2KCbEdtHQ==} @@ -8972,8 +9214,8 @@ packages: decimal.js-light@2.5.1: resolution: {integrity: sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==} - decode-named-character-reference@1.1.0: - resolution: {integrity: sha512-Wy+JTSbFThEOXQIR2L6mxJvEs+veIzpmqD7ynWxMXGpnk3smkHQOp6forLdHsKpAMW9iJpaBBIxz285t1n1C3w==} + decode-named-character-reference@1.2.0: + resolution: {integrity: sha512-c6fcElNV6ShtZXmsgNgFFV5tVX2PaV4g+MOAkb8eXHvn6sryJBrZa9r0zV6+dtTyoCKxtDy5tyQ5ZwQuidtd+Q==} decode-uri-component@0.2.2: resolution: {integrity: sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==} @@ -9195,8 +9437,12 @@ packages: resolution: {integrity: sha512-zIHwmZPRshsCdpMDyVsqGmgyP0yT8GAgXUnkdAoJisxvf33k7yO6OuoKmcTGuXPWSsm8Oh88nZicRLA9Y0rUeA==} engines: {node: '>=12'} - dotenv-mono@1.3.14: - resolution: {integrity: sha512-Wz8nIv9gU1IuAuHrsA0GfA3r7EygUE9JHyjJ7Tx3e8hZOWc/LI6V3k5XVLZ0/1Jd0/RFGnmb798NwtSpJGCK1Q==} + dotenv-expand@12.0.2: + resolution: {integrity: sha512-lXpXz2ZE1cea1gL4sz2Ipj8y4PiVjytYr3Ij0SWoms1PGxIv7m2CRKuRuCRtHdVuvM/hNJPMxt5PbhboNC4dPQ==} + engines: {node: '>=12'} + + dotenv-mono@1.4.0: + resolution: {integrity: sha512-e2QidC5oRfUzXBWJltrVrQMTSH3HS8B8fRQrOkKgZdeRB8+HUgJoAwaLjzc15fpTTde/tyifW0r1JTH1DjIGKA==} hasBin: true dotenv@16.4.7: @@ -9207,6 +9453,10 @@ packages: resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==} engines: {node: '>=12'} + dotenv@17.2.1: + resolution: {integrity: sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ==} + engines: {node: '>=12'} + dotenv@8.6.0: resolution: {integrity: sha512-IrPdXQsk2BbzvCBGBOTmmSH5SodmqZNt4ERAZDmW4CT+tL8VtvinqywuANaFu4bOMWki16nqf0e4oC0QIaDr/g==} engines: {node: '>=10'} @@ -9392,6 +9642,11 @@ packages: engines: {node: '>=18'} hasBin: true + esbuild@0.25.8: + resolution: {integrity: sha512-vVC0USHGtMi8+R4Kz8rt6JhEWLxsv9Rnu/lGYbPR8u47B+DCBksq9JarW0zOO7bs37hyOK1l2/oqtbciutL5+Q==} + engines: {node: '>=18'} + hasBin: true + escalade@3.2.0: resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} engines: {node: '>=6'} @@ -9652,8 +9907,8 @@ packages: ethers@5.8.0: resolution: {integrity: sha512-DUq+7fHrCg1aPDFCHx6UIPb3nmt2XMpM7Y/g2gLhsl3lIBqeAfOJIl1qEvRf2uq3BiKxmh6Fh5pfp2ieyek7Kg==} - ethers@6.13.5: - resolution: {integrity: sha512-+knKNieu5EKRThQJWwqaJ10a6HE9sSehGeqWN65//wE7j47ZpFhKAnHB/JJFibwwg61I/koxaPsXbXpD/skNOQ==} + ethers@6.15.0: + resolution: {integrity: sha512-Kf/3ZW54L4UT0pZtsY/rf+EkBU7Qi5nnhonjUb8yTXcxH3cdcWrV2cRyk0Xk/4jK6OoHhxxZHriyhje20If2hQ==} engines: {node: '>=14.0.0'} ethjs-util@0.1.6: @@ -9691,8 +9946,8 @@ packages: resolution: {integrity: sha512-jpWzZ1ZhwUmeWRhS7Qv3mhpOhLfwI+uAX4e5fOcXqwMR7EcJ0pj2kV1CVzHVMX/LphnKWD3LObjZCoJ71lKpHw==} engines: {node: ^18.19.0 || >=20.5.0} - expect-type@1.2.1: - resolution: {integrity: sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==} + expect-type@1.2.2: + resolution: {integrity: sha512-JhFGDVJ7tmDJItKhYgJCGLOWjuK9vPxiXoUFLwLDc99NlmklilbiQJwoctZtt13+xMw91MCk/REan6MWHqDjyA==} engines: {node: '>=12.0.0'} expo-application@6.0.1: @@ -10005,8 +10260,8 @@ packages: flow-enums-runtime@0.0.6: resolution: {integrity: sha512-3PYnM29RFXwvAN6Pc/scUfkI7RwhQ/xqyLUyPNlXUp9S40zI8nup9tUSrTLSVnWGBN38FNiGWbwZOB6uR4OGdw==} - flow-parser@0.271.0: - resolution: {integrity: sha512-o1GuBHfApKnqxoPEiZhsz5Gj8W+kn+xaKFPwjPafKN0a876FMRB6VXyRqPmzfHVPWHeWwGUEzYeV806SV9FzCQ==} + flow-parser@0.277.1: + resolution: {integrity: sha512-86F5PGl+OrFvCzyK04id9Yf9rxFB8485GPs5sexB4cVLOXmpHbSi1/dYiaemI53I85CpImBu/qHVmZnGQflgmw==} engines: {node: '>=0.4.0'} focus-lock@1.3.6: @@ -10051,6 +10306,10 @@ packages: resolution: {integrity: sha512-qsITQPfmvMOSAdeyZ+12I1c+CKSstAFAwu+97zrnWAbIr5u8wfsExUzCesVLC8NgHuRUqNN4Zy6UPWUTRGslcA==} engines: {node: '>= 6'} + form-data@4.0.4: + resolution: {integrity: sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==} + engines: {node: '>= 6'} + format@0.2.2: resolution: {integrity: sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==} engines: {node: '>=0.4.x'} @@ -10197,8 +10456,8 @@ packages: get-tsconfig@4.10.1: resolution: {integrity: sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==} - get-uri@6.0.4: - resolution: {integrity: sha512-E1b1lFFLvLgak2whF2xDBcOy6NLVGZBqqjJjsIhvopKfWWEi64pLVTWWehV8KlLerZkfNTA95sTe2OdJKm1OzQ==} + get-uri@6.0.5: + resolution: {integrity: sha512-b1O07XYq8eRuVzBNgJLstU6FYc1tS6wnMtF1I1D9lE8LxZSOGZ7LhxN54yPP6mGw5f2CkXY2BQUL9Fx41qvcIg==} engines: {node: '>= 14'} getenv@1.0.0: @@ -10235,8 +10494,8 @@ packages: resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} hasBin: true - glob@11.0.0: - resolution: {integrity: sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==} + glob@11.0.3: + resolution: {integrity: sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==} engines: {node: 20 || >=22} hasBin: true @@ -10289,8 +10548,8 @@ packages: resolution: {integrity: sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==} engines: {node: '>=10'} - h3@1.14.0: - resolution: {integrity: sha512-ao22eiONdgelqcnknw0iD645qW0s9NnrJHr5OBz4WOMdBdycfSas1EQf1wXRsm+PcB2Yoj43pjBPwqIpJQTeWg==} + h3@1.15.3: + resolution: {integrity: sha512-z6GknHqyX0h9aQaTx22VZDf6QyZn+0Nh+Ym8O/u0SGSkyF5cuTJYKlc8MkzW3Nzf9LE1ivcpmYC3FUGpywhuUQ==} handlebars@4.7.8: resolution: {integrity: sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==} @@ -11019,8 +11278,8 @@ packages: jackspeak@3.4.3: resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} - jackspeak@4.0.2: - resolution: {integrity: sha512-bZsjR/iRjl1Nk1UkjGpAzLNfQtzuijhn2g+pbZb98HQ1Gk8vM9hfbxeMBP+M2/UUdwj0RqGG3mlvk2MsAqwvEw==} + jackspeak@4.1.1: + resolution: {integrity: sha512-zptv57P3GpL+O0I7VdMJNBZCu+BPHVQUk55Ft8/QCJjTVxrnJHuVuX/0Bl2A6/+2oyR/ZMEuFKwmzqqZ/U5nPQ==} engines: {node: 20 || >=22} jake@10.9.2: @@ -11080,8 +11339,8 @@ packages: resolution: {integrity: sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==} hasBin: true - jiti@2.4.2: - resolution: {integrity: sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==} + jiti@2.5.1: + resolution: {integrity: sha512-twQoecYPiVA5K/h6SxtORw/Bs3ar+mLUtoPSc7iMXzQzK8d7eJ/R09wmTwAjiamETn1cXYPGfNnu7DMoHgu12w==} hasBin: true jju@1.4.0: @@ -11289,8 +11548,8 @@ packages: resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==} engines: {node: '>= 0.8.0'} - libphonenumber-js@1.12.9: - resolution: {integrity: sha512-VWwAdNeJgN7jFOD+wN4qx83DTPMVPPAUyx9/TUkBXKLiNkuWWk6anV0439tgdtwaJDrEdqkvdN22iA6J4bUCZg==} + libphonenumber-js@1.12.10: + resolution: {integrity: sha512-E91vHJD61jekHHR/RF/E83T/CMoaLXT7cwYA75T4gim4FZjnM6hbJjVIGg7chqlSqRsSvQ3izGmOjHy1SQzcGQ==} lighthouse-logger@1.4.2: resolution: {integrity: sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==} @@ -11443,14 +11702,14 @@ packages: lit-element@3.3.3: resolution: {integrity: sha512-XbeRxmTHubXENkV4h8RIPyr8lXc+Ff28rkcQzw3G6up2xg5E8Zu1IgOWIwBLEQsu3cOVFqdYwiVi0hv0SlpqUA==} - lit-element@4.2.0: - resolution: {integrity: sha512-MGrXJVAI5x+Bfth/pU9Kst1iWID6GHDLEzFEnyULB/sFiRLgkd8NPK/PeeXxktA3T6EIIaq8U3KcbTU5XFcP2Q==} + lit-element@4.2.1: + resolution: {integrity: sha512-WGAWRGzirAgyphK2urmYOV72tlvnxw7YfyLDgQ+OZnM9vQQBQnumQ7jUJe6unEzwGU3ahFOjuz1iz1jjrpCPuw==} lit-html@2.8.0: resolution: {integrity: sha512-o9t+MQM3P4y7M7yNzqAyjp7z+mQGa4NS4CxiyLqFPyFWyc4O+nodLrkrxSaCTrla6M5YOLaT3RpbbqjszB5g3Q==} - lit-html@3.3.0: - resolution: {integrity: sha512-RHoswrFAxY2d8Cf2mm4OZ1DgzCoBKUKSPvA1fhtSELxUERq2aQQ2h05pO9j81gS1o7RIRJ+CePLogfyahwmynw==} + lit-html@3.3.1: + resolution: {integrity: sha512-S9hbyDu/vs1qNrithiNyeyv64c9yqiW9l+DBgI18fL+MTvOtWoFR0FWiyq1TxaYef5wNlpEmzlXoBlZEO+WjoA==} lit@2.8.0: resolution: {integrity: sha512-4Sc3OFX9QHOJaHbmTMk28SYgVxLN3ePDjg7hofEft2zWlehFL3LiAuapWc4U/kYwMYJSh2hTCPZ6/LIC7ii0MA==} @@ -11539,8 +11798,8 @@ packages: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true - loupe@3.1.4: - resolution: {integrity: sha512-wJzkKwJrheKtknCOKNEtDK4iqg/MxmZheEMtSTYvnzRdEYaZzmgH976nenp8WdJRdx5Vc1X/9MO0Oszl6ezeXg==} + loupe@3.2.0: + resolution: {integrity: sha512-2NCfZcT5VGVNX9mSZIxLRkEAegDGBpuQZBy13desuHeVORmBDyAET4TkJr4SjqQy3A8JDofMN6LpkK8Xcm/dlw==} lower-case@2.0.2: resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} @@ -11630,8 +11889,8 @@ packages: engines: {node: '>= 12'} hasBin: true - marky@1.2.5: - resolution: {integrity: sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==} + marky@1.3.0: + resolution: {integrity: sha512-ocnPZQLNpvbedwTy9kNrQEsknEfgvcLMvOtz3sFeWApDq1MXH1TqkCIx58xlpESsfwQOnuBO9beyQuNGzVvuhQ==} math-intrinsics@1.1.0: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} @@ -11722,61 +11981,61 @@ packages: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} - metro-babel-transformer@0.81.4: - resolution: {integrity: sha512-WW0yswWrW+eTVK9sYD+b1HwWOiUlZlUoomiw9TIOk0C+dh2V90Wttn/8g62kYi0Y4i+cJfISerB2LbV4nuRGTA==} + metro-babel-transformer@0.81.5: + resolution: {integrity: sha512-oKCQuajU5srm+ZdDcFg86pG/U8hkSjBlkyFjz380SZ4TTIiI5F+OQB830i53D8hmqmcosa4wR/pnKv8y4Q3dLw==} engines: {node: '>=18.18'} - metro-cache-key@0.81.4: - resolution: {integrity: sha512-3SaWQybvf1ivasjBegIxzVKLJzOpcz+KsnGwXFOYADQq0VN4cnM7tT+u2jkOhk6yJiiO1WIjl68hqyMOQJRRLg==} + metro-cache-key@0.81.5: + resolution: {integrity: sha512-lGWnGVm1UwO8faRZ+LXQUesZSmP1LOg14OVR+KNPBip8kbMECbQJ8c10nGesw28uQT7AE0lwQThZPXlxDyCLKQ==} engines: {node: '>=18.18'} - metro-cache@0.81.4: - resolution: {integrity: sha512-sxCPH3gowDxazSaZZrwdNPEpnxR8UeXDnvPjBF9+5btDBNN2DpWvDAXPvrohkYkFImhc0LajS2V7eOXvu9PnvQ==} + metro-cache@0.81.5: + resolution: {integrity: sha512-wOsXuEgmZMZ5DMPoz1pEDerjJ11AuMy9JifH4yNW7NmWS0ghCRqvDxk13LsElzLshey8C+my/tmXauXZ3OqZgg==} engines: {node: '>=18.18'} - metro-config@0.81.4: - resolution: {integrity: sha512-QnhMy3bRiuimCTy7oi5Ug60javrSa3lPh0gpMAspQZHY9h6y86jwHtZPLtlj8hdWQESIlrbeL8inMSF6qI/i9Q==} + metro-config@0.81.5: + resolution: {integrity: sha512-oDRAzUvj6RNRxratFdcVAqtAsg+T3qcKrGdqGZFUdwzlFJdHGR9Z413sW583uD2ynsuOjA2QB6US8FdwiBdNKg==} engines: {node: '>=18.18'} - metro-core@0.81.4: - resolution: {integrity: sha512-GdL4IgmgJhrMA/rTy2lRqXKeXfC77Rg+uvhUEkbhyfj/oz7PrdSgvIFzziapjdHwk1XYq0KyFh/CcVm8ZawG6A==} + metro-core@0.81.5: + resolution: {integrity: sha512-+2R0c8ByfV2N7CH5wpdIajCWa8escUFd8TukfoXyBq/vb6yTCsznoA25FhNXJ+MC/cz1L447Zj3vdUfCXIZBwg==} engines: {node: '>=18.18'} - metro-file-map@0.81.4: - resolution: {integrity: sha512-qUIBzkiqOi3qEuscu4cJ83OYQ4hVzjON19FAySWqYys9GKCmxlKa7LkmwqdpBso6lQl+JXZ7nCacX90w5wQvPA==} + metro-file-map@0.81.5: + resolution: {integrity: sha512-mW1PKyiO3qZvjeeVjj1brhkmIotObA3/9jdbY1fQQYvEWM6Ml7bN/oJCRDGn2+bJRlG+J8pwyJ+DgdrM4BsKyg==} engines: {node: '>=18.18'} - metro-minify-terser@0.81.4: - resolution: {integrity: sha512-oVvq/AGvqmbhuijJDZZ9npeWzaVyeBwQKtdlnjcQ9fH7nR15RiBr5y2zTdgTEdynqOIb1Kc16l8CQIUSzOWVFA==} + metro-minify-terser@0.81.5: + resolution: {integrity: sha512-/mn4AxjANnsSS3/Bb+zA1G5yIS5xygbbz/OuPaJYs0CPcZCaWt66D+65j4Ft/nJkffUxcwE9mk4ubpkl3rjgtw==} engines: {node: '>=18.18'} - metro-resolver@0.81.4: - resolution: {integrity: sha512-Ng7G2mXjSExMeRzj6GC19G6IJ0mfIbOLgjArsMWJgtt9ViZiluCwgWsMW9juBC5NSwjJxUMK2x6pC5NIMFLiHA==} + metro-resolver@0.81.5: + resolution: {integrity: sha512-6BX8Nq3g3go3FxcyXkVbWe7IgctjDTk6D9flq+P201DfHHQ28J+DWFpVelFcrNTn4tIfbP/Bw7u/0g2BGmeXfQ==} engines: {node: '>=18.18'} - metro-runtime@0.81.4: - resolution: {integrity: sha512-fBoRgqkF69CwyPtBNxlDi5ha26Zc8f85n2THXYoh13Jn/Bkg8KIDCdKPp/A1BbSeNnkH/++H2EIIfnmaff4uRg==} + metro-runtime@0.81.5: + resolution: {integrity: sha512-M/Gf71ictUKP9+77dV/y8XlAWg7xl76uhU7ggYFUwEdOHHWPG6gLBr1iiK0BmTjPFH8yRo/xyqMli4s3oGorPQ==} engines: {node: '>=18.18'} - metro-source-map@0.81.4: - resolution: {integrity: sha512-IOwVQ7mLqoqvsL70RZtl1EyE3f9jp43kVsAsb/B/zoWmu0/k4mwEhGLTxmjdXRkLJqPqPrh7WmFChAEf9trW4Q==} + metro-source-map@0.81.5: + resolution: {integrity: sha512-Jz+CjvCKLNbJZYJTBeN3Kq9kIJf6b61MoLBdaOQZJ5Ajhw6Pf95Nn21XwA8BwfUYgajsi6IXsp/dTZsYJbN00Q==} engines: {node: '>=18.18'} - metro-symbolicate@0.81.4: - resolution: {integrity: sha512-rWxTmYVN6/BOSaMDUHT8HgCuRf6acd0AjHkenYlHpmgxg7dqdnAG1hLq999q2XpW5rX+cMamZD5W5Ez2LqGaag==} + metro-symbolicate@0.81.5: + resolution: {integrity: sha512-X3HV3n3D6FuTE11UWFICqHbFMdTavfO48nXsSpnNGFkUZBexffu0Xd+fYKp+DJLNaQr3S+lAs8q9CgtDTlRRuA==} engines: {node: '>=18.18'} hasBin: true - metro-transform-plugins@0.81.4: - resolution: {integrity: sha512-nlP069nDXm4v28vbll4QLApAlvVtlB66rP6h+ml8Q/CCQCPBXu2JLaoxUmkIOJQjLhMRUcgTyQHq+TXWJhydOQ==} + metro-transform-plugins@0.81.5: + resolution: {integrity: sha512-MmHhVx/1dJC94FN7m3oHgv5uOjKH8EX8pBeu1pnPMxbJrx6ZuIejO0k84zTSaQTZ8RxX1wqwzWBpXAWPjEX8mA==} engines: {node: '>=18.18'} - metro-transform-worker@0.81.4: - resolution: {integrity: sha512-lKAeRZ8EUMtx2cA/Y4KvICr9bIr5SE03iK3lm+l9wyn2lkjLUuPjYVep159inLeDqC6AtSubsA8MZLziP7c03g==} + metro-transform-worker@0.81.5: + resolution: {integrity: sha512-lUFyWVHa7lZFRSLJEv+m4jH8WrR5gU7VIjUlg4XmxQfV8ngY4V10ARKynLhMYPeQGl7Qvf+Ayg0eCZ272YZ4Mg==} engines: {node: '>=18.18'} - metro@0.81.4: - resolution: {integrity: sha512-78f0aBNPuwXW7GFnSc+Y0vZhbuQorXxdgqQfvSRqcSizqwg9cwF27I05h47tL8AzQcizS1JZncvq4xf5u/Qykw==} + metro@0.81.5: + resolution: {integrity: sha512-YpFF0DDDpDVygeca2mAn7K0+us+XKmiGk4rIYMz/CRdjFoCGqAei/IQSpV0UrGfQbToSugpMQeQJveaWSH88Hg==} engines: {node: '>=18.18'} hasBin: true @@ -11885,8 +12144,8 @@ packages: micromark-util-types@2.0.2: resolution: {integrity: sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==} - micromark@4.0.1: - resolution: {integrity: sha512-eBPdkcoCNvYcxQOAKAlceo5SNdzZWfF+FcSupREAzdAh9rRmE239CEQAiTwIgblwnoM8zzj35sZ5ZwvSEOF6Kw==} + micromark@4.0.2: + resolution: {integrity: sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==} micromatch@4.0.8: resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} @@ -11913,11 +12172,6 @@ packages: engines: {node: '>=4'} hasBin: true - mime@3.0.0: - resolution: {integrity: sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==} - engines: {node: '>=10.0.0'} - hasBin: true - mimic-fn@1.2.0: resolution: {integrity: sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==} engines: {node: '>=4'} @@ -12127,6 +12381,11 @@ packages: engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} hasBin: true + napi-postinstall@0.3.2: + resolution: {integrity: sha512-tWVJxJHmBWLy69PvO96TZMZDrzmw5KeiZBz3RHmiM2XZ9grBJ2WgMAFVVg25nqp3ZjTFUs2Ftw1JhscL3Teliw==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + hasBin: true + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -12252,6 +12511,9 @@ packages: node-int64@0.4.0: resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} + node-mock-http@1.0.1: + resolution: {integrity: sha512-0gJJgENizp4ghds/Ywu2FCmcRsgBTmRQzYPZm61wy+Em2sBarSka0OhQS5huLBg6od1zkNpnWMCZloQDFVvOMQ==} + node-polyfill-webpack-plugin@2.0.1: resolution: {integrity: sha512-ZUMiCnZkP1LF0Th2caY6J/eKKoA0TefpoVa68m/LQU1I/mE8rGt4fNYGgNuCcK+aG8P8P43nbeJ2RqJMOL/Y1A==} engines: {node: '>=12'} @@ -12424,8 +12686,8 @@ packages: engines: {node: ^14.16.0 || >=16.10.0} hasBin: true - ob1@0.81.4: - resolution: {integrity: sha512-EZLYM8hfPraC2SYOR5EWLFAPV5e6g+p83m2Jth9bzCpFxP1NDQJYXdmXRB2bfbaWQSmm6NkIQlbzk7uU5lLfgg==} + ob1@0.81.5: + resolution: {integrity: sha512-iNpbeXPLmaiT9I5g16gFFFjsF3sGxLpYG2EGP3dfFB4z+l9X60mp/yRzStHhMtuNt8qmf7Ww80nOPQHngHhnIQ==} engines: {node: '>=18.18'} obj-multiplex@1.0.0: @@ -12499,8 +12761,8 @@ packages: resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} engines: {node: '>= 0.8'} - on-headers@1.0.2: - resolution: {integrity: sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==} + on-headers@1.1.0: + resolution: {integrity: sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==} engines: {node: '>= 0.8'} once@1.4.0: @@ -12637,8 +12899,8 @@ packages: typescript: optional: true - oxc-resolver@11.2.0: - resolution: {integrity: sha512-3iJYyIdDZMDoj0ZSVBrI1gUvPBMkDC4gxonBG+7uqUyK5EslG0mCwnf6qhxK8oEU7jLHjbRBNyzflPSd3uvH7Q==} + oxc-resolver@11.6.0: + resolution: {integrity: sha512-Yj3Wy+zLljtFL8ByKOljaPhiXjJWVe875p5MHaT5VAHoEmzeg1BuswM8s/E7ErpJ3s0fsXJfUYJE4v1bl7N65g==} p-cancelable@3.0.0: resolution: {integrity: sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==} @@ -12871,8 +13133,8 @@ packages: resolution: {integrity: sha512-I3EurrIQMlRc9IaAZnqRR044Phh2DXY+55o7uJ0V+hYZAcQYSuFWsc9q5PvyDHUSCe1Qxn/iBz+78s86zWnGag==} engines: {node: '>=10'} - picomatch@4.0.2: - resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + picomatch@4.0.3: + resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} engines: {node: '>=12'} pify@2.3.0: @@ -13371,8 +13633,8 @@ packages: react: '>= 0.14.0' react-dom: '>= 0.14.0' - react-devtools-core@6.1.1: - resolution: {integrity: sha512-TFo1MEnkqE6hzAbaztnyR5uLTMoz6wnEWwWBsCUzNt+sVXJycuRJdDqvL078M4/h65BI/YO5XWTaxZDWVsW0fw==} + react-devtools-core@6.1.5: + resolution: {integrity: sha512-ePrwPfxAnB+7hgnEr8vpKxL9cmnp7F322t8oqcPshbIQQhDKgFDW4tjhF2wjVbdXF9O/nyuy3sQWd9JGpiLPvA==} react-docgen-typescript@2.4.0: resolution: {integrity: sha512-ZtAp5XTO5HRzQctjPU0ybY0RRCQO19X/8fxn3w7y2VVTUbGHDKULPTL4ky3vB05euSgG5NpALhEhDPvQ56wvXg==} @@ -13487,8 +13749,8 @@ packages: react: '*' react-native: '*' - react-native-quick-base64@2.2.0: - resolution: {integrity: sha512-r7/BRsRl8QKEhS0JsHW6QX9+8LrC6NNWlwNnBnZ69h2kbcfABYsUILT71obrs9fqElEIMzuYSI5aHID955akyQ==} + react-native-quick-base64@2.2.1: + resolution: {integrity: sha512-rAECaDhq3v+P8IM10cLgUVvt3kPJq3v+Jznp7tQRLXk1LlV/VCepump3am0ObwHlE6EoXblm4cddPJoXAlO+CQ==} peerDependencies: react: '*' react-native: '*' @@ -13635,9 +13897,9 @@ packages: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} engines: {node: '>=8.10.0'} - readdirp@4.0.2: - resolution: {integrity: sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==} - engines: {node: '>= 14.16.0'} + readdirp@4.1.2: + resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} + engines: {node: '>= 14.18.0'} readline@1.3.0: resolution: {integrity: sha512-k2d6ACCkiNYz222Fs/iNze30rRJ1iIicW7JuX/7/cozvih6YCkFZH+J6mAFDVgv0dRBaAyr4jDqC95R2y4IADg==} @@ -13924,13 +14186,13 @@ packages: engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true - rollup@4.44.1: - resolution: {integrity: sha512-x8H8aPvD+xbl0Do8oez5f5o8eMS3trfCghc4HhLAnCkj7Vl0d1JWGs0UF/D886zLW2rOj2QymV/JcSSsw+XDNg==} + rollup@4.45.1: + resolution: {integrity: sha512-4iya7Jb76fVpQyLoiVpzUrsjQ12r3dM7fIVz+4NwoYvZOShknRmiv+iu9CClZml5ZLGb0XMcYLutK6w9tgxHDw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true - rpc-websockets@9.1.1: - resolution: {integrity: sha512-1IXGM/TfPT6nfYMIXkJdzn+L4JEsmb0FL1O2OBjaH03V3yuUDdKFulGLMFG6ErV+8pZ5HVC0limve01RyO+saA==} + rpc-websockets@9.1.2: + resolution: {integrity: sha512-fvA0JfSqWmJsq0FqLnl51DPRMqPer7hcIqqLwuhgAUOWrLVuJhmNeL+Y4Ds5PdoX/NyUhUWoflL6A7bT93Xfkg==} run-applescript@7.0.0: resolution: {integrity: sha512-9by4Ij99JUr/MCFBUkDKLWK3G9HVXmabKz9U5MlIAIuvuzkiOicRYs8XJLxX+xahD+mLiiCYDqF9dKAgtzKP1A==} @@ -14103,8 +14365,8 @@ packages: shallowequal@1.1.0: resolution: {integrity: sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==} - sharp@0.34.2: - resolution: {integrity: sha512-lszvBmB9QURERtyKT2bNmsgxXK0ShJrL/fvqlonCo7e6xBF8nT8xU6pW+PMIbLsz0RxQk3rgH9kd8UmvOzlMJg==} + sharp@0.34.3: + resolution: {integrity: sha512-eX2IQ6nFohW4DbvHIOLRB3MHFpYqaqvXd3Tp5e/T/dSH83fxaNJQRvDMhASmkNTsNTVF2/OOopzRCt7xokgPfg==} engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0} shebang-command@2.0.0: @@ -14115,8 +14377,8 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - shell-quote@1.8.2: - resolution: {integrity: sha512-AzqKpGKjrj7EM6rKVQEPpB288oCfnrEIuyoT9cyF4nmGa7V8Zk6f7RRqYisX8X9m+Q7bd632aZW4ky7EhbQztA==} + shell-quote@1.8.3: + resolution: {integrity: sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==} engines: {node: '>= 0.4'} shiki@0.14.7: @@ -14192,8 +14454,8 @@ packages: resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} - smol-toml@1.3.4: - resolution: {integrity: sha512-UOPtVuYkzYGee0Bd2Szz8d2G3RfMfJ2t3qVdZUAozZyAk+a0Sxa+QKix0YCwjL/A1RR0ar44nCxaoN9FxdJGwA==} + smol-toml@1.4.1: + resolution: {integrity: sha512-CxdwHXyYTONGHThDbq5XdwbFsuY4wlClRGejfE2NtwUtiHYsP1QtNsHb/hnj31jKYSchztJsaA8pSQoVzkfCFg==} engines: {node: '>= 18'} socket.io-client@4.8.1: @@ -14212,6 +14474,10 @@ packages: resolution: {integrity: sha512-iF+tNDQla22geJdTyJB1wM/qrX9DMRwWrciEPwWLPRWAUEM8sQiyxgckLxWT1f7+9VabJS0jTGGr4QgBuvi6Ww==} engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} + socks@2.8.6: + resolution: {integrity: sha512-pe4Y2yzru68lXCb38aAqRf5gvN8YdjP1lok5o0J7BOHljkyCGKVz7H3vpVIXKD27rj2giOJ7DwVyk/GWrPHDWA==} + engines: {node: '>= 10.0.0', npm: '>= 3.0.0'} + sonic-boom@2.8.0: resolution: {integrity: sha512-kuonw1YOYYNOve5iHdSahXPOK49GqwA+LZhI6Wz/l0rP57iKyXXIHaRagOBHAPmGwJC6od2Z9zgvZ5loSgMlVg==} @@ -14306,6 +14572,10 @@ packages: resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} engines: {node: '>= 0.8'} + statuses@2.0.2: + resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} + engines: {node: '>= 0.8'} + std-env@3.9.0: resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==} @@ -14612,8 +14882,8 @@ packages: tar-fs@3.0.5: resolution: {integrity: sha512-JOgGAmZyMgbqpLwct7ZV8VzkEB6pxXFBVErLtb+XCOqzc6w1xiWKI9GVd6bwk68EX7eJ4DWmfXVmq8K2ziZTGg==} - tar-fs@3.0.8: - resolution: {integrity: sha512-ZoROL70jptorGAlgAYiLoBLItEKw/fUxg9BSYK/dF/GAGYFJOJJJMvjPAKDJraCXFwadD456FCuvLWgfhMsPwg==} + tar-fs@3.1.0: + resolution: {integrity: sha512-5Mty5y/sOF1YWj1J6GiBodjlDc05CUR8PKXrsnFAiSG0xA+GHeWLovaZPYUDXkH/1iKRf2+M5+OrRgzC7O9b7w==} tar-stream@3.1.7: resolution: {integrity: sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==} @@ -15027,9 +15297,6 @@ packages: resolution: {integrity: sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==} engines: {node: '>=18.17'} - unenv@1.10.0: - resolution: {integrity: sha512-wY5bskBQFL9n3Eca5XnhH6KbUo/tfvkwm9OpcdCvLaeA7piBNbavbOKJySEwQ1V0RH6HvNlSAFRTpvTqgKRQXQ==} - unhead@1.11.20: resolution: {integrity: sha512-3AsNQC0pjwlLqEYHLjtichGWankK8yqmocReITecmpB1H0aOabeESueyy+8X1gyJx4ftZVwo9hqQ4O3fPWffCA==} @@ -15127,27 +15394,27 @@ packages: unrs-resolver@1.10.1: resolution: {integrity: sha512-EFrL7Hw4kmhZdwWO3dwwFJo6hO3FXuQ6Bg8BK/faHZ9m1YxqBS31BNSTxklIQkxK/4LlV8zTYnPsIRLBzTzjCA==} - unstorage@1.14.4: - resolution: {integrity: sha512-1SYeamwuYeQJtJ/USE1x4l17LkmQBzg7deBJ+U9qOBoHo15d1cDxG4jM31zKRgF7pG0kirZy4wVMX6WL6Zoscg==} + unstorage@1.16.1: + resolution: {integrity: sha512-gdpZ3guLDhz+zWIlYP1UwQ259tG5T5vYRzDaHMkQ1bBY1SQPutvZnrRjTFaWUUpseErJIgAZS51h6NOcZVZiqQ==} peerDependencies: '@azure/app-configuration': ^1.8.0 '@azure/cosmos': ^4.2.0 '@azure/data-tables': ^13.3.0 - '@azure/identity': ^4.5.0 + '@azure/identity': ^4.6.0 '@azure/keyvault-secrets': ^4.9.0 '@azure/storage-blob': ^12.26.0 - '@capacitor/preferences': ^6.0.3 - '@deno/kv': '>=0.8.4' - '@netlify/blobs': ^6.5.0 || ^7.0.0 || ^8.1.0 + '@capacitor/preferences': ^6.0.3 || ^7.0.0 + '@deno/kv': '>=0.9.0' + '@netlify/blobs': ^6.5.0 || ^7.0.0 || ^8.1.0 || ^9.0.0 || ^10.0.0 '@planetscale/database': ^1.19.0 '@upstash/redis': ^1.34.3 - '@vercel/blob': '>=0.27.0' + '@vercel/blob': '>=0.27.1' '@vercel/kv': ^1.0.1 aws4fetch: ^1.0.20 db0: '>=0.2.1' idb-keyval: ^6.2.1 ioredis: ^5.4.2 - uploadthing: ^7.4.1 + uploadthing: ^7.4.4 peerDependenciesMeta: '@azure/app-configuration': optional: true @@ -15410,6 +15677,14 @@ packages: typescript: optional: true + viem@2.33.1: + resolution: {integrity: sha512-++Dkj8HvSOLPMKEs+ZBNNcWbBRlUHcXNWktjIU22hgr6YmbUldV1sPTGLZa6BYRm06WViMjXj6HIsHt8rD+ZKQ==} + peerDependencies: + typescript: '>=5.0.4' + peerDependenciesMeta: + typescript: + optional: true + vite-node@3.2.4: resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} @@ -15553,6 +15828,10 @@ packages: resolution: {integrity: sha512-adBYQLivcg1jbdKEJeqScJJFvgm4qY9+3tXw+jdG6lkVeqRJEtiQmSWjmth8GKmDZuX7sYM4YFxQsf0AzMfGGw==} engines: {node: '>=10.13.0'} + watchpack@2.4.4: + resolution: {integrity: sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA==} + engines: {node: '>=10.13.0'} + wcwidth@1.0.1: resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} @@ -15610,6 +15889,16 @@ packages: webpack-virtual-modules@0.6.2: resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==} + webpack@5.100.2: + resolution: {integrity: sha512-QaNKAvGCDRh3wW1dsDjeMdDXwZm2vqq3zn6Pvq4rHOEOGSaUMgOOjG2Y9ZbIGzpfkJk9ZYTHpDqgDfeBDcnLaw==} + engines: {node: '>=10.13.0'} + hasBin: true + peerDependencies: + webpack-cli: '*' + peerDependenciesMeta: + webpack-cli: + optional: true + webpack@5.99.9: resolution: {integrity: sha512-brOPwM3JnmOa+7kd3NsmOUOwbDAj8FT9xDsG3IW0MgbN9yZV7Oi/s/+MNQ/EcSMqw7qfoRyXPoeEWT8zLVdVGg==} engines: {node: '>=10.13.0'} @@ -15910,6 +16199,10 @@ packages: resolution: {integrity: sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g==} engines: {node: '>=12.20'} + yocto-queue@1.2.1: + resolution: {integrity: sha512-AyeEbWOu/TAXdxlV9wmGcR0+yh2j3vYPGOECcIj2S7MkrLyC7ne+oye2BKTItt0ii2PHk4cDy+95+LshzbXnGg==} + engines: {node: '>=12.20'} + yoctocolors-cjs@2.1.2: resolution: {integrity: sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==} engines: {node: '>=18'} @@ -15937,6 +16230,12 @@ packages: peerDependencies: zod: ^3.18.0 + zod-validation-error@3.5.3: + resolution: {integrity: sha512-OT5Y8lbUadqVZCsnyFaTQ4/O2mys4tj7PqhdbBCp7McPwvIEKfPtdA6QfPeFQK2/Rz5LgwmAXRJTugBNBi0btw==} + engines: {node: '>=18.0.0'} + peerDependencies: + zod: ^3.25.0 || ^4.0.0 + zod@3.22.4: resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} @@ -16038,7 +16337,7 @@ snapshots: '@aws-crypto/crc32@5.2.0': dependencies: '@aws-crypto/util': 5.2.0 - '@aws-sdk/types': 3.840.0 + '@aws-sdk/types': 3.577.0 tslib: 2.8.1 '@aws-crypto/ie11-detection@3.0.0': @@ -16051,7 +16350,7 @@ snapshots: '@aws-crypto/sha256-js': 3.0.0 '@aws-crypto/supports-web-crypto': 3.0.0 '@aws-crypto/util': 3.0.0 - '@aws-sdk/types': 3.840.0 + '@aws-sdk/types': 3.577.0 '@aws-sdk/util-locate-window': 3.804.0 '@aws-sdk/util-utf8-browser': 3.259.0 tslib: 1.14.1 @@ -16069,7 +16368,7 @@ snapshots: '@aws-crypto/sha256-js@3.0.0': dependencies: '@aws-crypto/util': 3.0.0 - '@aws-sdk/types': 3.840.0 + '@aws-sdk/types': 3.577.0 tslib: 1.14.1 '@aws-crypto/sha256-js@5.2.0': @@ -16088,13 +16387,13 @@ snapshots: '@aws-crypto/util@3.0.0': dependencies: - '@aws-sdk/types': 3.840.0 + '@aws-sdk/types': 3.577.0 '@aws-sdk/util-utf8-browser': 3.259.0 tslib: 1.14.1 '@aws-crypto/util@5.2.0': dependencies: - '@aws-sdk/types': 3.840.0 + '@aws-sdk/types': 3.577.0 '@smithy/util-utf8': 2.3.0 tslib: 2.8.1 @@ -16303,26 +16602,26 @@ snapshots: '@aws-sdk/util-user-agent-browser': 3.840.0 '@aws-sdk/util-user-agent-node': 3.840.0 '@smithy/config-resolver': 4.1.4 - '@smithy/core': 3.6.0 - '@smithy/fetch-http-handler': 5.0.4 + '@smithy/core': 3.7.2 + '@smithy/fetch-http-handler': 5.1.0 '@smithy/hash-node': 4.0.4 '@smithy/invalid-dependency': 4.0.4 '@smithy/middleware-content-length': 4.0.4 - '@smithy/middleware-endpoint': 4.1.13 - '@smithy/middleware-retry': 4.1.14 + '@smithy/middleware-endpoint': 4.1.17 + '@smithy/middleware-retry': 4.1.18 '@smithy/middleware-serde': 4.0.8 '@smithy/middleware-stack': 4.0.4 '@smithy/node-config-provider': 4.1.3 - '@smithy/node-http-handler': 4.0.6 + '@smithy/node-http-handler': 4.1.0 '@smithy/protocol-http': 5.1.2 - '@smithy/smithy-client': 4.4.5 + '@smithy/smithy-client': 4.4.9 '@smithy/types': 4.3.1 '@smithy/url-parser': 4.0.4 '@smithy/util-base64': 4.0.0 '@smithy/util-body-length-browser': 4.0.0 '@smithy/util-body-length-node': 4.0.0 - '@smithy/util-defaults-mode-browser': 4.0.21 - '@smithy/util-defaults-mode-node': 4.0.21 + '@smithy/util-defaults-mode-browser': 4.0.25 + '@smithy/util-defaults-mode-node': 4.0.25 '@smithy/util-endpoints': 3.0.6 '@smithy/util-middleware': 4.0.4 '@smithy/util-retry': 4.0.6 @@ -16389,26 +16688,26 @@ snapshots: '@aws-sdk/util-user-agent-browser': 3.840.0 '@aws-sdk/util-user-agent-node': 3.840.0 '@smithy/config-resolver': 4.1.4 - '@smithy/core': 3.6.0 - '@smithy/fetch-http-handler': 5.0.4 + '@smithy/core': 3.7.2 + '@smithy/fetch-http-handler': 5.1.0 '@smithy/hash-node': 4.0.4 '@smithy/invalid-dependency': 4.0.4 '@smithy/middleware-content-length': 4.0.4 - '@smithy/middleware-endpoint': 4.1.13 - '@smithy/middleware-retry': 4.1.14 + '@smithy/middleware-endpoint': 4.1.17 + '@smithy/middleware-retry': 4.1.18 '@smithy/middleware-serde': 4.0.8 '@smithy/middleware-stack': 4.0.4 '@smithy/node-config-provider': 4.1.3 - '@smithy/node-http-handler': 4.0.6 + '@smithy/node-http-handler': 4.1.0 '@smithy/protocol-http': 5.1.2 - '@smithy/smithy-client': 4.4.5 + '@smithy/smithy-client': 4.4.9 '@smithy/types': 4.3.1 '@smithy/url-parser': 4.0.4 '@smithy/util-base64': 4.0.0 '@smithy/util-body-length-browser': 4.0.0 '@smithy/util-body-length-node': 4.0.0 - '@smithy/util-defaults-mode-browser': 4.0.21 - '@smithy/util-defaults-mode-node': 4.0.21 + '@smithy/util-defaults-mode-browser': 4.0.25 + '@smithy/util-defaults-mode-node': 4.0.25 '@smithy/util-endpoints': 3.0.6 '@smithy/util-middleware': 4.0.4 '@smithy/util-retry': 4.0.6 @@ -16476,12 +16775,12 @@ snapshots: dependencies: '@aws-sdk/types': 3.840.0 '@aws-sdk/xml-builder': 3.821.0 - '@smithy/core': 3.6.0 + '@smithy/core': 3.7.2 '@smithy/node-config-provider': 4.1.3 '@smithy/property-provider': 4.0.4 '@smithy/protocol-http': 5.1.2 '@smithy/signature-v4': 5.1.2 - '@smithy/smithy-client': 4.4.5 + '@smithy/smithy-client': 4.4.9 '@smithy/types': 4.3.1 '@smithy/util-base64': 4.0.0 '@smithy/util-body-length-browser': 4.0.0 @@ -16531,13 +16830,13 @@ snapshots: dependencies: '@aws-sdk/core': 3.840.0 '@aws-sdk/types': 3.840.0 - '@smithy/fetch-http-handler': 5.0.4 - '@smithy/node-http-handler': 4.0.6 + '@smithy/fetch-http-handler': 5.1.0 + '@smithy/node-http-handler': 4.1.0 '@smithy/property-provider': 4.0.4 '@smithy/protocol-http': 5.1.2 - '@smithy/smithy-client': 4.4.5 + '@smithy/smithy-client': 4.4.9 '@smithy/types': 4.3.1 - '@smithy/util-stream': 4.2.2 + '@smithy/util-stream': 4.2.3 tslib: 2.8.1 '@aws-sdk/credential-provider-ini@3.592.0(@aws-sdk/client-sso-oidc@3.592.0(@aws-sdk/client-sts@3.592.0))(@aws-sdk/client-sts@3.592.0)': @@ -16836,7 +17135,7 @@ snapshots: '@aws-sdk/core': 3.840.0 '@aws-sdk/types': 3.840.0 '@aws-sdk/util-endpoints': 3.840.0 - '@smithy/core': 3.6.0 + '@smithy/core': 3.7.2 '@smithy/protocol-http': 5.1.2 '@smithy/types': 4.3.1 tslib: 2.8.1 @@ -16856,26 +17155,26 @@ snapshots: '@aws-sdk/util-user-agent-browser': 3.840.0 '@aws-sdk/util-user-agent-node': 3.840.0 '@smithy/config-resolver': 4.1.4 - '@smithy/core': 3.6.0 - '@smithy/fetch-http-handler': 5.0.4 + '@smithy/core': 3.7.2 + '@smithy/fetch-http-handler': 5.1.0 '@smithy/hash-node': 4.0.4 '@smithy/invalid-dependency': 4.0.4 '@smithy/middleware-content-length': 4.0.4 - '@smithy/middleware-endpoint': 4.1.13 - '@smithy/middleware-retry': 4.1.14 + '@smithy/middleware-endpoint': 4.1.17 + '@smithy/middleware-retry': 4.1.18 '@smithy/middleware-serde': 4.0.8 '@smithy/middleware-stack': 4.0.4 '@smithy/node-config-provider': 4.1.3 - '@smithy/node-http-handler': 4.0.6 + '@smithy/node-http-handler': 4.1.0 '@smithy/protocol-http': 5.1.2 - '@smithy/smithy-client': 4.4.5 + '@smithy/smithy-client': 4.4.9 '@smithy/types': 4.3.1 '@smithy/url-parser': 4.0.4 '@smithy/util-base64': 4.0.0 '@smithy/util-body-length-browser': 4.0.0 '@smithy/util-body-length-node': 4.0.0 - '@smithy/util-defaults-mode-browser': 4.0.21 - '@smithy/util-defaults-mode-node': 4.0.21 + '@smithy/util-defaults-mode-browser': 4.0.25 + '@smithy/util-defaults-mode-node': 4.0.25 '@smithy/util-endpoints': 3.0.6 '@smithy/util-middleware': 4.0.4 '@smithy/util-retry': 4.0.6 @@ -17017,11 +17316,11 @@ snapshots: '@babel/generator': 7.28.0 '@babel/helper-compilation-targets': 7.27.2 '@babel/helper-module-transforms': 7.27.3(@babel/core@7.28.0) - '@babel/helpers': 7.27.6 + '@babel/helpers': 7.28.2 '@babel/parser': 7.28.0 '@babel/template': 7.27.2 '@babel/traverse': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 convert-source-map: 2.0.0 debug: 4.4.1(supports-color@8.1.1) gensync: 1.0.0-beta.2 @@ -17033,14 +17332,14 @@ snapshots: '@babel/generator@7.28.0': dependencies: '@babel/parser': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@jridgewell/gen-mapping': 0.3.12 '@jridgewell/trace-mapping': 0.3.29 jsesc: 3.1.0 '@babel/helper-annotate-as-pure@7.27.3': dependencies: - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@babel/helper-compilation-targets@7.27.2': dependencies: @@ -17086,14 +17385,14 @@ snapshots: '@babel/helper-member-expression-to-functions@7.27.1': dependencies: '@babel/traverse': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 transitivePeerDependencies: - supports-color '@babel/helper-module-imports@7.27.1': dependencies: '@babel/traverse': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 transitivePeerDependencies: - supports-color @@ -17108,7 +17407,7 @@ snapshots: '@babel/helper-optimise-call-expression@7.27.1': dependencies: - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@babel/helper-plugin-utils@7.27.1': {} @@ -17133,7 +17432,7 @@ snapshots: '@babel/helper-skip-transparent-expression-wrappers@7.27.1': dependencies: '@babel/traverse': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 transitivePeerDependencies: - supports-color @@ -17147,14 +17446,14 @@ snapshots: dependencies: '@babel/template': 7.27.2 '@babel/traverse': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 transitivePeerDependencies: - supports-color - '@babel/helpers@7.27.6': + '@babel/helpers@7.28.2': dependencies: '@babel/template': 7.27.2 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@babel/highlight@7.25.9': dependencies: @@ -17645,7 +17944,7 @@ snapshots: '@babel/helper-module-imports': 7.27.1 '@babel/helper-plugin-utils': 7.27.1 '@babel/plugin-syntax-jsx': 7.27.1(@babel/core@7.28.0) - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 transitivePeerDependencies: - supports-color @@ -17660,6 +17959,11 @@ snapshots: '@babel/core': 7.28.0 '@babel/helper-plugin-utils': 7.27.1 + '@babel/plugin-transform-regenerator@7.28.1(@babel/core@7.28.0)': + dependencies: + '@babel/core': 7.28.0 + '@babel/helper-plugin-utils': 7.27.1 + '@babel/plugin-transform-regexp-modifiers@7.27.1(@babel/core@7.28.0)': dependencies: '@babel/core': 7.28.0 @@ -17832,7 +18136,7 @@ snapshots: dependencies: '@babel/core': 7.28.0 '@babel/helper-plugin-utils': 7.27.1 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 esutils: 2.0.3 '@babel/preset-react@7.27.1(@babel/core@7.28.0)': @@ -17873,11 +18177,13 @@ snapshots: '@babel/runtime@7.27.6': {} + '@babel/runtime@7.28.2': {} + '@babel/template@7.27.2': dependencies: '@babel/code-frame': 7.27.1 '@babel/parser': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@babel/traverse@7.28.0': dependencies: @@ -17886,7 +18192,7 @@ snapshots: '@babel/helper-globals': 7.28.0 '@babel/parser': 7.28.0 '@babel/template': 7.27.2 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 debug: 4.4.1(supports-color@8.1.1) transitivePeerDependencies: - supports-color @@ -17896,6 +18202,11 @@ snapshots: '@babel/helper-string-parser': 7.27.1 '@babel/helper-validator-identifier': 7.27.1 + '@babel/types@7.28.2': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.27.1 + '@bcoe/v8-coverage@1.0.2': {} '@biomejs/biome@2.0.6': @@ -17939,7 +18250,7 @@ snapshots: '@bundled-es-modules/statuses@1.0.1': dependencies: - statuses: 2.0.1 + statuses: 2.0.2 '@bundled-es-modules/tough-cookie@0.1.6': dependencies: @@ -18325,18 +18636,18 @@ snapshots: '@codspeed/core@4.0.1': dependencies: - axios: 1.10.0 + axios: 1.11.0 find-up: 6.3.0 - form-data: 4.0.3 + form-data: 4.0.4 node-gyp-build: 4.8.4 transitivePeerDependencies: - debug - '@codspeed/vitest-plugin@4.0.1(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.0.10)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': + '@codspeed/vitest-plugin@4.0.1(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: '@codspeed/core': 4.0.1 - vite: 7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.0.10)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) transitivePeerDependencies: - debug @@ -18375,14 +18686,14 @@ snapshots: '@coinbase/wallet-sdk@4.3.2': dependencies: - '@noble/hashes': 1.7.2 + '@noble/hashes': 1.8.0 clsx: 1.2.1 eventemitter3: 5.0.1 preact: 10.26.9 '@coinbase/wallet-sdk@4.3.3': dependencies: - '@noble/hashes': 1.7.2 + '@noble/hashes': 1.8.0 clsx: 1.2.1 eventemitter3: 5.0.1 preact: 10.26.9 @@ -18401,7 +18712,7 @@ snapshots: '@craftzdog/react-native-buffer@6.1.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)': dependencies: ieee754: 1.2.1 - react-native-quick-base64: 2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) + react-native-quick-base64: 2.2.1(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) transitivePeerDependencies: - react - react-native @@ -18422,7 +18733,13 @@ snapshots: tslib: 2.8.1 optional: true - '@emnapi/runtime@1.4.3': + '@emnapi/core@1.4.5': + dependencies: + '@emnapi/wasi-threads': 1.0.4 + tslib: 2.8.1 + optional: true + + '@emnapi/runtime@1.4.5': dependencies: tslib: 2.8.1 optional: true @@ -18432,10 +18749,15 @@ snapshots: tslib: 2.8.1 optional: true + '@emnapi/wasi-threads@1.0.4': + dependencies: + tslib: 2.8.1 + optional: true + '@emotion/babel-plugin@11.13.5': dependencies: '@babel/helper-module-imports': 7.27.1 - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@emotion/hash': 0.9.2 '@emotion/memoize': 0.9.0 '@emotion/serialize': 1.3.3 @@ -18472,7 +18794,7 @@ snapshots: '@emotion/react@11.14.0(@types/react@19.1.8)(react@19.1.0)': dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@emotion/babel-plugin': 11.13.5 '@emotion/cache': 11.14.0 '@emotion/serialize': 1.3.3 @@ -18498,7 +18820,7 @@ snapshots: '@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.1.8)(react@19.1.0))(@types/react@19.1.8)(react@19.1.0)': dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@emotion/babel-plugin': 11.13.5 '@emotion/is-prop-valid': 1.3.1 '@emotion/react': 11.14.0(@types/react@19.1.8)(react@19.1.0) @@ -18529,144 +18851,222 @@ snapshots: '@esbuild/aix-ppc64@0.25.5': optional: true + '@esbuild/aix-ppc64@0.25.8': + optional: true + '@esbuild/android-arm64@0.20.2': optional: true '@esbuild/android-arm64@0.25.5': optional: true + '@esbuild/android-arm64@0.25.8': + optional: true + '@esbuild/android-arm@0.20.2': optional: true '@esbuild/android-arm@0.25.5': optional: true + '@esbuild/android-arm@0.25.8': + optional: true + '@esbuild/android-x64@0.20.2': optional: true '@esbuild/android-x64@0.25.5': optional: true + '@esbuild/android-x64@0.25.8': + optional: true + '@esbuild/darwin-arm64@0.20.2': optional: true '@esbuild/darwin-arm64@0.25.5': optional: true + '@esbuild/darwin-arm64@0.25.8': + optional: true + '@esbuild/darwin-x64@0.20.2': optional: true '@esbuild/darwin-x64@0.25.5': optional: true + '@esbuild/darwin-x64@0.25.8': + optional: true + '@esbuild/freebsd-arm64@0.20.2': optional: true '@esbuild/freebsd-arm64@0.25.5': optional: true + '@esbuild/freebsd-arm64@0.25.8': + optional: true + '@esbuild/freebsd-x64@0.20.2': optional: true '@esbuild/freebsd-x64@0.25.5': optional: true + '@esbuild/freebsd-x64@0.25.8': + optional: true + '@esbuild/linux-arm64@0.20.2': optional: true '@esbuild/linux-arm64@0.25.5': optional: true + '@esbuild/linux-arm64@0.25.8': + optional: true + '@esbuild/linux-arm@0.20.2': optional: true '@esbuild/linux-arm@0.25.5': optional: true + '@esbuild/linux-arm@0.25.8': + optional: true + '@esbuild/linux-ia32@0.20.2': optional: true '@esbuild/linux-ia32@0.25.5': optional: true + '@esbuild/linux-ia32@0.25.8': + optional: true + '@esbuild/linux-loong64@0.20.2': optional: true '@esbuild/linux-loong64@0.25.5': optional: true + '@esbuild/linux-loong64@0.25.8': + optional: true + '@esbuild/linux-mips64el@0.20.2': optional: true '@esbuild/linux-mips64el@0.25.5': optional: true + '@esbuild/linux-mips64el@0.25.8': + optional: true + '@esbuild/linux-ppc64@0.20.2': optional: true '@esbuild/linux-ppc64@0.25.5': optional: true + '@esbuild/linux-ppc64@0.25.8': + optional: true + '@esbuild/linux-riscv64@0.20.2': optional: true '@esbuild/linux-riscv64@0.25.5': optional: true + '@esbuild/linux-riscv64@0.25.8': + optional: true + '@esbuild/linux-s390x@0.20.2': optional: true '@esbuild/linux-s390x@0.25.5': optional: true + '@esbuild/linux-s390x@0.25.8': + optional: true + '@esbuild/linux-x64@0.20.2': optional: true '@esbuild/linux-x64@0.25.5': optional: true + '@esbuild/linux-x64@0.25.8': + optional: true + '@esbuild/netbsd-arm64@0.25.5': optional: true + '@esbuild/netbsd-arm64@0.25.8': + optional: true + '@esbuild/netbsd-x64@0.20.2': optional: true '@esbuild/netbsd-x64@0.25.5': optional: true + '@esbuild/netbsd-x64@0.25.8': + optional: true + '@esbuild/openbsd-arm64@0.25.5': optional: true + '@esbuild/openbsd-arm64@0.25.8': + optional: true + '@esbuild/openbsd-x64@0.20.2': optional: true '@esbuild/openbsd-x64@0.25.5': optional: true + '@esbuild/openbsd-x64@0.25.8': + optional: true + + '@esbuild/openharmony-arm64@0.25.8': + optional: true + '@esbuild/sunos-x64@0.20.2': optional: true '@esbuild/sunos-x64@0.25.5': optional: true + '@esbuild/sunos-x64@0.25.8': + optional: true + '@esbuild/win32-arm64@0.20.2': optional: true '@esbuild/win32-arm64@0.25.5': optional: true + '@esbuild/win32-arm64@0.25.8': + optional: true + '@esbuild/win32-ia32@0.20.2': optional: true '@esbuild/win32-ia32@0.25.5': optional: true + '@esbuild/win32-ia32@0.25.8': + optional: true + '@esbuild/win32-x64@0.20.2': optional: true '@esbuild/win32-x64@0.25.5': optional: true + '@esbuild/win32-x64@0.25.8': + optional: true + '@eslint-community/eslint-utils@4.7.0(eslint@8.57.0)': dependencies: eslint: 8.57.0 @@ -18969,10 +19369,10 @@ snapshots: '@expo/cli@0.24.18(bufferutil@4.0.9)(graphql@16.11.0)(utf-8-validate@5.0.10)': dependencies: '@0no-co/graphql.web': 1.1.2(graphql@16.11.0) - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@expo/code-signing-certificates': 0.0.5 - '@expo/config': 11.0.12 - '@expo/config-plugins': 10.1.1 + '@expo/config': 11.0.13 + '@expo/config-plugins': 10.1.2 '@expo/devcert': 1.2.0 '@expo/env': 1.0.7 '@expo/image-utils': 0.7.6 @@ -18981,7 +19381,7 @@ snapshots: '@expo/osascript': 2.2.5 '@expo/package-manager': 1.8.6 '@expo/plist': 0.3.5 - '@expo/prebuild-config': 9.0.10 + '@expo/prebuild-config': 9.0.11 '@expo/spawn-async': 1.7.2 '@expo/ws-tunnel': 1.0.6 '@expo/xcpretty': 4.3.2 @@ -18995,7 +19395,7 @@ snapshots: bplist-parser: 0.3.2 chalk: 4.1.2 ci-info: 3.9.0 - compression: 1.8.0 + compression: 1.8.1 connect: 3.7.0 debug: 4.4.1(supports-color@8.1.1) env-editor: 0.4.2 @@ -19040,7 +19440,7 @@ snapshots: node-forge: 1.3.1 nullthrows: 1.1.1 - '@expo/config-plugins@10.1.1': + '@expo/config-plugins@10.1.2': dependencies: '@expo/config-types': 53.0.5 '@expo/json-file': 9.1.5 @@ -19100,10 +19500,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@expo/config@11.0.12': + '@expo/config@11.0.13': dependencies: '@babel/code-frame': 7.10.4 - '@expo/config-plugins': 10.1.1 + '@expo/config-plugins': 10.1.2 '@expo/config-types': 53.0.5 '@expo/json-file': 9.1.5 deepmerge: 4.3.1 @@ -19191,8 +19591,8 @@ snapshots: '@babel/core': 7.28.0 '@babel/generator': 7.28.0 '@babel/parser': 7.28.0 - '@babel/types': 7.28.0 - '@expo/config': 11.0.12 + '@babel/types': 7.28.2 + '@expo/config': 11.0.13 '@expo/env': 1.0.7 '@expo/json-file': 9.1.5 '@expo/spawn-async': 1.7.2 @@ -19236,10 +19636,10 @@ snapshots: base64-js: 1.5.1 xmlbuilder: 15.1.1 - '@expo/prebuild-config@9.0.10': + '@expo/prebuild-config@9.0.11': dependencies: - '@expo/config': 11.0.12 - '@expo/config-plugins': 10.1.1 + '@expo/config': 11.0.13 + '@expo/config-plugins': 10.1.2 '@expo/config-types': 53.0.5 '@expo/image-utils': 0.7.6 '@expo/json-file': 9.1.5 @@ -19314,11 +19714,11 @@ snapshots: '@shikijs/types': 1.29.2 '@shikijs/vscode-textmate': 10.0.2 - '@headlessui/react@2.2.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': + '@headlessui/react@2.2.6(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': dependencies: '@floating-ui/react': 0.26.28(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@react-aria/focus': 3.20.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@react-aria/interactions': 3.25.3(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + '@react-aria/focus': 3.21.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + '@react-aria/interactions': 3.25.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@tanstack/react-virtual': 3.13.12(react-dom@19.1.0(react@19.1.0))(react@19.1.0) react: 19.1.0 react-dom: 19.1.0(react@19.1.0) @@ -19401,115 +19801,120 @@ snapshots: '@hyperjump/uri@1.3.1': {} - '@img/sharp-darwin-arm64@0.34.2': + '@img/sharp-darwin-arm64@0.34.3': optionalDependencies: - '@img/sharp-libvips-darwin-arm64': 1.1.0 + '@img/sharp-libvips-darwin-arm64': 1.2.0 optional: true - '@img/sharp-darwin-x64@0.34.2': + '@img/sharp-darwin-x64@0.34.3': optionalDependencies: - '@img/sharp-libvips-darwin-x64': 1.1.0 + '@img/sharp-libvips-darwin-x64': 1.2.0 optional: true - '@img/sharp-libvips-darwin-arm64@1.1.0': + '@img/sharp-libvips-darwin-arm64@1.2.0': optional: true - '@img/sharp-libvips-darwin-x64@1.1.0': + '@img/sharp-libvips-darwin-x64@1.2.0': optional: true - '@img/sharp-libvips-linux-arm64@1.1.0': + '@img/sharp-libvips-linux-arm64@1.2.0': optional: true - '@img/sharp-libvips-linux-arm@1.1.0': + '@img/sharp-libvips-linux-arm@1.2.0': optional: true - '@img/sharp-libvips-linux-ppc64@1.1.0': + '@img/sharp-libvips-linux-ppc64@1.2.0': optional: true - '@img/sharp-libvips-linux-s390x@1.1.0': + '@img/sharp-libvips-linux-s390x@1.2.0': optional: true - '@img/sharp-libvips-linux-x64@1.1.0': + '@img/sharp-libvips-linux-x64@1.2.0': optional: true - '@img/sharp-libvips-linuxmusl-arm64@1.1.0': + '@img/sharp-libvips-linuxmusl-arm64@1.2.0': optional: true - '@img/sharp-libvips-linuxmusl-x64@1.1.0': + '@img/sharp-libvips-linuxmusl-x64@1.2.0': + optional: true + + '@img/sharp-linux-arm64@0.34.3': + optionalDependencies: + '@img/sharp-libvips-linux-arm64': 1.2.0 optional: true - '@img/sharp-linux-arm64@0.34.2': + '@img/sharp-linux-arm@0.34.3': optionalDependencies: - '@img/sharp-libvips-linux-arm64': 1.1.0 + '@img/sharp-libvips-linux-arm': 1.2.0 optional: true - '@img/sharp-linux-arm@0.34.2': + '@img/sharp-linux-ppc64@0.34.3': optionalDependencies: - '@img/sharp-libvips-linux-arm': 1.1.0 + '@img/sharp-libvips-linux-ppc64': 1.2.0 optional: true - '@img/sharp-linux-s390x@0.34.2': + '@img/sharp-linux-s390x@0.34.3': optionalDependencies: - '@img/sharp-libvips-linux-s390x': 1.1.0 + '@img/sharp-libvips-linux-s390x': 1.2.0 optional: true - '@img/sharp-linux-x64@0.34.2': + '@img/sharp-linux-x64@0.34.3': optionalDependencies: - '@img/sharp-libvips-linux-x64': 1.1.0 + '@img/sharp-libvips-linux-x64': 1.2.0 optional: true - '@img/sharp-linuxmusl-arm64@0.34.2': + '@img/sharp-linuxmusl-arm64@0.34.3': optionalDependencies: - '@img/sharp-libvips-linuxmusl-arm64': 1.1.0 + '@img/sharp-libvips-linuxmusl-arm64': 1.2.0 optional: true - '@img/sharp-linuxmusl-x64@0.34.2': + '@img/sharp-linuxmusl-x64@0.34.3': optionalDependencies: - '@img/sharp-libvips-linuxmusl-x64': 1.1.0 + '@img/sharp-libvips-linuxmusl-x64': 1.2.0 optional: true - '@img/sharp-wasm32@0.34.2': + '@img/sharp-wasm32@0.34.3': dependencies: - '@emnapi/runtime': 1.4.3 + '@emnapi/runtime': 1.4.5 optional: true - '@img/sharp-win32-arm64@0.34.2': + '@img/sharp-win32-arm64@0.34.3': optional: true - '@img/sharp-win32-ia32@0.34.2': + '@img/sharp-win32-ia32@0.34.3': optional: true - '@img/sharp-win32-x64@0.34.2': + '@img/sharp-win32-x64@0.34.3': optional: true '@inquirer/checkbox@4.1.8(@types/node@22.14.1)': dependencies: - '@inquirer/core': 10.1.14(@types/node@22.14.1) - '@inquirer/figures': 1.0.12 - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/core': 10.1.15(@types/node@22.14.1) + '@inquirer/figures': 1.0.13 + '@inquirer/type': 3.0.8(@types/node@22.14.1) ansi-escapes: 4.3.2 yoctocolors-cjs: 2.1.2 optionalDependencies: '@types/node': 22.14.1 - '@inquirer/confirm@5.1.13(@types/node@22.14.1)': + '@inquirer/confirm@5.1.14(@types/node@22.14.1)': dependencies: - '@inquirer/core': 10.1.14(@types/node@22.14.1) - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/core': 10.1.15(@types/node@22.14.1) + '@inquirer/type': 3.0.8(@types/node@22.14.1) optionalDependencies: '@types/node': 22.14.1 - '@inquirer/confirm@5.1.13(@types/node@24.0.10)': + '@inquirer/confirm@5.1.14(@types/node@24.1.0)': dependencies: - '@inquirer/core': 10.1.14(@types/node@24.0.10) - '@inquirer/type': 3.0.7(@types/node@24.0.10) + '@inquirer/core': 10.1.15(@types/node@24.1.0) + '@inquirer/type': 3.0.8(@types/node@24.1.0) optionalDependencies: - '@types/node': 24.0.10 + '@types/node': 24.1.0 - '@inquirer/core@10.1.14(@types/node@22.14.1)': + '@inquirer/core@10.1.15(@types/node@22.14.1)': dependencies: - '@inquirer/figures': 1.0.12 - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/figures': 1.0.13 + '@inquirer/type': 3.0.8(@types/node@22.14.1) ansi-escapes: 4.3.2 cli-width: 4.1.0 mute-stream: 2.0.0 @@ -19519,10 +19924,10 @@ snapshots: optionalDependencies: '@types/node': 22.14.1 - '@inquirer/core@10.1.14(@types/node@24.0.10)': + '@inquirer/core@10.1.15(@types/node@24.1.0)': dependencies: - '@inquirer/figures': 1.0.12 - '@inquirer/type': 3.0.7(@types/node@24.0.10) + '@inquirer/figures': 1.0.13 + '@inquirer/type': 3.0.8(@types/node@24.1.0) ansi-escapes: 4.3.2 cli-width: 4.1.0 mute-stream: 2.0.0 @@ -19530,44 +19935,44 @@ snapshots: wrap-ansi: 6.2.0 yoctocolors-cjs: 2.1.2 optionalDependencies: - '@types/node': 24.0.10 + '@types/node': 24.1.0 '@inquirer/editor@4.2.13(@types/node@22.14.1)': dependencies: - '@inquirer/core': 10.1.14(@types/node@22.14.1) - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/core': 10.1.15(@types/node@22.14.1) + '@inquirer/type': 3.0.8(@types/node@22.14.1) external-editor: 3.1.0 optionalDependencies: '@types/node': 22.14.1 '@inquirer/expand@4.0.15(@types/node@22.14.1)': dependencies: - '@inquirer/core': 10.1.14(@types/node@22.14.1) - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/core': 10.1.15(@types/node@22.14.1) + '@inquirer/type': 3.0.8(@types/node@22.14.1) yoctocolors-cjs: 2.1.2 optionalDependencies: '@types/node': 22.14.1 - '@inquirer/figures@1.0.12': {} + '@inquirer/figures@1.0.13': {} '@inquirer/input@4.1.12(@types/node@22.14.1)': dependencies: - '@inquirer/core': 10.1.14(@types/node@22.14.1) - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/core': 10.1.15(@types/node@22.14.1) + '@inquirer/type': 3.0.8(@types/node@22.14.1) optionalDependencies: '@types/node': 22.14.1 '@inquirer/number@3.0.15(@types/node@22.14.1)': dependencies: - '@inquirer/core': 10.1.14(@types/node@22.14.1) - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/core': 10.1.15(@types/node@22.14.1) + '@inquirer/type': 3.0.8(@types/node@22.14.1) optionalDependencies: '@types/node': 22.14.1 '@inquirer/password@4.0.15(@types/node@22.14.1)': dependencies: - '@inquirer/core': 10.1.14(@types/node@22.14.1) - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/core': 10.1.15(@types/node@22.14.1) + '@inquirer/type': 3.0.8(@types/node@22.14.1) ansi-escapes: 4.3.2 optionalDependencies: '@types/node': 22.14.1 @@ -19575,7 +19980,7 @@ snapshots: '@inquirer/prompts@7.5.3(@types/node@22.14.1)': dependencies: '@inquirer/checkbox': 4.1.8(@types/node@22.14.1) - '@inquirer/confirm': 5.1.13(@types/node@22.14.1) + '@inquirer/confirm': 5.1.14(@types/node@22.14.1) '@inquirer/editor': 4.2.13(@types/node@22.14.1) '@inquirer/expand': 4.0.15(@types/node@22.14.1) '@inquirer/input': 4.1.12(@types/node@22.14.1) @@ -19589,38 +19994,38 @@ snapshots: '@inquirer/rawlist@4.1.3(@types/node@22.14.1)': dependencies: - '@inquirer/core': 10.1.14(@types/node@22.14.1) - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/core': 10.1.15(@types/node@22.14.1) + '@inquirer/type': 3.0.8(@types/node@22.14.1) yoctocolors-cjs: 2.1.2 optionalDependencies: '@types/node': 22.14.1 '@inquirer/search@3.0.15(@types/node@22.14.1)': dependencies: - '@inquirer/core': 10.1.14(@types/node@22.14.1) - '@inquirer/figures': 1.0.12 - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/core': 10.1.15(@types/node@22.14.1) + '@inquirer/figures': 1.0.13 + '@inquirer/type': 3.0.8(@types/node@22.14.1) yoctocolors-cjs: 2.1.2 optionalDependencies: '@types/node': 22.14.1 '@inquirer/select@4.2.3(@types/node@22.14.1)': dependencies: - '@inquirer/core': 10.1.14(@types/node@22.14.1) - '@inquirer/figures': 1.0.12 - '@inquirer/type': 3.0.7(@types/node@22.14.1) + '@inquirer/core': 10.1.15(@types/node@22.14.1) + '@inquirer/figures': 1.0.13 + '@inquirer/type': 3.0.8(@types/node@22.14.1) ansi-escapes: 4.3.2 yoctocolors-cjs: 2.1.2 optionalDependencies: '@types/node': 22.14.1 - '@inquirer/type@3.0.7(@types/node@22.14.1)': + '@inquirer/type@3.0.8(@types/node@22.14.1)': optionalDependencies: '@types/node': 22.14.1 - '@inquirer/type@3.0.7(@types/node@24.0.10)': + '@inquirer/type@3.0.8(@types/node@24.1.0)': optionalDependencies: - '@types/node': 24.0.10 + '@types/node': 24.1.0 '@internationalized/date@3.8.0': dependencies: @@ -19671,14 +20076,14 @@ snapshots: dependencies: '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 22.14.1 + '@types/node': 24.1.0 jest-mock: 29.7.0 '@jest/fake-timers@29.7.0': dependencies: '@jest/types': 29.6.3 '@sinonjs/fake-timers': 10.3.0 - '@types/node': 22.14.1 + '@types/node': 24.1.0 jest-message-util: 29.7.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -19712,16 +20117,16 @@ snapshots: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.6 '@types/istanbul-reports': 3.0.4 - '@types/node': 22.14.1 + '@types/node': 24.1.0 '@types/yargs': 17.0.33 chalk: 4.1.2 - '@joshwooding/vite-plugin-react-docgen-typescript@0.6.1(typescript@5.8.3)(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': + '@joshwooding/vite-plugin-react-docgen-typescript@0.6.1(typescript@5.8.3)(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: glob: 10.4.5 magic-string: 0.30.17 react-docgen-typescript: 2.4.0(typescript@5.8.3) - vite: 7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) optionalDependencies: typescript: 5.8.3 @@ -19792,19 +20197,19 @@ snapshots: '@lezer/highlight': 1.2.1 '@lezer/lr': 1.4.2 - '@lit-labs/ssr-dom-shim@1.3.0': {} + '@lit-labs/ssr-dom-shim@1.4.0': {} '@lit/reactive-element@1.6.3': dependencies: - '@lit-labs/ssr-dom-shim': 1.3.0 + '@lit-labs/ssr-dom-shim': 1.4.0 - '@lit/reactive-element@2.1.0': + '@lit/reactive-element@2.1.1': dependencies: - '@lit-labs/ssr-dom-shim': 1.3.0 + '@lit-labs/ssr-dom-shim': 1.4.0 '@manypkg/find-root@1.1.0': dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@types/node': 12.20.55 find-up: 4.1.0 fs-extra: 8.1.0 @@ -19815,7 +20220,7 @@ snapshots: '@manypkg/get-packages@1.1.3': dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@changesets/types': 4.1.0 '@manypkg/find-root': 1.1.0 fs-extra: 8.1.0 @@ -19860,12 +20265,12 @@ snapshots: react: 19.1.0 react-dom: 19.1.0(react@19.1.0) - '@mdx-js/loader@3.1.0(acorn@8.15.0)(webpack@5.99.9)': + '@mdx-js/loader@3.1.0(acorn@8.15.0)(webpack@5.100.2)': dependencies: '@mdx-js/mdx': 3.1.0(acorn@8.15.0) source-map: 0.7.4 optionalDependencies: - webpack: 5.99.9 + webpack: 5.100.2 transitivePeerDependencies: - acorn - supports-color @@ -20016,7 +20421,7 @@ snapshots: '@metamask/sdk@0.32.0(bufferutil@4.0.9)(encoding@0.1.13)(utf-8-validate@5.0.10)': dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@metamask/onboarding': 1.0.1 '@metamask/providers': 16.1.0 '@metamask/sdk-communication-layer': 0.32.0(cross-fetch@4.1.0(encoding@0.1.13))(eciesjs@0.4.15)(eventemitter2@6.4.9)(readable-stream@3.6.2)(socket.io-client@4.8.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) @@ -20066,7 +20471,7 @@ snapshots: dependencies: '@ethereumjs/tx': 4.2.0 '@metamask/superstruct': 3.2.1 - '@noble/hashes': 1.7.2 + '@noble/hashes': 1.8.0 '@scure/base': 1.2.6 '@types/debug': 4.1.12 debug: 4.4.1(supports-color@8.1.1) @@ -20080,7 +20485,7 @@ snapshots: dependencies: '@ethereumjs/tx': 4.2.0 '@metamask/superstruct': 3.2.1 - '@noble/hashes': 1.7.2 + '@noble/hashes': 1.8.0 '@scure/base': 1.2.6 '@types/debug': 4.1.12 debug: 4.4.1(supports-color@8.1.1) @@ -20159,7 +20564,7 @@ snapshots: outvariant: 1.4.3 strict-event-emitter: 0.5.1 - '@mswjs/interceptors@0.39.2': + '@mswjs/interceptors@0.39.4': dependencies: '@open-draft/deferred-promise': 2.2.0 '@open-draft/logger': 0.3.0 @@ -20172,10 +20577,17 @@ snapshots: '@napi-rs/wasm-runtime@0.2.11': dependencies: '@emnapi/core': 1.4.3 - '@emnapi/runtime': 1.4.3 + '@emnapi/runtime': 1.4.5 '@tybys/wasm-util': 0.9.0 optional: true + '@napi-rs/wasm-runtime@1.0.1': + dependencies: + '@emnapi/core': 1.4.5 + '@emnapi/runtime': 1.4.5 + '@tybys/wasm-util': 0.10.0 + optional: true + '@neoconfetti/react@1.0.0': {} '@next/bundle-analyzer@15.3.5(bufferutil@4.0.9)(utf-8-validate@5.0.10)': @@ -20193,11 +20605,11 @@ snapshots: dependencies: fast-glob: 3.3.1 - '@next/mdx@15.3.5(@mdx-js/loader@3.1.0(acorn@8.15.0)(webpack@5.99.9))(@mdx-js/react@3.1.0(@types/react@19.1.8)(react@19.1.0))': + '@next/mdx@15.3.5(@mdx-js/loader@3.1.0(acorn@8.15.0)(webpack@5.100.2))(@mdx-js/react@3.1.0(@types/react@19.1.8)(react@19.1.0))': dependencies: source-map: 0.7.4 optionalDependencies: - '@mdx-js/loader': 3.1.0(acorn@8.15.0)(webpack@5.99.9) + '@mdx-js/loader': 3.1.0(acorn@8.15.0)(webpack@5.100.2) '@mdx-js/react': 3.1.0(@types/react@19.1.8)(react@19.1.0) '@next/swc-darwin-arm64@15.3.5': @@ -20262,6 +20674,10 @@ snapshots: dependencies: '@noble/hashes': 1.8.0 + '@noble/curves@1.9.4': + dependencies: + '@noble/hashes': 1.8.0 + '@noble/hashes@1.3.2': {} '@noble/hashes@1.4.0': {} @@ -20652,52 +21068,70 @@ snapshots: '@opentelemetry/api': 1.9.0 '@opentelemetry/core': 1.30.1(@opentelemetry/api@1.9.0) - '@oxc-resolver/binding-darwin-arm64@11.2.0': + '@oxc-resolver/binding-android-arm-eabi@11.6.0': + optional: true + + '@oxc-resolver/binding-android-arm64@11.6.0': + optional: true + + '@oxc-resolver/binding-darwin-arm64@11.6.0': optional: true - '@oxc-resolver/binding-darwin-x64@11.2.0': + '@oxc-resolver/binding-darwin-x64@11.6.0': optional: true - '@oxc-resolver/binding-freebsd-x64@11.2.0': + '@oxc-resolver/binding-freebsd-x64@11.6.0': optional: true - '@oxc-resolver/binding-linux-arm-gnueabihf@11.2.0': + '@oxc-resolver/binding-linux-arm-gnueabihf@11.6.0': optional: true - '@oxc-resolver/binding-linux-arm64-gnu@11.2.0': + '@oxc-resolver/binding-linux-arm-musleabihf@11.6.0': optional: true - '@oxc-resolver/binding-linux-arm64-musl@11.2.0': + '@oxc-resolver/binding-linux-arm64-gnu@11.6.0': optional: true - '@oxc-resolver/binding-linux-riscv64-gnu@11.2.0': + '@oxc-resolver/binding-linux-arm64-musl@11.6.0': optional: true - '@oxc-resolver/binding-linux-s390x-gnu@11.2.0': + '@oxc-resolver/binding-linux-ppc64-gnu@11.6.0': optional: true - '@oxc-resolver/binding-linux-x64-gnu@11.2.0': + '@oxc-resolver/binding-linux-riscv64-gnu@11.6.0': optional: true - '@oxc-resolver/binding-linux-x64-musl@11.2.0': + '@oxc-resolver/binding-linux-riscv64-musl@11.6.0': optional: true - '@oxc-resolver/binding-wasm32-wasi@11.2.0': + '@oxc-resolver/binding-linux-s390x-gnu@11.6.0': + optional: true + + '@oxc-resolver/binding-linux-x64-gnu@11.6.0': + optional: true + + '@oxc-resolver/binding-linux-x64-musl@11.6.0': + optional: true + + '@oxc-resolver/binding-wasm32-wasi@11.6.0': dependencies: - '@napi-rs/wasm-runtime': 0.2.11 + '@napi-rs/wasm-runtime': 1.0.1 optional: true - '@oxc-resolver/binding-win32-arm64-msvc@11.2.0': + '@oxc-resolver/binding-win32-arm64-msvc@11.6.0': optional: true - '@oxc-resolver/binding-win32-x64-msvc@11.2.0': + '@oxc-resolver/binding-win32-ia32-msvc@11.6.0': + optional: true + + '@oxc-resolver/binding-win32-x64-msvc@11.6.0': optional: true '@paralleldrive/cuid2@2.2.2': dependencies: '@noble/hashes': 1.7.2 - '@passwordless-id/webauthn@2.1.2': {} + '@passwordless-id/webauthn@2.3.1': {} '@paulmillr/qr@0.2.1': {} @@ -20712,7 +21146,7 @@ snapshots: dependencies: playwright: 1.53.2 - '@pmmmwh/react-refresh-webpack-plugin@0.5.17(react-refresh@0.14.2)(type-fest@4.41.0)(webpack-hot-middleware@2.26.1)(webpack@5.99.9(esbuild@0.25.5))': + '@pmmmwh/react-refresh-webpack-plugin@0.5.17(react-refresh@0.14.2)(type-fest@4.41.0)(webpack-hot-middleware@2.26.1)(webpack@5.100.2)': dependencies: ansi-html: 0.0.9 core-js-pure: 3.43.0 @@ -20722,7 +21156,7 @@ snapshots: react-refresh: 0.14.2 schema-utils: 4.3.2 source-map: 0.7.4 - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.100.2 optionalDependencies: type-fest: 4.41.0 webpack-hot-middleware: 2.26.1 @@ -20773,7 +21207,7 @@ snapshots: '@privy-io/cross-app-connect@0.2.2(@wagmi/core@2.17.3(@tanstack/query-core@5.81.5)(@types/react@19.1.8)(react@19.1.0)(typescript@5.8.3)(use-sync-external-store@1.4.0(react@19.1.0))(viem@2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)))(viem@2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75))': dependencies: - '@noble/curves': 1.8.2 + '@noble/curves': 1.9.4 '@noble/hashes': 1.3.2 '@scure/base': 1.1.9 fflate: 0.8.2 @@ -20801,7 +21235,7 @@ snapshots: fetch-retry: 6.0.0 jose: 4.15.9 js-cookie: 3.0.5 - libphonenumber-js: 1.12.9 + libphonenumber-js: 1.12.10 set-cookie-parser: 2.7.1 uuid: 9.0.1 optionalDependencies: @@ -20815,8 +21249,8 @@ snapshots: dependencies: '@privy-io/api-base': 1.5.2 bs58: 5.0.0 - libphonenumber-js: 1.12.9 - viem: 2.28.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + libphonenumber-js: 1.12.10 + viem: 2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) zod: 3.25.75 transitivePeerDependencies: - bufferutil @@ -20827,7 +21261,7 @@ snapshots: dependencies: '@coinbase/wallet-sdk': 4.3.2 '@floating-ui/react': 0.26.28(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@headlessui/react': 2.2.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + '@headlessui/react': 2.2.6(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@heroicons/react': 2.2.0(react@19.1.0) '@marsidev/react-turnstile': 0.4.1(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@metamask/eth-sig-util': 6.0.2 @@ -20836,7 +21270,7 @@ snapshots: '@privy-io/ethereum': 0.0.2(viem@2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)) '@privy-io/js-sdk-core': 0.52.4(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(viem@2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)) '@privy-io/public-api': 2.37.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) - '@reown/appkit': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) '@scure/base': 1.2.6 '@simplewebauthn/browser': 9.0.1 '@solana/wallet-adapter-base': 0.9.23(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10)) @@ -20900,28 +21334,28 @@ snapshots: - utf-8-validate - zod - '@puppeteer/browsers@2.2.2': + '@puppeteer/browsers@2.10.6': dependencies: - debug: 4.3.4 + debug: 4.4.1(supports-color@8.1.1) extract-zip: 2.0.1 progress: 2.0.3 - proxy-agent: 6.4.0 - semver: 7.6.0 - tar-fs: 3.0.5 - unbzip2-stream: 1.4.3 + proxy-agent: 6.5.0 + semver: 7.7.2 + tar-fs: 3.1.0 yargs: 17.7.2 transitivePeerDependencies: - bare-buffer - supports-color - '@puppeteer/browsers@2.7.1': + '@puppeteer/browsers@2.2.2': dependencies: - debug: 4.4.1(supports-color@8.1.1) + debug: 4.3.4 extract-zip: 2.0.1 progress: 2.0.3 - proxy-agent: 6.5.0 - semver: 7.7.2 - tar-fs: 3.0.8 + proxy-agent: 6.4.0 + semver: 7.6.0 + tar-fs: 3.0.5 + unbzip2-stream: 1.4.3 yargs: 17.7.2 transitivePeerDependencies: - bare-buffer @@ -21459,37 +21893,37 @@ snapshots: '@radix-ui/rect@1.1.1': {} - '@react-aria/focus@3.20.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': + '@react-aria/focus@3.21.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': dependencies: - '@react-aria/interactions': 3.25.3(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@react-aria/utils': 3.29.1(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - '@react-types/shared': 3.30.0(react@19.1.0) + '@react-aria/interactions': 3.25.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + '@react-aria/utils': 3.30.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + '@react-types/shared': 3.31.0(react@19.1.0) '@swc/helpers': 0.5.17 clsx: 2.1.1 react: 19.1.0 react-dom: 19.1.0(react@19.1.0) - '@react-aria/interactions@3.25.3(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': + '@react-aria/interactions@3.25.4(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': dependencies: - '@react-aria/ssr': 3.9.9(react@19.1.0) - '@react-aria/utils': 3.29.1(react-dom@19.1.0(react@19.1.0))(react@19.1.0) + '@react-aria/ssr': 3.9.10(react@19.1.0) + '@react-aria/utils': 3.30.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0) '@react-stately/flags': 3.1.2 - '@react-types/shared': 3.30.0(react@19.1.0) + '@react-types/shared': 3.31.0(react@19.1.0) '@swc/helpers': 0.5.17 react: 19.1.0 react-dom: 19.1.0(react@19.1.0) - '@react-aria/ssr@3.9.9(react@19.1.0)': + '@react-aria/ssr@3.9.10(react@19.1.0)': dependencies: '@swc/helpers': 0.5.17 react: 19.1.0 - '@react-aria/utils@3.29.1(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': + '@react-aria/utils@3.30.0(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': dependencies: - '@react-aria/ssr': 3.9.9(react@19.1.0) + '@react-aria/ssr': 3.9.10(react@19.1.0) '@react-stately/flags': 3.1.2 - '@react-stately/utils': 3.10.7(react@19.1.0) - '@react-types/shared': 3.30.0(react@19.1.0) + '@react-stately/utils': 3.10.8(react@19.1.0) + '@react-types/shared': 3.31.0(react@19.1.0) '@swc/helpers': 0.5.17 clsx: 2.1.1 react: 19.1.0 @@ -21557,7 +21991,7 @@ snapshots: '@babel/plugin-transform-react-jsx': 7.27.1(@babel/core@7.28.0) '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.28.0) '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-regenerator': 7.28.0(@babel/core@7.28.0) + '@babel/plugin-transform-regenerator': 7.28.1(@babel/core@7.28.0) '@babel/plugin-transform-runtime': 7.28.0(@babel/core@7.28.0) '@babel/plugin-transform-shorthand-properties': 7.27.1(@babel/core@7.28.0) '@babel/plugin-transform-spread': 7.27.1(@babel/core@7.28.0) @@ -21608,7 +22042,7 @@ snapshots: '@babel/plugin-transform-react-jsx': 7.27.1(@babel/core@7.28.0) '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.28.0) '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/core@7.28.0) - '@babel/plugin-transform-regenerator': 7.28.0(@babel/core@7.28.0) + '@babel/plugin-transform-regenerator': 7.28.1(@babel/core@7.28.0) '@babel/plugin-transform-runtime': 7.28.0(@babel/core@7.28.0) '@babel/plugin-transform-shorthand-properties': 7.27.1(@babel/core@7.28.0) '@babel/plugin-transform-spread': 7.27.1(@babel/core@7.28.0) @@ -21652,9 +22086,9 @@ snapshots: chalk: 4.1.2 debug: 2.6.9 invariant: 2.2.4 - metro: 0.81.4(bufferutil@4.0.9)(utf-8-validate@5.0.10) - metro-config: 0.81.4(bufferutil@4.0.9)(utf-8-validate@5.0.10) - metro-core: 0.81.4 + metro: 0.81.5(bufferutil@4.0.9)(utf-8-validate@5.0.10) + metro-config: 0.81.5(bufferutil@4.0.9)(utf-8-validate@5.0.10) + metro-core: 0.81.5 readline: 1.3.0 semver: 7.7.2 transitivePeerDependencies: @@ -21736,31 +22170,31 @@ snapshots: dependencies: '@swc/helpers': 0.5.17 - '@react-stately/utils@3.10.7(react@19.1.0)': + '@react-stately/utils@3.10.8(react@19.1.0)': dependencies: '@swc/helpers': 0.5.17 react: 19.1.0 - '@react-types/shared@3.30.0(react@19.1.0)': + '@react-types/shared@3.31.0(react@19.1.0)': dependencies: react: 19.1.0 - '@reown/appkit-common@1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.22.4)': + '@reown/appkit-common@1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.22.4)': dependencies: big.js: 6.2.2 dayjs: 1.11.13 - viem: 2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.22.4) + viem: 2.33.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.22.4) transitivePeerDependencies: - bufferutil - typescript - utf-8-validate - zod - '@reown/appkit-common@1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@reown/appkit-common@1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: big.js: 6.2.2 dayjs: 1.11.13 - viem: 2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + viem: 2.33.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) transitivePeerDependencies: - bufferutil - typescript @@ -21789,13 +22223,13 @@ snapshots: - utf-8-validate - zod - '@reown/appkit-controllers@1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@reown/appkit-controllers@1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: - '@reown/appkit-common': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-wallet': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) - '@walletconnect/universal-provider': 2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-common': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-wallet': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) + '@walletconnect/universal-provider': 2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) valtio: 2.1.5(@types/react@19.1.8)(react@19.1.0) - viem: 2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + viem: 2.33.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -21857,12 +22291,12 @@ snapshots: - utf-8-validate - zod - '@reown/appkit-pay@1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@reown/appkit-pay@1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: - '@reown/appkit-common': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-controllers': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-ui': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-utils': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75) + '@reown/appkit-common': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-controllers': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-ui': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-utils': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75) lit: 3.3.0 valtio: 2.1.5(@types/react@19.1.8)(react@19.1.0) transitivePeerDependencies: @@ -21927,7 +22361,7 @@ snapshots: - utf-8-validate - zod - '@reown/appkit-polyfills@1.7.13': + '@reown/appkit-polyfills@1.7.16': dependencies: buffer: 6.0.3 @@ -21935,13 +22369,13 @@ snapshots: dependencies: buffer: 6.0.3 - '@reown/appkit-scaffold-ui@1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75)': + '@reown/appkit-scaffold-ui@1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75)': dependencies: - '@reown/appkit-common': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-controllers': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-ui': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-utils': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75) - '@reown/appkit-wallet': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) + '@reown/appkit-common': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-controllers': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-ui': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-utils': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75) + '@reown/appkit-wallet': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) lit: 3.3.0 transitivePeerDependencies: - '@azure/app-configuration' @@ -22007,11 +22441,11 @@ snapshots: - valtio - zod - '@reown/appkit-ui@1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@reown/appkit-ui@1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: - '@reown/appkit-common': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-controllers': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-wallet': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) + '@reown/appkit-common': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-controllers': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-wallet': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) lit: 3.3.0 qrcode: 1.5.3 transitivePeerDependencies: @@ -22075,17 +22509,17 @@ snapshots: - utf-8-validate - zod - '@reown/appkit-utils@1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75)': + '@reown/appkit-utils@1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75)': dependencies: - '@reown/appkit-common': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-controllers': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-polyfills': 1.7.13 - '@reown/appkit-wallet': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) + '@reown/appkit-common': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-controllers': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-polyfills': 1.7.16 + '@reown/appkit-wallet': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) '@wallet-standard/wallet': 1.1.0 '@walletconnect/logger': 2.1.2 - '@walletconnect/universal-provider': 2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/universal-provider': 2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) valtio: 2.1.5(@types/react@19.1.8)(react@19.1.0) - viem: 2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + viem: 2.33.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -22150,10 +22584,10 @@ snapshots: - utf-8-validate - zod - '@reown/appkit-wallet@1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': + '@reown/appkit-wallet@1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: - '@reown/appkit-common': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.22.4) - '@reown/appkit-polyfills': 1.7.13 + '@reown/appkit-common': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.22.4) + '@reown/appkit-polyfills': 1.7.16 '@walletconnect/logger': 2.1.2 zod: 3.22.4 transitivePeerDependencies: @@ -22172,22 +22606,22 @@ snapshots: - typescript - utf-8-validate - '@reown/appkit@1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': - dependencies: - '@reown/appkit-common': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-controllers': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-pay': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-polyfills': 1.7.13 - '@reown/appkit-scaffold-ui': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75) - '@reown/appkit-ui': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@reown/appkit-utils': 1.7.13(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75) - '@reown/appkit-wallet': 1.7.13(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) - '@walletconnect/types': 2.21.3(aws4fetch@1.0.20)(ioredis@5.6.1) - '@walletconnect/universal-provider': 2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit@1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + dependencies: + '@reown/appkit-common': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-controllers': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-pay': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-polyfills': 1.7.16 + '@reown/appkit-scaffold-ui': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75) + '@reown/appkit-ui': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@reown/appkit-utils': 1.7.16(@types/react@19.1.8)(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(react@19.1.0)(typescript@5.8.3)(utf-8-validate@5.0.10)(valtio@2.1.5(@types/react@19.1.8)(react@19.1.0))(zod@3.25.75) + '@reown/appkit-wallet': 1.7.16(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) + '@walletconnect/types': 2.21.5(aws4fetch@1.0.20)(ioredis@5.6.1) + '@walletconnect/universal-provider': 2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) bs58: 6.0.0 semver: 7.7.2 valtio: 2.1.5(@types/react@19.1.8)(react@19.1.0) - viem: 2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + viem: 2.33.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -22265,17 +22699,17 @@ snapshots: '@resvg/resvg-wasm@2.4.0': {} - '@rolldown/pluginutils@1.0.0-beta.19': {} + '@rolldown/pluginutils@1.0.0-beta.27': {} '@rollup/plugin-commonjs@28.0.1(rollup@4.35.0)': dependencies: '@rollup/pluginutils': 5.2.0(rollup@4.35.0) commondir: 1.0.1 estree-walker: 2.0.2 - fdir: 6.4.6(picomatch@4.0.2) + fdir: 6.4.6(picomatch@4.0.3) is-reference: 1.2.1 magic-string: 0.30.17 - picomatch: 4.0.2 + picomatch: 4.0.3 optionalDependencies: rollup: 4.35.0 @@ -22283,133 +22717,133 @@ snapshots: dependencies: '@types/estree': 1.0.8 estree-walker: 2.0.2 - picomatch: 4.0.2 + picomatch: 4.0.3 optionalDependencies: rollup: 4.35.0 - '@rollup/pluginutils@5.2.0(rollup@4.44.1)': + '@rollup/pluginutils@5.2.0(rollup@4.45.1)': dependencies: '@types/estree': 1.0.8 estree-walker: 2.0.2 - picomatch: 4.0.2 + picomatch: 4.0.3 optionalDependencies: - rollup: 4.44.1 + rollup: 4.45.1 '@rollup/rollup-android-arm-eabi@4.35.0': optional: true - '@rollup/rollup-android-arm-eabi@4.44.1': + '@rollup/rollup-android-arm-eabi@4.45.1': optional: true '@rollup/rollup-android-arm64@4.35.0': optional: true - '@rollup/rollup-android-arm64@4.44.1': + '@rollup/rollup-android-arm64@4.45.1': optional: true '@rollup/rollup-darwin-arm64@4.35.0': optional: true - '@rollup/rollup-darwin-arm64@4.44.1': + '@rollup/rollup-darwin-arm64@4.45.1': optional: true '@rollup/rollup-darwin-x64@4.35.0': optional: true - '@rollup/rollup-darwin-x64@4.44.1': + '@rollup/rollup-darwin-x64@4.45.1': optional: true '@rollup/rollup-freebsd-arm64@4.35.0': optional: true - '@rollup/rollup-freebsd-arm64@4.44.1': + '@rollup/rollup-freebsd-arm64@4.45.1': optional: true '@rollup/rollup-freebsd-x64@4.35.0': optional: true - '@rollup/rollup-freebsd-x64@4.44.1': + '@rollup/rollup-freebsd-x64@4.45.1': optional: true '@rollup/rollup-linux-arm-gnueabihf@4.35.0': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.44.1': + '@rollup/rollup-linux-arm-gnueabihf@4.45.1': optional: true '@rollup/rollup-linux-arm-musleabihf@4.35.0': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.44.1': + '@rollup/rollup-linux-arm-musleabihf@4.45.1': optional: true '@rollup/rollup-linux-arm64-gnu@4.35.0': optional: true - '@rollup/rollup-linux-arm64-gnu@4.44.1': + '@rollup/rollup-linux-arm64-gnu@4.45.1': optional: true '@rollup/rollup-linux-arm64-musl@4.35.0': optional: true - '@rollup/rollup-linux-arm64-musl@4.44.1': + '@rollup/rollup-linux-arm64-musl@4.45.1': optional: true '@rollup/rollup-linux-loongarch64-gnu@4.35.0': optional: true - '@rollup/rollup-linux-loongarch64-gnu@4.44.1': + '@rollup/rollup-linux-loongarch64-gnu@4.45.1': optional: true '@rollup/rollup-linux-powerpc64le-gnu@4.35.0': optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.44.1': + '@rollup/rollup-linux-powerpc64le-gnu@4.45.1': optional: true '@rollup/rollup-linux-riscv64-gnu@4.35.0': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.44.1': + '@rollup/rollup-linux-riscv64-gnu@4.45.1': optional: true - '@rollup/rollup-linux-riscv64-musl@4.44.1': + '@rollup/rollup-linux-riscv64-musl@4.45.1': optional: true '@rollup/rollup-linux-s390x-gnu@4.35.0': optional: true - '@rollup/rollup-linux-s390x-gnu@4.44.1': + '@rollup/rollup-linux-s390x-gnu@4.45.1': optional: true '@rollup/rollup-linux-x64-gnu@4.35.0': optional: true - '@rollup/rollup-linux-x64-gnu@4.44.1': + '@rollup/rollup-linux-x64-gnu@4.45.1': optional: true '@rollup/rollup-linux-x64-musl@4.35.0': optional: true - '@rollup/rollup-linux-x64-musl@4.44.1': + '@rollup/rollup-linux-x64-musl@4.45.1': optional: true '@rollup/rollup-win32-arm64-msvc@4.35.0': optional: true - '@rollup/rollup-win32-arm64-msvc@4.44.1': + '@rollup/rollup-win32-arm64-msvc@4.45.1': optional: true '@rollup/rollup-win32-ia32-msvc@4.35.0': optional: true - '@rollup/rollup-win32-ia32-msvc@4.44.1': + '@rollup/rollup-win32-ia32-msvc@4.45.1': optional: true '@rollup/rollup-win32-x64-msvc@4.35.0': optional: true - '@rollup/rollup-win32-x64-msvc@4.44.1': + '@rollup/rollup-win32-x64-msvc@4.45.1': optional: true '@rtsao/scc@1.1.0': {} @@ -22429,7 +22863,7 @@ snapshots: '@safe-global/safe-apps-sdk@9.1.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: '@safe-global/safe-gateway-typescript-sdk': 3.23.1 - viem: 2.28.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + viem: 2.31.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) transitivePeerDependencies: - bufferutil - typescript @@ -22438,7 +22872,7 @@ snapshots: '@safe-global/safe-gateway-typescript-sdk@3.23.1': {} - '@scalar/api-client@2.5.13(axios@1.10.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(tailwindcss@3.4.17)(typescript@5.8.3)': + '@scalar/api-client@2.5.13(axios@1.11.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(tailwindcss@3.4.17)(typescript@5.8.3)': dependencies: '@headlessui/tailwindcss': 0.2.2(tailwindcss@3.4.17) '@headlessui/vue': 1.7.23(vue@3.5.13(typescript@5.8.3)) @@ -22461,14 +22895,14 @@ snapshots: '@scalar/use-tooltip': 1.1.0(typescript@5.8.3) '@types/har-format': 1.2.16 '@vueuse/core': 10.11.1(vue@3.5.13(typescript@5.8.3)) - '@vueuse/integrations': 11.3.0(axios@1.10.0)(focus-trap@7.6.4)(fuse.js@7.1.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(vue@3.5.13(typescript@5.8.3)) + '@vueuse/integrations': 11.3.0(axios@1.11.0)(focus-trap@7.6.4)(fuse.js@7.1.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(vue@3.5.13(typescript@5.8.3)) focus-trap: 7.6.4 fuse.js: 7.1.0 microdiff: 1.5.0 nanoid: 5.1.5 pretty-bytes: 6.1.1 pretty-ms: 8.0.0 - shell-quote: 1.8.2 + shell-quote: 1.8.3 type-fest: 4.41.0 vue: 3.5.13(typescript@5.8.3) vue-router: 4.5.0(vue@3.5.13(typescript@5.8.3)) @@ -22491,9 +22925,9 @@ snapshots: - typescript - universal-cookie - '@scalar/api-reference-react@0.7.25(axios@1.10.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(react@19.1.0)(tailwindcss@3.4.17)(typescript@5.8.3)': + '@scalar/api-reference-react@0.7.25(axios@1.11.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(react@19.1.0)(tailwindcss@3.4.17)(typescript@5.8.3)': dependencies: - '@scalar/api-reference': 1.32.1(axios@1.10.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(tailwindcss@3.4.17)(typescript@5.8.3) + '@scalar/api-reference': 1.32.1(axios@1.11.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(tailwindcss@3.4.17)(typescript@5.8.3) '@scalar/types': 0.2.5 react: 19.1.0 transitivePeerDependencies: @@ -22512,11 +22946,11 @@ snapshots: - typescript - universal-cookie - '@scalar/api-reference@1.32.1(axios@1.10.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(tailwindcss@3.4.17)(typescript@5.8.3)': + '@scalar/api-reference@1.32.1(axios@1.11.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(tailwindcss@3.4.17)(typescript@5.8.3)': dependencies: '@floating-ui/vue': 1.1.6(vue@3.5.13(typescript@5.8.3)) '@headlessui/vue': 1.7.23(vue@3.5.13(typescript@5.8.3)) - '@scalar/api-client': 2.5.13(axios@1.10.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(tailwindcss@3.4.17)(typescript@5.8.3) + '@scalar/api-client': 2.5.13(axios@1.11.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(tailwindcss@3.4.17)(typescript@5.8.3) '@scalar/code-highlight': 0.1.4 '@scalar/components': 0.14.14(typescript@5.8.3) '@scalar/helpers': 0.0.5 @@ -22772,7 +23206,7 @@ snapshots: '@scure/bip32@1.7.0': dependencies: - '@noble/curves': 1.9.2 + '@noble/curves': 1.9.4 '@noble/hashes': 1.8.0 '@scure/base': 1.2.6 @@ -22877,7 +23311,7 @@ snapshots: '@sentry/core@9.34.0': {} - '@sentry/nextjs@9.34.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)(webpack@5.99.9(esbuild@0.25.5))': + '@sentry/nextjs@9.34.0(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(encoding@0.1.13)(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react@19.1.0)(webpack@5.99.9)': dependencies: '@opentelemetry/api': 1.9.0 '@opentelemetry/semantic-conventions': 1.34.0 @@ -22888,7 +23322,7 @@ snapshots: '@sentry/opentelemetry': 9.34.0(@opentelemetry/api@1.9.0)(@opentelemetry/context-async-hooks@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/core@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/instrumentation@0.57.2(@opentelemetry/api@1.9.0))(@opentelemetry/sdk-trace-base@1.30.1(@opentelemetry/api@1.9.0))(@opentelemetry/semantic-conventions@1.34.0) '@sentry/react': 9.34.0(react@19.1.0) '@sentry/vercel-edge': 9.34.0 - '@sentry/webpack-plugin': 3.5.0(encoding@0.1.13)(webpack@5.99.9(esbuild@0.25.5)) + '@sentry/webpack-plugin': 3.5.0(encoding@0.1.13)(webpack@5.99.9) chalk: 3.0.0 next: 15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) resolve: 1.22.8 @@ -22965,12 +23399,12 @@ snapshots: '@opentelemetry/api': 1.9.0 '@sentry/core': 9.34.0 - '@sentry/webpack-plugin@3.5.0(encoding@0.1.13)(webpack@5.99.9(esbuild@0.25.5))': + '@sentry/webpack-plugin@3.5.0(encoding@0.1.13)(webpack@5.99.9)': dependencies: '@sentry/bundler-plugin-core': 3.5.0(encoding@0.1.13) unplugin: 1.0.1 uuid: 9.0.1 - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.99.9 transitivePeerDependencies: - encoding - supports-color @@ -23065,11 +23499,11 @@ snapshots: dependencies: size-limit: 11.2.0 - '@size-limit/preset-big-lib@11.2.0(bufferutil@4.0.9)(size-limit@11.2.0)(utf-8-validate@5.0.10)': + '@size-limit/preset-big-lib@11.2.0(bufferutil@4.0.9)(esbuild@0.25.8)(size-limit@11.2.0)(utf-8-validate@5.0.10)': dependencies: '@size-limit/file': 11.2.0(size-limit@11.2.0) '@size-limit/time': 11.2.0(bufferutil@4.0.9)(size-limit@11.2.0)(utf-8-validate@5.0.10) - '@size-limit/webpack': 11.2.0(size-limit@11.2.0) + '@size-limit/webpack': 11.2.0(esbuild@0.25.8)(size-limit@11.2.0) size-limit: 11.2.0 transitivePeerDependencies: - '@swc/core' @@ -23091,11 +23525,11 @@ snapshots: - supports-color - utf-8-validate - '@size-limit/webpack@11.2.0(size-limit@11.2.0)': + '@size-limit/webpack@11.2.0(esbuild@0.25.8)(size-limit@11.2.0)': dependencies: nanoid: 5.1.5 size-limit: 11.2.0 - webpack: 5.99.9 + webpack: 5.100.2(esbuild@0.25.8) transitivePeerDependencies: - '@swc/core' - esbuild @@ -23139,7 +23573,7 @@ snapshots: '@smithy/util-utf8': 3.0.0 tslib: 2.8.1 - '@smithy/core@3.6.0': + '@smithy/core@3.7.2': dependencies: '@smithy/middleware-serde': 4.0.8 '@smithy/protocol-http': 5.1.2 @@ -23147,7 +23581,7 @@ snapshots: '@smithy/util-base64': 4.0.0 '@smithy/util-body-length-browser': 4.0.0 '@smithy/util-middleware': 4.0.4 - '@smithy/util-stream': 4.2.2 + '@smithy/util-stream': 4.2.3 '@smithy/util-utf8': 4.0.0 tslib: 2.8.1 @@ -23213,7 +23647,7 @@ snapshots: '@smithy/util-base64': 3.0.0 tslib: 2.8.1 - '@smithy/fetch-http-handler@5.0.4': + '@smithy/fetch-http-handler@5.1.0': dependencies: '@smithy/protocol-http': 5.1.2 '@smithy/querystring-builder': 4.0.4 @@ -23280,9 +23714,9 @@ snapshots: '@smithy/util-middleware': 3.0.11 tslib: 2.8.1 - '@smithy/middleware-endpoint@4.1.13': + '@smithy/middleware-endpoint@4.1.17': dependencies: - '@smithy/core': 3.6.0 + '@smithy/core': 3.7.2 '@smithy/middleware-serde': 4.0.8 '@smithy/node-config-provider': 4.1.3 '@smithy/shared-ini-file-loader': 4.0.4 @@ -23303,12 +23737,12 @@ snapshots: tslib: 2.8.1 uuid: 9.0.1 - '@smithy/middleware-retry@4.1.14': + '@smithy/middleware-retry@4.1.18': dependencies: '@smithy/node-config-provider': 4.1.3 '@smithy/protocol-http': 5.1.2 '@smithy/service-error-classification': 4.0.6 - '@smithy/smithy-client': 4.4.5 + '@smithy/smithy-client': 4.4.9 '@smithy/types': 4.3.1 '@smithy/util-middleware': 4.0.4 '@smithy/util-retry': 4.0.6 @@ -23358,7 +23792,7 @@ snapshots: '@smithy/types': 3.7.2 tslib: 2.8.1 - '@smithy/node-http-handler@4.0.6': + '@smithy/node-http-handler@4.1.0': dependencies: '@smithy/abort-controller': 4.0.4 '@smithy/protocol-http': 5.1.2 @@ -23457,14 +23891,14 @@ snapshots: '@smithy/util-stream': 3.3.4 tslib: 2.8.1 - '@smithy/smithy-client@4.4.5': + '@smithy/smithy-client@4.4.9': dependencies: - '@smithy/core': 3.6.0 - '@smithy/middleware-endpoint': 4.1.13 + '@smithy/core': 3.7.2 + '@smithy/middleware-endpoint': 4.1.17 '@smithy/middleware-stack': 4.0.4 '@smithy/protocol-http': 5.1.2 '@smithy/types': 4.3.1 - '@smithy/util-stream': 4.2.2 + '@smithy/util-stream': 4.2.3 tslib: 2.8.1 '@smithy/types@3.7.2': @@ -23546,10 +23980,10 @@ snapshots: bowser: 2.11.0 tslib: 2.8.1 - '@smithy/util-defaults-mode-browser@4.0.21': + '@smithy/util-defaults-mode-browser@4.0.25': dependencies: '@smithy/property-provider': 4.0.4 - '@smithy/smithy-client': 4.4.5 + '@smithy/smithy-client': 4.4.9 '@smithy/types': 4.3.1 bowser: 2.11.0 tslib: 2.8.1 @@ -23564,13 +23998,13 @@ snapshots: '@smithy/types': 3.7.2 tslib: 2.8.1 - '@smithy/util-defaults-mode-node@4.0.21': + '@smithy/util-defaults-mode-node@4.0.25': dependencies: '@smithy/config-resolver': 4.1.4 '@smithy/credential-provider-imds': 4.0.6 '@smithy/node-config-provider': 4.1.3 '@smithy/property-provider': 4.0.4 - '@smithy/smithy-client': 4.4.5 + '@smithy/smithy-client': 4.4.9 '@smithy/types': 4.3.1 tslib: 2.8.1 @@ -23627,10 +24061,10 @@ snapshots: '@smithy/util-utf8': 3.0.0 tslib: 2.8.1 - '@smithy/util-stream@4.2.2': + '@smithy/util-stream@4.2.3': dependencies: - '@smithy/fetch-http-handler': 5.0.4 - '@smithy/node-http-handler': 4.0.6 + '@smithy/fetch-http-handler': 5.1.0 + '@smithy/node-http-handler': 4.1.0 '@smithy/types': 4.3.1 '@smithy/util-base64': 4.0.0 '@smithy/util-buffer-from': 4.0.0 @@ -23673,21 +24107,21 @@ snapshots: dependencies: buffer: 6.0.3 - '@solana/codecs-core@2.1.1(typescript@5.8.3)': + '@solana/codecs-core@2.3.0(typescript@5.8.3)': dependencies: - '@solana/errors': 2.1.1(typescript@5.8.3) + '@solana/errors': 2.3.0(typescript@5.8.3) typescript: 5.8.3 - '@solana/codecs-numbers@2.1.1(typescript@5.8.3)': + '@solana/codecs-numbers@2.3.0(typescript@5.8.3)': dependencies: - '@solana/codecs-core': 2.1.1(typescript@5.8.3) - '@solana/errors': 2.1.1(typescript@5.8.3) + '@solana/codecs-core': 2.3.0(typescript@5.8.3) + '@solana/errors': 2.3.0(typescript@5.8.3) typescript: 5.8.3 - '@solana/errors@2.1.1(typescript@5.8.3)': + '@solana/errors@2.3.0(typescript@5.8.3)': dependencies: chalk: 5.4.1 - commander: 13.1.0 + commander: 14.0.0 typescript: 5.8.3 '@solana/wallet-adapter-base@0.9.23(@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10))': @@ -23709,7 +24143,7 @@ snapshots: '@solana/wallet-standard-util@1.1.2': dependencies: - '@noble/curves': 1.8.2 + '@noble/curves': 1.9.4 '@solana/wallet-standard-chains': 1.1.1 '@solana/wallet-standard-features': 1.3.0 @@ -23739,11 +24173,11 @@ snapshots: '@solana/web3.js@1.98.2(bufferutil@4.0.9)(encoding@0.1.13)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: - '@babel/runtime': 7.27.6 - '@noble/curves': 1.8.2 - '@noble/hashes': 1.7.2 + '@babel/runtime': 7.28.2 + '@noble/curves': 1.9.4 + '@noble/hashes': 1.8.0 '@solana/buffer-layout': 4.0.1 - '@solana/codecs-numbers': 2.1.1(typescript@5.8.3) + '@solana/codecs-numbers': 2.3.0(typescript@5.8.3) agentkeepalive: 4.6.0 bn.js: 5.2.2 borsh: 0.7.0 @@ -23752,7 +24186,7 @@ snapshots: fast-stable-stringify: 1.0.0 jayson: 4.2.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) node-fetch: 2.7.0(encoding@0.1.13) - rpc-websockets: 9.1.1 + rpc-websockets: 9.1.2 superstruct: 2.0.2 transitivePeerDependencies: - bufferutil @@ -23808,29 +24242,29 @@ snapshots: dependencies: storybook: 9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5) - '@storybook/builder-vite@9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': + '@storybook/builder-vite@9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: '@storybook/csf-plugin': 9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10)) storybook: 9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10) ts-dedent: 2.2.0 - vite: 7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) - '@storybook/builder-webpack5@9.0.15(esbuild@0.25.5)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3)': + '@storybook/builder-webpack5@9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3)': dependencies: '@storybook/core-webpack': 9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10)) case-sensitive-paths-webpack-plugin: 2.4.0 cjs-module-lexer: 1.4.3 - css-loader: 6.11.0(webpack@5.99.9(esbuild@0.25.5)) + css-loader: 6.11.0(webpack@5.99.9) es-module-lexer: 1.7.0 - fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.8.3)(webpack@5.99.9(esbuild@0.25.5)) - html-webpack-plugin: 5.6.3(webpack@5.99.9(esbuild@0.25.5)) + fork-ts-checker-webpack-plugin: 8.0.0(typescript@5.8.3)(webpack@5.99.9) + html-webpack-plugin: 5.6.3(webpack@5.99.9) magic-string: 0.30.17 storybook: 9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10) - style-loader: 3.3.4(webpack@5.99.9(esbuild@0.25.5)) - terser-webpack-plugin: 5.3.14(esbuild@0.25.5)(webpack@5.99.9(esbuild@0.25.5)) + style-loader: 3.3.4(webpack@5.99.9) + terser-webpack-plugin: 5.3.14(webpack@5.99.9) ts-dedent: 2.2.0 - webpack: 5.99.9(esbuild@0.25.5) - webpack-dev-middleware: 6.1.3(webpack@5.99.9(esbuild@0.25.5)) + webpack: 5.99.9 + webpack-dev-middleware: 6.1.3(webpack@5.99.9) webpack-hot-middleware: 2.26.1 webpack-virtual-modules: 0.6.2 optionalDependencies: @@ -23896,7 +24330,7 @@ snapshots: react: 19.1.0 react-dom: 19.1.0(react@19.1.0) - '@storybook/nextjs@9.0.15(esbuild@0.25.5)(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(type-fest@4.41.0)(typescript@5.8.3)(webpack-hot-middleware@2.26.1)(webpack@5.99.9(esbuild@0.25.5))': + '@storybook/nextjs@9.0.15(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(type-fest@4.41.0)(typescript@5.8.3)(webpack-hot-middleware@2.26.1)(webpack@5.99.9)': dependencies: '@babel/core': 7.28.0 '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.28.0) @@ -23911,33 +24345,33 @@ snapshots: '@babel/preset-react': 7.27.1(@babel/core@7.28.0) '@babel/preset-typescript': 7.27.1(@babel/core@7.28.0) '@babel/runtime': 7.27.6 - '@pmmmwh/react-refresh-webpack-plugin': 0.5.17(react-refresh@0.14.2)(type-fest@4.41.0)(webpack-hot-middleware@2.26.1)(webpack@5.99.9(esbuild@0.25.5)) - '@storybook/builder-webpack5': 9.0.15(esbuild@0.25.5)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3) - '@storybook/preset-react-webpack': 9.0.15(esbuild@0.25.5)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3) + '@pmmmwh/react-refresh-webpack-plugin': 0.5.17(react-refresh@0.14.2)(type-fest@4.41.0)(webpack-hot-middleware@2.26.1)(webpack@5.99.9) + '@storybook/builder-webpack5': 9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3) + '@storybook/preset-react-webpack': 9.0.15(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3) '@storybook/react': 9.0.15(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3) '@types/semver': 7.7.0 - babel-loader: 9.2.1(@babel/core@7.28.0)(webpack@5.99.9(esbuild@0.25.5)) - css-loader: 6.11.0(webpack@5.99.9(esbuild@0.25.5)) + babel-loader: 9.2.1(@babel/core@7.28.0)(webpack@5.99.9) + css-loader: 6.11.0(webpack@5.99.9) image-size: 2.0.2 loader-utils: 3.3.1 next: 15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - node-polyfill-webpack-plugin: 2.0.1(webpack@5.99.9(esbuild@0.25.5)) + node-polyfill-webpack-plugin: 2.0.1(webpack@5.99.9) postcss: 8.5.6 - postcss-loader: 8.1.1(postcss@8.5.6)(typescript@5.8.3)(webpack@5.99.9(esbuild@0.25.5)) + postcss-loader: 8.1.1(postcss@8.5.6)(typescript@5.8.3)(webpack@5.99.9) react: 19.1.0 react-dom: 19.1.0(react@19.1.0) react-refresh: 0.14.2 resolve-url-loader: 5.0.0 - sass-loader: 14.2.1(webpack@5.99.9(esbuild@0.25.5)) + sass-loader: 14.2.1(webpack@5.99.9) semver: 7.7.2 storybook: 9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10) - style-loader: 3.3.4(webpack@5.99.9(esbuild@0.25.5)) + style-loader: 3.3.4(webpack@5.99.9) styled-jsx: 5.1.7(@babel/core@7.28.0)(react@19.1.0) tsconfig-paths: 4.2.0 tsconfig-paths-webpack-plugin: 4.2.0 optionalDependencies: typescript: 5.8.3 - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.99.9 transitivePeerDependencies: - '@rspack/core' - '@swc/core' @@ -23956,7 +24390,7 @@ snapshots: - webpack-hot-middleware - webpack-plugin-serve - '@storybook/nextjs@9.0.15(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5))(type-fest@4.41.0)(typescript@5.8.3)(webpack-hot-middleware@2.26.1)(webpack@5.99.9)': + '@storybook/nextjs@9.0.15(next@15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5))(type-fest@4.41.0)(typescript@5.8.3)(webpack-hot-middleware@2.26.1)(webpack@5.100.2)': dependencies: '@babel/core': 7.28.0 '@babel/plugin-syntax-bigint': 7.8.3(@babel/core@7.28.0) @@ -23971,33 +24405,33 @@ snapshots: '@babel/preset-react': 7.27.1(@babel/core@7.28.0) '@babel/preset-typescript': 7.27.1(@babel/core@7.28.0) '@babel/runtime': 7.27.6 - '@pmmmwh/react-refresh-webpack-plugin': 0.5.17(react-refresh@0.14.2)(type-fest@4.41.0)(webpack-hot-middleware@2.26.1)(webpack@5.99.9) + '@pmmmwh/react-refresh-webpack-plugin': 0.5.17(react-refresh@0.14.2)(type-fest@4.41.0)(webpack-hot-middleware@2.26.1)(webpack@5.100.2) '@storybook/builder-webpack5': 9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5))(typescript@5.8.3) '@storybook/preset-react-webpack': 9.0.15(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5))(typescript@5.8.3) '@storybook/react': 9.0.15(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5))(typescript@5.8.3) '@types/semver': 7.7.0 - babel-loader: 9.2.1(@babel/core@7.28.0)(webpack@5.99.9) - css-loader: 6.11.0(webpack@5.99.9) + babel-loader: 9.2.1(@babel/core@7.28.0)(webpack@5.100.2) + css-loader: 6.11.0(webpack@5.100.2) image-size: 2.0.2 loader-utils: 3.3.1 next: 15.3.5(@babel/core@7.28.0)(@opentelemetry/api@1.9.0)(@playwright/test@1.53.2)(react-dom@19.1.0(react@19.1.0))(react@19.1.0) - node-polyfill-webpack-plugin: 2.0.1(webpack@5.99.9) + node-polyfill-webpack-plugin: 2.0.1(webpack@5.100.2) postcss: 8.5.6 - postcss-loader: 8.1.1(postcss@8.5.6)(typescript@5.8.3)(webpack@5.99.9) + postcss-loader: 8.1.1(postcss@8.5.6)(typescript@5.8.3)(webpack@5.100.2) react: 19.1.0 react-dom: 19.1.0(react@19.1.0) react-refresh: 0.14.2 resolve-url-loader: 5.0.0 - sass-loader: 14.2.1(webpack@5.99.9) + sass-loader: 14.2.1(webpack@5.100.2) semver: 7.7.2 storybook: 9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5) - style-loader: 3.3.4(webpack@5.99.9) + style-loader: 3.3.4(webpack@5.100.2) styled-jsx: 5.1.7(@babel/core@7.28.0)(react@19.1.0) tsconfig-paths: 4.2.0 tsconfig-paths-webpack-plugin: 4.2.0 optionalDependencies: typescript: 5.8.3 - webpack: 5.99.9 + webpack: 5.100.2 transitivePeerDependencies: - '@rspack/core' - '@swc/core' @@ -24016,10 +24450,10 @@ snapshots: - webpack-hot-middleware - webpack-plugin-serve - '@storybook/preset-react-webpack@9.0.15(esbuild@0.25.5)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3)': + '@storybook/preset-react-webpack@9.0.15(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3)': dependencies: '@storybook/core-webpack': 9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10)) - '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.8.3)(webpack@5.99.9(esbuild@0.25.5)) + '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0(typescript@5.8.3)(webpack@5.99.9) '@types/semver': 7.7.0 find-up: 7.0.0 magic-string: 0.30.17 @@ -24030,7 +24464,7 @@ snapshots: semver: 7.7.2 storybook: 9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10) tsconfig-paths: 4.2.0 - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.99.9 optionalDependencies: typescript: 5.8.3 transitivePeerDependencies: @@ -24064,20 +24498,6 @@ snapshots: - uglify-js - webpack-cli - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.8.3)(webpack@5.99.9(esbuild@0.25.5))': - dependencies: - debug: 4.4.1(supports-color@8.1.1) - endent: 2.1.0 - find-cache-dir: 3.3.2 - flat-cache: 3.2.0 - micromatch: 4.0.8 - react-docgen-typescript: 2.4.0(typescript@5.8.3) - tslib: 2.8.1 - typescript: 5.8.3 - webpack: 5.99.9(esbuild@0.25.5) - transitivePeerDependencies: - - supports-color - '@storybook/react-docgen-typescript-plugin@1.0.6--canary.9.0c3f3b7.0(typescript@5.8.3)(webpack@5.99.9)': dependencies: debug: 4.4.1(supports-color@8.1.1) @@ -24104,11 +24524,11 @@ snapshots: react-dom: 19.1.0(react@19.1.0) storybook: 9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@6.0.5) - '@storybook/react-vite@9.0.15(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(rollup@4.44.1)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3)(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': + '@storybook/react-vite@9.0.15(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(rollup@4.45.1)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3)(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: - '@joshwooding/vite-plugin-react-docgen-typescript': 0.6.1(typescript@5.8.3)(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) - '@rollup/pluginutils': 5.2.0(rollup@4.44.1) - '@storybook/builder-vite': 9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) + '@joshwooding/vite-plugin-react-docgen-typescript': 0.6.1(typescript@5.8.3)(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) + '@rollup/pluginutils': 5.2.0(rollup@4.45.1) + '@storybook/builder-vite': 9.0.15(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) '@storybook/react': 9.0.15(react-dom@19.1.0(react@19.1.0))(react@19.1.0)(storybook@9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10))(typescript@5.8.3) find-up: 7.0.0 magic-string: 0.30.17 @@ -24118,7 +24538,7 @@ snapshots: resolve: 1.22.10 storybook: 9.0.15(@testing-library/dom@10.4.0)(bufferutil@4.0.9)(prettier@3.6.2)(utf-8-validate@5.0.10) tsconfig-paths: 4.2.0 - vite: 7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) transitivePeerDependencies: - rollup - supports-color @@ -24466,7 +24886,7 @@ snapshots: '@swagger-api/apidom-core': 1.0.0-beta.42 '@swagger-api/apidom-error': 1.0.0-beta.42 '@types/ramda': 0.30.2 - axios: 1.10.0 + axios: 1.11.0 minimatch: 7.4.6 process: 0.11.10 ramda: 0.30.1 @@ -24550,7 +24970,7 @@ snapshots: '@testing-library/dom@10.4.0': dependencies: '@babel/code-frame': 7.27.1 - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@types/aria-query': 5.0.4 aria-query: 5.3.0 chalk: 4.1.2 @@ -24570,7 +24990,7 @@ snapshots: '@testing-library/react@16.3.0(@testing-library/dom@10.4.0)(@types/react-dom@19.1.6(@types/react@19.1.8))(@types/react@19.1.8)(react-dom@19.1.0(react@19.1.0))(react@19.1.0)': dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@testing-library/dom': 10.4.0 react: 19.1.0 react-dom: 19.1.0(react@19.1.0) @@ -24598,6 +25018,11 @@ snapshots: transitivePeerDependencies: - debug + '@tybys/wasm-util@0.10.0': + dependencies: + tslib: 2.8.1 + optional: true + '@tybys/wasm-util@0.9.0': dependencies: tslib: 2.8.1 @@ -24612,23 +25037,23 @@ snapshots: '@types/babel__core@7.20.5': dependencies: '@babel/parser': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@types/babel__generator': 7.27.0 '@types/babel__template': 7.4.4 '@types/babel__traverse': 7.20.7 '@types/babel__generator@7.27.0': dependencies: - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@types/babel__template@7.4.4': dependencies: '@babel/parser': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@types/babel__traverse@7.20.7': dependencies: - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@types/chai@5.2.2': dependencies: @@ -24656,7 +25081,7 @@ snapshots: '@types/cross-spawn@6.0.6': dependencies: - '@types/node': 22.14.1 + '@types/node': 24.1.0 '@types/d3-array@3.2.1': {} @@ -24684,7 +25109,7 @@ snapshots: '@types/debug@4.1.12': dependencies: - '@types/ms': 0.7.34 + '@types/ms': 2.1.0 '@types/deep-eql@4.0.2': {} @@ -24720,7 +25145,7 @@ snapshots: '@types/graceful-fs@4.1.9': dependencies: - '@types/node': 22.14.1 + '@types/node': 24.1.0 '@types/har-format@1.2.16': {} @@ -24773,19 +25198,19 @@ snapshots: '@types/mdx@2.0.13': {} - '@types/ms@0.7.34': {} + '@types/ms@2.1.0': {} '@types/mysql@2.15.26': dependencies: '@types/node': 22.14.1 - '@types/node-forge@1.3.11': + '@types/node-forge@1.3.13': dependencies: - '@types/node': 22.14.1 + '@types/node': 24.1.0 '@types/node@12.20.55': {} - '@types/node@20.19.4': + '@types/node@20.19.9': dependencies: undici-types: 6.21.0 optional: true @@ -24798,7 +25223,7 @@ snapshots: dependencies: undici-types: 6.19.8 - '@types/node@24.0.10': + '@types/node@24.1.0': dependencies: undici-types: 7.8.0 @@ -24822,7 +25247,7 @@ snapshots: '@types/prompts@2.4.9': dependencies: - '@types/node': 22.14.1 + '@types/node': 24.1.0 kleur: 3.0.3 '@types/qrcode@1.5.5': @@ -24921,7 +25346,7 @@ snapshots: '@types/yauzl@2.10.3': dependencies: - '@types/node': 22.14.1 + '@types/node': 24.1.0 optional: true '@typescript-eslint/eslint-plugin@7.14.1(@typescript-eslint/parser@7.14.1(eslint@8.57.0)(typescript@5.8.3))(eslint@8.57.0)(typescript@5.8.3)': @@ -25174,19 +25599,19 @@ snapshots: - debug - utf-8-validate - '@vitejs/plugin-react@4.6.0(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': + '@vitejs/plugin-react@4.7.0(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: '@babel/core': 7.28.0 '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.28.0) '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/core@7.28.0) - '@rolldown/pluginutils': 1.0.0-beta.19 + '@rolldown/pluginutils': 1.0.0-beta.27 '@types/babel__core': 7.20.5 react-refresh: 0.17.0 - vite: 7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 @@ -25201,11 +25626,11 @@ snapshots: std-env: 3.9.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) transitivePeerDependencies: - supports-color - '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.0.10)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 @@ -25220,7 +25645,7 @@ snapshots: std-env: 3.9.0 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.0.10)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) transitivePeerDependencies: - supports-color @@ -25229,26 +25654,26 @@ snapshots: '@types/chai': 5.2.2 '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 - chai: 5.2.0 + chai: 5.2.1 tinyrainbow: 2.0.0 - '@vitest/mocker@3.2.4(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(vite@7.0.1(@types/node@22.14.1)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': + '@vitest/mocker@3.2.4(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(vite@7.0.1(@types/node@22.14.1)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: msw: 2.10.2(@types/node@22.14.1)(typescript@5.8.3) - vite: 7.0.1(@types/node@22.14.1)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 7.0.1(@types/node@22.14.1)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) - '@vitest/mocker@3.2.4(msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3))(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': + '@vitest/mocker@3.2.4(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: - msw: 2.7.5(@types/node@24.0.10)(typescript@5.8.3) - vite: 7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + msw: 2.7.5(@types/node@24.1.0)(typescript@5.8.3) + vite: 7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) '@vitest/pretty-format@3.2.4': dependencies: @@ -25279,12 +25704,12 @@ snapshots: sirv: 3.0.1 tinyglobby: 0.2.14 tinyrainbow: 2.0.0 - vitest: 3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vitest: 3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) '@vitest/utils@3.2.4': dependencies: '@vitest/pretty-format': 3.2.4 - loupe: 3.1.4 + loupe: 3.2.0 tinyrainbow: 2.0.0 '@vue/compiler-core@3.5.13': @@ -25363,13 +25788,13 @@ snapshots: - '@vue/composition-api' - vue - '@vueuse/integrations@11.3.0(axios@1.10.0)(focus-trap@7.6.4)(fuse.js@7.1.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(vue@3.5.13(typescript@5.8.3))': + '@vueuse/integrations@11.3.0(axios@1.11.0)(focus-trap@7.6.4)(fuse.js@7.1.0)(idb-keyval@6.2.2)(nprogress@0.2.0)(qrcode@1.5.4)(vue@3.5.13(typescript@5.8.3))': dependencies: '@vueuse/core': 11.3.0(vue@3.5.13(typescript@5.8.3)) '@vueuse/shared': 11.3.0(vue@3.5.13(typescript@5.8.3)) vue-demi: 0.14.10(vue@3.5.13(typescript@5.8.3)) optionalDependencies: - axios: 1.10.0 + axios: 1.11.0 focus-trap: 7.6.4 fuse.js: 7.1.0 idb-keyval: 6.2.2 @@ -25652,7 +26077,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/core@2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@walletconnect/core@2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-provider': 1.0.14 @@ -25665,8 +26090,8 @@ snapshots: '@walletconnect/relay-auth': 1.1.0 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.21.3(aws4fetch@1.0.20)(ioredis@5.6.1) - '@walletconnect/utils': 2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/types': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1) + '@walletconnect/utils': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) '@walletconnect/window-getters': 1.0.1 es-toolkit: 1.39.3 events: 3.3.0 @@ -25695,7 +26120,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/core@2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@walletconnect/core@2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-provider': 1.0.14 @@ -25708,8 +26133,8 @@ snapshots: '@walletconnect/relay-auth': 1.1.0 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1) - '@walletconnect/utils': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/types': 2.21.5(aws4fetch@1.0.20)(ioredis@5.6.1) + '@walletconnect/utils': 2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) '@walletconnect/window-getters': 1.0.1 es-toolkit: 1.39.3 events: 3.3.0 @@ -25873,7 +26298,7 @@ snapshots: dependencies: '@walletconnect/safe-json': 1.0.2 idb-keyval: 6.2.2 - unstorage: 1.14.4(aws4fetch@1.0.20)(idb-keyval@6.2.2)(ioredis@5.6.1) + unstorage: 1.16.1(aws4fetch@1.0.20)(idb-keyval@6.2.2)(ioredis@5.6.1) optionalDependencies: '@react-native-async-storage/async-storage': 2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)) transitivePeerDependencies: @@ -26093,16 +26518,16 @@ snapshots: - utf-8-validate - zod - '@walletconnect/sign-client@2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@walletconnect/sign-client@2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: - '@walletconnect/core': 2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/core': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.1.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.21.3(aws4fetch@1.0.20)(ioredis@5.6.1) - '@walletconnect/utils': 2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/types': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1) + '@walletconnect/utils': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) events: 3.3.0 transitivePeerDependencies: - '@azure/app-configuration' @@ -26128,16 +26553,16 @@ snapshots: - utf-8-validate - zod - '@walletconnect/sign-client@2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@walletconnect/sign-client@2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: - '@walletconnect/core': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/core': 2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.1.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1) - '@walletconnect/utils': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/types': 2.21.5(aws4fetch@1.0.20)(ioredis@5.6.1) + '@walletconnect/utils': 2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) events: 3.3.0 transitivePeerDependencies: - '@azure/app-configuration' @@ -26279,7 +26704,7 @@ snapshots: - ioredis - uploadthing - '@walletconnect/types@2.21.3(aws4fetch@1.0.20)(ioredis@5.6.1)': + '@walletconnect/types@2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1)': dependencies: '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.2 @@ -26307,7 +26732,7 @@ snapshots: - ioredis - uploadthing - '@walletconnect/types@2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1)': + '@walletconnect/types@2.21.5(aws4fetch@1.0.20)(ioredis@5.6.1)': dependencies: '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.2 @@ -26452,7 +26877,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/universal-provider@2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@walletconnect/universal-provider@2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: '@walletconnect/events': 1.0.1 '@walletconnect/jsonrpc-http-connection': 1.0.8(encoding@0.1.13) @@ -26461,9 +26886,9 @@ snapshots: '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1) '@walletconnect/logger': 2.1.2 - '@walletconnect/sign-client': 2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@walletconnect/types': 2.21.3(aws4fetch@1.0.20)(ioredis@5.6.1) - '@walletconnect/utils': 2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/sign-client': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/types': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1) + '@walletconnect/utils': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) es-toolkit: 1.39.3 events: 3.3.0 transitivePeerDependencies: @@ -26491,7 +26916,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/universal-provider@2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@walletconnect/universal-provider@2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(encoding@0.1.13)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: '@walletconnect/events': 1.0.1 '@walletconnect/jsonrpc-http-connection': 1.0.8(encoding@0.1.13) @@ -26500,9 +26925,9 @@ snapshots: '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/keyvaluestorage': 1.1.1(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1) '@walletconnect/logger': 2.1.2 - '@walletconnect/sign-client': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) - '@walletconnect/types': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1) - '@walletconnect/utils': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/sign-client': 2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) + '@walletconnect/types': 2.21.5(aws4fetch@1.0.20)(ioredis@5.6.1) + '@walletconnect/utils': 2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75) es-toolkit: 1.39.3 events: 3.3.0 transitivePeerDependencies: @@ -26702,7 +27127,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/utils@2.21.3(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@walletconnect/utils@2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: '@msgpack/msgpack': 3.1.2 '@noble/ciphers': 1.3.0 @@ -26715,7 +27140,7 @@ snapshots: '@walletconnect/relay-auth': 1.1.0 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.21.3(aws4fetch@1.0.20)(ioredis@5.6.1) + '@walletconnect/types': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1) '@walletconnect/window-getters': 1.0.1 '@walletconnect/window-metadata': 1.0.1 blakejs: 1.2.1 @@ -26748,7 +27173,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/utils@2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': + '@walletconnect/utils@2.21.5(aws4fetch@1.0.20)(bufferutil@4.0.9)(ioredis@5.6.1)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75)': dependencies: '@msgpack/msgpack': 3.1.2 '@noble/ciphers': 1.3.0 @@ -26761,7 +27186,7 @@ snapshots: '@walletconnect/relay-auth': 1.1.0 '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 - '@walletconnect/types': 2.21.4(@react-native-async-storage/async-storage@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)))(aws4fetch@1.0.20)(ioredis@5.6.1) + '@walletconnect/types': 2.21.5(aws4fetch@1.0.20)(ioredis@5.6.1) '@walletconnect/window-getters': 1.0.1 '@walletconnect/window-metadata': 1.0.1 blakejs: 1.2.1 @@ -26922,6 +27347,10 @@ snapshots: dependencies: acorn: 8.15.0 + acorn-import-phases@1.0.4(acorn@8.15.0): + dependencies: + acorn: 8.15.0 + acorn-jsx@5.3.2(acorn@8.15.0): dependencies: acorn: 8.15.0 @@ -26947,7 +27376,7 @@ snapshots: transitivePeerDependencies: - supports-color - agent-base@7.1.3: {} + agent-base@7.1.4: {} agentkeepalive@4.6.0: dependencies: @@ -27010,7 +27439,7 @@ snapshots: ansi-regex@6.1.0: {} - ansi-sequence-parser@1.1.1: {} + ansi-sequence-parser@1.1.3: {} ansi-styles@3.2.1: dependencies: @@ -27233,6 +27662,14 @@ snapshots: transitivePeerDependencies: - debug + axios@1.11.0: + dependencies: + follow-redirects: 1.15.9 + form-data: 4.0.4 + proxy-from-env: 1.1.0 + transitivePeerDependencies: + - debug + axobject-query@4.1.0: {} b4a@1.6.7: {} @@ -27250,12 +27687,12 @@ snapshots: transitivePeerDependencies: - supports-color - babel-loader@9.2.1(@babel/core@7.28.0)(webpack@5.99.9(esbuild@0.25.5)): + babel-loader@9.2.1(@babel/core@7.28.0)(webpack@5.100.2): dependencies: '@babel/core': 7.28.0 find-cache-dir: 4.0.0 schema-utils: 4.3.2 - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.100.2 babel-loader@9.2.1(@babel/core@7.28.0)(webpack@5.99.9): dependencies: @@ -27277,13 +27714,13 @@ snapshots: babel-plugin-jest-hoist@29.6.3: dependencies: '@babel/template': 7.27.2 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@types/babel__core': 7.20.5 '@types/babel__traverse': 7.20.7 babel-plugin-macros@3.1.0: dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 cosmiconfig: 7.1.0 resolve: 1.22.10 @@ -27382,28 +27819,29 @@ snapshots: bare-events@2.5.4: optional: true + bare-events@2.6.0: + optional: true + bare-fs@2.3.5: dependencies: - bare-events: 2.5.4 + bare-events: 2.6.0 bare-path: 2.1.3 - bare-stream: 2.6.5(bare-events@2.5.4) + bare-stream: 2.6.5(bare-events@2.6.0) transitivePeerDependencies: - bare-buffer optional: true - bare-fs@4.0.1: + bare-fs@4.1.6: dependencies: - bare-events: 2.5.4 + bare-events: 2.6.0 bare-path: 3.0.0 - bare-stream: 2.6.5(bare-events@2.5.4) - transitivePeerDependencies: - - bare-buffer + bare-stream: 2.6.5(bare-events@2.6.0) optional: true bare-os@2.4.4: optional: true - bare-os@3.4.0: + bare-os@3.6.1: optional: true bare-path@2.1.3: @@ -27413,14 +27851,14 @@ snapshots: bare-path@3.0.0: dependencies: - bare-os: 3.4.0 + bare-os: 3.6.1 optional: true - bare-stream@2.6.5(bare-events@2.5.4): + bare-stream@2.6.5(bare-events@2.6.0): dependencies: streamx: 2.22.1 optionalDependencies: - bare-events: 2.5.4 + bare-events: 2.6.0 optional: true base-x@3.0.11: @@ -27644,7 +28082,7 @@ snapshots: defu: 6.1.4 dotenv: 16.6.1 giget: 1.2.5 - jiti: 2.4.2 + jiti: 2.5.1 mlly: 1.7.4 ohash: 1.1.6 pathe: 1.1.2 @@ -27720,12 +28158,12 @@ snapshots: ccount@2.0.1: {} - chai@5.2.0: + chai@5.2.1: dependencies: assertion-error: 2.0.1 check-error: 2.1.1 deep-eql: 5.0.2 - loupe: 3.1.4 + loupe: 3.2.0 pathval: 2.0.1 chakra-react-select@4.10.1(@chakra-ui/react@2.10.4(@emotion/react@11.14.0(@types/react@19.1.8)(react@19.1.0))(@emotion/styled@11.14.1(@emotion/react@11.14.0(@types/react@19.1.8)(react@19.1.0))(@types/react@19.1.8)(react@19.1.0))(@types/react@19.1.8)(framer-motion@12.23.0(@emotion/is-prop-valid@1.3.1)(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(react-dom@19.1.0(react@19.1.0))(react@19.1.0))(@emotion/react@11.14.0(@types/react@19.1.8)(react@19.1.0))(@types/react@19.1.8)(react-dom@19.1.0(react@19.1.0))(react@19.1.0): @@ -27777,7 +28215,7 @@ snapshots: check-error@2.1.1: {} - checkly@6.0.1(@types/node@22.14.1)(bufferutil@4.0.9)(jiti@2.4.2)(typescript@5.8.3)(utf-8-validate@5.0.10): + checkly@6.0.1(@types/node@22.14.1)(bufferutil@4.0.9)(jiti@2.5.1)(typescript@5.8.3)(utf-8-validate@5.0.10): dependencies: '@oclif/core': 4.4.0 '@oclif/plugin-help': 6.2.29 @@ -27814,7 +28252,7 @@ snapshots: tunnel: 0.0.6 uuid: 11.1.0 optionalDependencies: - jiti: 2.4.2 + jiti: 2.5.1 transitivePeerDependencies: - '@types/node' - bufferutil @@ -27837,7 +28275,7 @@ snapshots: chokidar@4.0.3: dependencies: - readdirp: 4.0.2 + readdirp: 4.1.2 chownr@2.0.0: {} @@ -27847,7 +28285,7 @@ snapshots: chrome-launcher@0.15.2: dependencies: - '@types/node': 22.14.1 + '@types/node': 24.1.0 escape-string-regexp: 4.0.0 is-wsl: 2.2.0 lighthouse-logger: 1.4.2 @@ -27865,7 +28303,7 @@ snapshots: chromium-edge-launcher@0.2.0: dependencies: - '@types/node': 22.14.1 + '@types/node': 24.1.0 escape-string-regexp: 4.0.0 is-wsl: 2.2.0 lighthouse-logger: 1.4.2 @@ -28039,7 +28477,7 @@ snapshots: commander@13.0.0: {} - commander@13.1.0: {} + commander@14.0.0: {} commander@2.20.3: {} @@ -28069,13 +28507,13 @@ snapshots: dependencies: mime-db: 1.54.0 - compression@1.8.0: + compression@1.8.1: dependencies: bytes: 3.1.2 compressible: 2.0.18 debug: 2.6.9 negotiator: 0.6.4 - on-headers: 1.0.2 + on-headers: 1.1.0 safe-buffer: 5.2.1 vary: 1.1.2 transitivePeerDependencies: @@ -28239,7 +28677,7 @@ snapshots: shebang-command: 2.0.0 which: 2.0.2 - crossws@0.3.3: + crossws@0.3.5: dependencies: uncrypto: 0.1.3 @@ -28274,7 +28712,7 @@ snapshots: css-gradient-parser@0.0.16: {} - css-loader@6.11.0(webpack@5.99.9(esbuild@0.25.5)): + css-loader@6.11.0(webpack@5.100.2): dependencies: icss-utils: 5.1.0(postcss@8.5.6) postcss: 8.5.6 @@ -28285,7 +28723,7 @@ snapshots: postcss-value-parser: 4.2.0 semver: 7.7.2 optionalDependencies: - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.100.2 css-loader@6.11.0(webpack@5.99.9): dependencies: @@ -28316,6 +28754,14 @@ snapshots: domutils: 3.2.2 nth-check: 2.1.1 + css-select@5.2.2: + dependencies: + boolbase: 1.0.0 + css-what: 6.2.2 + domhandler: 5.0.3 + domutils: 3.2.2 + nth-check: 2.1.1 + css-to-react-native@3.2.0: dependencies: camelize: 1.0.1 @@ -28405,7 +28851,7 @@ snapshots: date-fns@2.30.0: dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 date-fns@4.1.0: {} @@ -28445,7 +28891,7 @@ snapshots: decimal.js-light@2.5.1: {} - decode-named-character-reference@1.1.0: + decode-named-character-reference@1.2.0: dependencies: character-entities: 2.0.2 @@ -28579,7 +29025,7 @@ snapshots: dom-helpers@5.2.1: dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 csstype: 3.1.3 dom-serializer@0.2.2: @@ -28649,17 +29095,25 @@ snapshots: dotenv-expand@11.0.7: dependencies: - dotenv: 16.6.1 + dotenv: 16.4.7 - dotenv-mono@1.3.14: + dotenv-expand@12.0.2: dependencies: dotenv: 16.6.1 - dotenv-expand: 11.0.7 + + dotenv-mono@1.4.0: + dependencies: + cross-spawn: 7.0.6 + dotenv: 17.2.1 + dotenv-expand: 12.0.2 + minimist: 1.2.8 dotenv@16.4.7: {} dotenv@16.6.1: {} + dotenv@17.2.1: {} + dotenv@8.6.0: {} drange@1.1.1: {} @@ -28685,7 +29139,7 @@ snapshots: dependencies: '@ecies/ciphers': 0.2.4(@noble/ciphers@1.3.0) '@noble/ciphers': 1.3.0 - '@noble/curves': 1.9.2 + '@noble/curves': 1.9.4 '@noble/hashes': 1.8.0 ee-first@1.1.1: {} @@ -28907,10 +29361,10 @@ snapshots: esast-util-from-estree: 2.0.0 vfile-message: 4.0.2 - esbuild-register@3.6.0(esbuild@0.25.5): + esbuild-register@3.6.0(esbuild@0.25.8): dependencies: debug: 4.4.1(supports-color@8.1.1) - esbuild: 0.25.5 + esbuild: 0.25.8 transitivePeerDependencies: - supports-color @@ -28968,6 +29422,35 @@ snapshots: '@esbuild/win32-ia32': 0.25.5 '@esbuild/win32-x64': 0.25.5 + esbuild@0.25.8: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.8 + '@esbuild/android-arm': 0.25.8 + '@esbuild/android-arm64': 0.25.8 + '@esbuild/android-x64': 0.25.8 + '@esbuild/darwin-arm64': 0.25.8 + '@esbuild/darwin-x64': 0.25.8 + '@esbuild/freebsd-arm64': 0.25.8 + '@esbuild/freebsd-x64': 0.25.8 + '@esbuild/linux-arm': 0.25.8 + '@esbuild/linux-arm64': 0.25.8 + '@esbuild/linux-ia32': 0.25.8 + '@esbuild/linux-loong64': 0.25.8 + '@esbuild/linux-mips64el': 0.25.8 + '@esbuild/linux-ppc64': 0.25.8 + '@esbuild/linux-riscv64': 0.25.8 + '@esbuild/linux-s390x': 0.25.8 + '@esbuild/linux-x64': 0.25.8 + '@esbuild/netbsd-arm64': 0.25.8 + '@esbuild/netbsd-x64': 0.25.8 + '@esbuild/openbsd-arm64': 0.25.8 + '@esbuild/openbsd-x64': 0.25.8 + '@esbuild/openharmony-arm64': 0.25.8 + '@esbuild/sunos-x64': 0.25.8 + '@esbuild/win32-arm64': 0.25.8 + '@esbuild/win32-ia32': 0.25.8 + '@esbuild/win32-x64': 0.25.8 + escalade@3.2.0: {} escape-goat@4.0.0: {} @@ -29411,7 +29894,7 @@ snapshots: - bufferutil - utf-8-validate - ethers@6.13.5(bufferutil@4.0.9)(utf-8-validate@5.0.10): + ethers@6.15.0(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: '@adraffy/ens-normalize': 1.10.1 '@noble/curves': 1.2.0 @@ -29473,7 +29956,7 @@ snapshots: strip-final-newline: 4.0.0 yoctocolors: 2.1.1 - expect-type@1.2.1: {} + expect-type@1.2.2: {} expo-application@6.0.1(expo@53.0.17(@babel/core@7.28.0)(bufferutil@4.0.9)(graphql@16.11.0)(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(utf-8-validate@5.0.10)): dependencies: @@ -29500,7 +29983,7 @@ snapshots: expo-constants@17.1.7(expo@53.0.17(@babel/core@7.28.0)(bufferutil@4.0.9)(graphql@16.11.0)(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(utf-8-validate@5.0.10))(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10)): dependencies: - '@expo/config': 11.0.12 + '@expo/config': 11.0.13 '@expo/env': 1.0.7 expo: 53.0.17(@babel/core@7.28.0)(bufferutil@4.0.9)(graphql@16.11.0)(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(utf-8-validate@5.0.10) react-native: 0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10) @@ -29554,10 +30037,10 @@ snapshots: expo@53.0.17(@babel/core@7.28.0)(bufferutil@4.0.9)(graphql@16.11.0)(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(utf-8-validate@5.0.10): dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@expo/cli': 0.24.18(bufferutil@4.0.9)(graphql@16.11.0)(utf-8-validate@5.0.10) - '@expo/config': 11.0.12 - '@expo/config-plugins': 10.1.1 + '@expo/config': 11.0.13 + '@expo/config-plugins': 10.1.2 '@expo/fingerprint': 0.13.4 '@expo/metro-config': 0.20.17 '@expo/vector-icons': 14.1.0(expo-font@13.3.2(expo@53.0.17(@babel/core@7.28.0)(bufferutil@4.0.9)(graphql@16.11.0)(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0))(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0) @@ -29589,7 +30072,7 @@ snapshots: extension-port-stream@3.0.0: dependencies: - readable-stream: 4.7.0 + readable-stream: 3.6.2 webextension-polyfill: 0.10.0 external-editor@3.1.0: @@ -29600,7 +30083,7 @@ snapshots: extract-zip@2.0.1: dependencies: - debug: 4.4.1(supports-color@8.1.1) + debug: 4.3.4 get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: @@ -29660,7 +30143,7 @@ snapshots: fast-unique-numbers@8.0.13: dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 tslib: 2.8.1 fast-uri@3.0.6: {} @@ -29699,9 +30182,9 @@ snapshots: dependencies: pend: 1.2.0 - fdir@6.4.6(picomatch@4.0.2): + fdir@6.4.6(picomatch@4.0.3): optionalDependencies: - picomatch: 4.0.2 + picomatch: 4.0.3 fetch-event-stream@0.1.5: {} @@ -29772,7 +30255,7 @@ snapshots: find-chrome-bin@2.0.2: dependencies: - '@puppeteer/browsers': 2.7.1 + '@puppeteer/browsers': 2.10.6 transitivePeerDependencies: - bare-buffer - supports-color @@ -29816,7 +30299,7 @@ snapshots: flow-enums-runtime@0.0.6: {} - flow-parser@0.271.0: {} + flow-parser@0.277.1: {} focus-lock@1.3.6: dependencies: @@ -29839,23 +30322,6 @@ snapshots: cross-spawn: 7.0.6 signal-exit: 4.1.0 - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.8.3)(webpack@5.99.9(esbuild@0.25.5)): - dependencies: - '@babel/code-frame': 7.27.1 - chalk: 4.1.2 - chokidar: 3.6.0 - cosmiconfig: 7.1.0 - deepmerge: 4.3.1 - fs-extra: 10.1.0 - memfs: 3.5.3 - minimatch: 3.1.2 - node-abort-controller: 3.1.1 - schema-utils: 3.3.0 - semver: 7.7.2 - tapable: 2.2.2 - typescript: 5.8.3 - webpack: 5.99.9(esbuild@0.25.5) - fork-ts-checker-webpack-plugin@8.0.0(typescript@5.8.3)(webpack@5.99.9): dependencies: '@babel/code-frame': 7.27.1 @@ -29883,6 +30349,14 @@ snapshots: hasown: 2.0.2 mime-types: 2.1.35 + form-data@4.0.4: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + es-set-tostringtag: 2.1.0 + hasown: 2.0.2 + mime-types: 2.1.35 + format@0.2.2: {} formatly@0.2.4: @@ -30023,11 +30497,11 @@ snapshots: dependencies: resolve-pkg-maps: 1.0.0 - get-uri@6.0.4: + get-uri@6.0.5: dependencies: basic-ftp: 5.0.5 data-uri-to-buffer: 6.0.2 - debug: 4.4.1(supports-color@8.1.1) + debug: 4.3.4 transitivePeerDependencies: - supports-color @@ -30068,10 +30542,10 @@ snapshots: package-json-from-dist: 1.0.1 path-scurry: 1.11.1 - glob@11.0.0: + glob@11.0.3: dependencies: foreground-child: 3.3.1 - jackspeak: 4.0.2 + jackspeak: 4.1.1 minimatch: 10.0.3 minipass: 7.1.2 package-json-from-dist: 1.0.1 @@ -30143,18 +30617,17 @@ snapshots: dependencies: duplexer: 0.1.2 - h3@1.14.0: + h3@1.15.3: dependencies: cookie-es: 1.2.2 - crossws: 0.3.3 + crossws: 0.3.5 defu: 6.1.4 destr: 2.0.5 iron-webcrypto: 1.2.1 - ohash: 1.1.6 + node-mock-http: 1.0.1 radix3: 1.1.2 ufo: 1.6.1 uncrypto: 0.1.3 - unenv: 1.10.0 handlebars@4.7.8: dependencies: @@ -30172,7 +30645,7 @@ snapshots: happy-dom@18.0.1: dependencies: - '@types/node': 20.19.4 + '@types/node': 20.19.9 '@types/whatwg-mimetype': 3.0.2 whatwg-mimetype: 3.0.0 optional: true @@ -30460,16 +30933,6 @@ snapshots: html-void-elements@3.0.0: {} - html-webpack-plugin@5.6.3(webpack@5.99.9(esbuild@0.25.5)): - dependencies: - '@types/html-minifier-terser': 6.1.0 - html-minifier-terser: 6.1.0 - lodash: 4.17.21 - pretty-error: 4.0.0 - tapable: 2.2.2 - optionalDependencies: - webpack: 5.99.9(esbuild@0.25.5) - html-webpack-plugin@5.6.3(webpack@5.99.9): dependencies: '@types/html-minifier-terser': 6.1.0 @@ -30521,8 +30984,8 @@ snapshots: http-proxy-agent@7.0.2: dependencies: - agent-base: 7.1.3 - debug: 4.4.1(supports-color@8.1.1) + agent-base: 7.1.4 + debug: 4.3.4 transitivePeerDependencies: - supports-color @@ -30550,8 +31013,8 @@ snapshots: https-proxy-agent@7.0.6: dependencies: - agent-base: 7.1.3 - debug: 4.4.1(supports-color@8.1.1) + agent-base: 7.1.4 + debug: 4.3.4 transitivePeerDependencies: - supports-color @@ -30989,7 +31452,7 @@ snapshots: optionalDependencies: '@pkgjs/parseargs': 0.11.0 - jackspeak@4.0.2: + jackspeak@4.1.1: dependencies: '@isaacs/cliui': 8.0.2 @@ -31023,7 +31486,7 @@ snapshots: '@jest/environment': 29.7.0 '@jest/fake-timers': 29.7.0 '@jest/types': 29.6.3 - '@types/node': 22.14.1 + '@types/node': 24.1.0 jest-mock: 29.7.0 jest-util: 29.7.0 @@ -31033,7 +31496,7 @@ snapshots: dependencies: '@jest/types': 29.6.3 '@types/graceful-fs': 4.1.9 - '@types/node': 22.14.1 + '@types/node': 24.1.0 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -31060,7 +31523,7 @@ snapshots: jest-mock@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 22.14.1 + '@types/node': 24.1.0 jest-util: 29.7.0 jest-regex-util@29.6.3: {} @@ -31068,7 +31531,7 @@ snapshots: jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 22.14.1 + '@types/node': 24.1.0 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -31091,7 +31554,7 @@ snapshots: jest-worker@29.7.0: dependencies: - '@types/node': 22.14.1 + '@types/node': 24.1.0 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -31100,7 +31563,7 @@ snapshots: jiti@1.21.7: {} - jiti@2.4.2: {} + jiti@2.5.1: {} jju@1.4.0: {} @@ -31147,7 +31610,7 @@ snapshots: '@babel/preset-flow': 7.27.1(@babel/core@7.28.0) '@babel/preset-typescript': 7.27.1(@babel/core@7.28.0) '@babel/register': 7.27.1(@babel/core@7.28.0) - flow-parser: 0.271.0 + flow-parser: 0.277.1 graceful-fs: 4.2.11 micromatch: 4.0.8 neo-async: 2.6.2 @@ -31250,35 +31713,35 @@ snapshots: '@types/node': 22.14.1 fast-glob: 3.3.3 formatly: 0.2.4 - jiti: 2.4.2 + jiti: 2.5.1 js-yaml: 4.1.0 minimist: 1.2.8 - oxc-resolver: 11.2.0 + oxc-resolver: 11.6.0 picocolors: 1.1.1 - picomatch: 4.0.2 - smol-toml: 1.3.4 + picomatch: 4.0.3 + smol-toml: 1.4.1 strip-json-comments: 5.0.2 typescript: 5.8.3 zod: 3.25.75 - zod-validation-error: 3.4.0(zod@3.25.75) + zod-validation-error: 3.5.3(zod@3.25.75) - knip@5.60.2(@types/node@24.0.10)(typescript@5.8.3): + knip@5.60.2(@types/node@24.1.0)(typescript@5.8.3): dependencies: '@nodelib/fs.walk': 1.2.8 - '@types/node': 24.0.10 + '@types/node': 24.1.0 fast-glob: 3.3.3 formatly: 0.2.4 - jiti: 2.4.2 + jiti: 2.5.1 js-yaml: 4.1.0 minimist: 1.2.8 - oxc-resolver: 11.2.0 + oxc-resolver: 11.6.0 picocolors: 1.1.1 - picomatch: 4.0.2 - smol-toml: 1.3.4 + picomatch: 4.0.3 + smol-toml: 1.4.1 strip-json-comments: 5.0.2 typescript: 5.8.3 zod: 3.25.75 - zod-validation-error: 3.4.0(zod@3.25.75) + zod-validation-error: 3.5.3(zod@3.25.75) lan-network@0.1.7: {} @@ -31305,12 +31768,12 @@ snapshots: prelude-ls: 1.2.1 type-check: 0.4.0 - libphonenumber-js@1.12.9: {} + libphonenumber-js@1.12.10: {} lighthouse-logger@1.4.2: dependencies: debug: 2.6.9 - marky: 1.2.5 + marky: 1.3.0 transitivePeerDependencies: - supports-color @@ -31422,21 +31885,21 @@ snapshots: lit-element@3.3.3: dependencies: - '@lit-labs/ssr-dom-shim': 1.3.0 + '@lit-labs/ssr-dom-shim': 1.4.0 '@lit/reactive-element': 1.6.3 lit-html: 2.8.0 - lit-element@4.2.0: + lit-element@4.2.1: dependencies: - '@lit-labs/ssr-dom-shim': 1.3.0 - '@lit/reactive-element': 2.1.0 - lit-html: 3.3.0 + '@lit-labs/ssr-dom-shim': 1.4.0 + '@lit/reactive-element': 2.1.1 + lit-html: 3.3.1 lit-html@2.8.0: dependencies: '@types/trusted-types': 2.0.7 - lit-html@3.3.0: + lit-html@3.3.1: dependencies: '@types/trusted-types': 2.0.7 @@ -31448,9 +31911,9 @@ snapshots: lit@3.3.0: dependencies: - '@lit/reactive-element': 2.1.0 - lit-element: 4.2.0 - lit-html: 3.3.0 + '@lit/reactive-element': 2.1.1 + lit-element: 4.2.1 + lit-html: 3.3.1 load-plugin@6.0.3: dependencies: @@ -31529,7 +31992,7 @@ snapshots: dependencies: js-tokens: 4.0.0 - loupe@3.1.4: {} + loupe@3.2.0: {} lower-case@2.0.2: dependencies: @@ -31583,7 +32046,7 @@ snapshots: magicast@0.3.5: dependencies: '@babel/parser': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 source-map-js: 1.2.1 make-dir@2.1.0: @@ -31618,7 +32081,7 @@ snapshots: marked@4.3.0: {} - marky@1.2.5: {} + marky@1.3.0: {} math-intrinsics@1.1.0: {} @@ -31645,10 +32108,10 @@ snapshots: dependencies: '@types/mdast': 4.0.4 '@types/unist': 3.0.3 - decode-named-character-reference: 1.1.0 + decode-named-character-reference: 1.2.0 devlop: 1.1.0 mdast-util-to-string: 4.0.0 - micromark: 4.0.1 + micromark: 4.0.2 micromark-util-decode-numeric-character-reference: 2.0.2 micromark-util-decode-string: 2.0.1 micromark-util-normalize-identifier: 2.0.1 @@ -31819,7 +32282,7 @@ snapshots: merge2@1.4.1: {} - metro-babel-transformer@0.81.4: + metro-babel-transformer@0.81.5: dependencies: '@babel/core': 7.28.0 flow-enums-runtime: 0.0.6 @@ -31828,38 +32291,38 @@ snapshots: transitivePeerDependencies: - supports-color - metro-cache-key@0.81.4: + metro-cache-key@0.81.5: dependencies: flow-enums-runtime: 0.0.6 - metro-cache@0.81.4: + metro-cache@0.81.5: dependencies: exponential-backoff: 3.1.2 flow-enums-runtime: 0.0.6 - metro-core: 0.81.4 + metro-core: 0.81.5 - metro-config@0.81.4(bufferutil@4.0.9)(utf-8-validate@5.0.10): + metro-config@0.81.5(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: connect: 3.7.0 cosmiconfig: 5.2.1 flow-enums-runtime: 0.0.6 jest-validate: 29.7.0 - metro: 0.81.4(bufferutil@4.0.9)(utf-8-validate@5.0.10) - metro-cache: 0.81.4 - metro-core: 0.81.4 - metro-runtime: 0.81.4 + metro: 0.81.5(bufferutil@4.0.9)(utf-8-validate@5.0.10) + metro-cache: 0.81.5 + metro-core: 0.81.5 + metro-runtime: 0.81.5 transitivePeerDependencies: - bufferutil - supports-color - utf-8-validate - metro-core@0.81.4: + metro-core@0.81.5: dependencies: flow-enums-runtime: 0.0.6 lodash.throttle: 4.1.1 - metro-resolver: 0.81.4 + metro-resolver: 0.81.5 - metro-file-map@0.81.4: + metro-file-map@0.81.5: dependencies: debug: 2.6.9 fb-watchman: 2.0.2 @@ -31873,47 +32336,47 @@ snapshots: transitivePeerDependencies: - supports-color - metro-minify-terser@0.81.4: + metro-minify-terser@0.81.5: dependencies: flow-enums-runtime: 0.0.6 terser: 5.43.1 - metro-resolver@0.81.4: + metro-resolver@0.81.5: dependencies: flow-enums-runtime: 0.0.6 - metro-runtime@0.81.4: + metro-runtime@0.81.5: dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 flow-enums-runtime: 0.0.6 - metro-source-map@0.81.4: + metro-source-map@0.81.5: dependencies: '@babel/traverse': 7.28.0 '@babel/traverse--for-generate-function-map': '@babel/traverse@7.28.0' - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 flow-enums-runtime: 0.0.6 invariant: 2.2.4 - metro-symbolicate: 0.81.4 + metro-symbolicate: 0.81.5 nullthrows: 1.1.1 - ob1: 0.81.4 + ob1: 0.81.5 source-map: 0.5.7 vlq: 1.0.1 transitivePeerDependencies: - supports-color - metro-symbolicate@0.81.4: + metro-symbolicate@0.81.5: dependencies: flow-enums-runtime: 0.0.6 invariant: 2.2.4 - metro-source-map: 0.81.4 + metro-source-map: 0.81.5 nullthrows: 1.1.1 source-map: 0.5.7 vlq: 1.0.1 transitivePeerDependencies: - supports-color - metro-transform-plugins@0.81.4: + metro-transform-plugins@0.81.5: dependencies: '@babel/core': 7.28.0 '@babel/generator': 7.28.0 @@ -31924,27 +32387,27 @@ snapshots: transitivePeerDependencies: - supports-color - metro-transform-worker@0.81.4(bufferutil@4.0.9)(utf-8-validate@5.0.10): + metro-transform-worker@0.81.5(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: '@babel/core': 7.28.0 '@babel/generator': 7.28.0 '@babel/parser': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 flow-enums-runtime: 0.0.6 - metro: 0.81.4(bufferutil@4.0.9)(utf-8-validate@5.0.10) - metro-babel-transformer: 0.81.4 - metro-cache: 0.81.4 - metro-cache-key: 0.81.4 - metro-minify-terser: 0.81.4 - metro-source-map: 0.81.4 - metro-transform-plugins: 0.81.4 + metro: 0.81.5(bufferutil@4.0.9)(utf-8-validate@5.0.10) + metro-babel-transformer: 0.81.5 + metro-cache: 0.81.5 + metro-cache-key: 0.81.5 + metro-minify-terser: 0.81.5 + metro-source-map: 0.81.5 + metro-transform-plugins: 0.81.5 nullthrows: 1.1.1 transitivePeerDependencies: - bufferutil - supports-color - utf-8-validate - metro@0.81.4(bufferutil@4.0.9)(utf-8-validate@5.0.10): + metro@0.81.5(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: '@babel/code-frame': 7.27.1 '@babel/core': 7.28.0 @@ -31952,7 +32415,7 @@ snapshots: '@babel/parser': 7.28.0 '@babel/template': 7.27.2 '@babel/traverse': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 accepts: 1.3.8 chalk: 4.1.2 ci-info: 2.0.0 @@ -31967,18 +32430,18 @@ snapshots: jest-worker: 29.7.0 jsc-safe-url: 0.2.4 lodash.throttle: 4.1.1 - metro-babel-transformer: 0.81.4 - metro-cache: 0.81.4 - metro-cache-key: 0.81.4 - metro-config: 0.81.4(bufferutil@4.0.9)(utf-8-validate@5.0.10) - metro-core: 0.81.4 - metro-file-map: 0.81.4 - metro-resolver: 0.81.4 - metro-runtime: 0.81.4 - metro-source-map: 0.81.4 - metro-symbolicate: 0.81.4 - metro-transform-plugins: 0.81.4 - metro-transform-worker: 0.81.4(bufferutil@4.0.9)(utf-8-validate@5.0.10) + metro-babel-transformer: 0.81.5 + metro-cache: 0.81.5 + metro-cache-key: 0.81.5 + metro-config: 0.81.5(bufferutil@4.0.9)(utf-8-validate@5.0.10) + metro-core: 0.81.5 + metro-file-map: 0.81.5 + metro-resolver: 0.81.5 + metro-runtime: 0.81.5 + metro-source-map: 0.81.5 + metro-symbolicate: 0.81.5 + metro-transform-plugins: 0.81.5 + metro-transform-worker: 0.81.5(bufferutil@4.0.9)(utf-8-validate@5.0.10) mime-types: 2.1.35 nullthrows: 1.1.1 serialize-error: 2.1.0 @@ -31995,7 +32458,7 @@ snapshots: micromark-core-commonmark@2.0.3: dependencies: - decode-named-character-reference: 1.1.0 + decode-named-character-reference: 1.2.0 devlop: 1.1.0 micromark-factory-destination: 2.0.1 micromark-factory-label: 2.0.1 @@ -32191,7 +32654,7 @@ snapshots: micromark-util-decode-string@2.0.1: dependencies: - decode-named-character-reference: 1.1.0 + decode-named-character-reference: 1.2.0 micromark-util-character: 2.1.1 micromark-util-decode-numeric-character-reference: 2.0.2 micromark-util-symbol: 2.0.1 @@ -32235,11 +32698,11 @@ snapshots: micromark-util-types@2.0.2: {} - micromark@4.0.1: + micromark@4.0.2: dependencies: '@types/debug': 4.1.12 debug: 4.4.1(supports-color@8.1.1) - decode-named-character-reference: 1.1.0 + decode-named-character-reference: 1.2.0 devlop: 1.1.0 micromark-core-commonmark: 2.0.3 micromark-factory-space: 2.0.1 @@ -32277,8 +32740,6 @@ snapshots: mime@1.6.0: {} - mime@3.0.0: {} - mimic-fn@1.2.0: {} mimic-fn@2.1.0: {} @@ -32426,8 +32887,8 @@ snapshots: '@bundled-es-modules/cookie': 2.0.1 '@bundled-es-modules/statuses': 1.0.1 '@bundled-es-modules/tough-cookie': 0.1.6 - '@inquirer/confirm': 5.1.13(@types/node@22.14.1) - '@mswjs/interceptors': 0.39.2 + '@inquirer/confirm': 5.1.14(@types/node@22.14.1) + '@mswjs/interceptors': 0.39.4 '@open-draft/deferred-promise': 2.2.0 '@open-draft/until': 2.1.0 '@types/cookie': 0.6.0 @@ -32447,12 +32908,12 @@ snapshots: - '@types/node' optional: true - msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3): + msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3): dependencies: '@bundled-es-modules/cookie': 2.0.1 '@bundled-es-modules/statuses': 1.0.1 '@bundled-es-modules/tough-cookie': 0.1.6 - '@inquirer/confirm': 5.1.13(@types/node@24.0.10) + '@inquirer/confirm': 5.1.14(@types/node@24.1.0) '@mswjs/interceptors': 0.37.6 '@open-draft/deferred-promise': 2.2.0 '@open-draft/until': 2.1.0 @@ -32496,6 +32957,8 @@ snapshots: napi-postinstall@0.3.0: {} + napi-postinstall@0.3.2: {} + natural-compare@1.4.0: {} negotiator@0.6.3: {} @@ -32545,7 +33008,7 @@ snapshots: '@next/swc-win32-x64-msvc': 15.3.5 '@opentelemetry/api': 1.9.0 '@playwright/test': 1.53.2 - sharp: 0.34.2 + sharp: 0.34.3 transitivePeerDependencies: - '@babel/core' - babel-plugin-macros @@ -32606,7 +33069,9 @@ snapshots: node-int64@0.4.0: {} - node-polyfill-webpack-plugin@2.0.1(webpack@5.99.9(esbuild@0.25.5)): + node-mock-http@1.0.1: {} + + node-polyfill-webpack-plugin@2.0.1(webpack@5.100.2): dependencies: assert: 2.1.0 browserify-zlib: 0.2.0 @@ -32633,7 +33098,7 @@ snapshots: url: 0.11.4 util: 0.12.5 vm-browserify: 1.1.2 - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.100.2 node-polyfill-webpack-plugin@2.0.1(webpack@5.99.9): dependencies: @@ -32755,7 +33220,7 @@ snapshots: tinyexec: 0.3.2 ufo: 1.6.1 - ob1@0.81.4: + ob1@0.81.5: dependencies: flow-enums-runtime: 0.0.6 @@ -32838,7 +33303,7 @@ snapshots: dependencies: ee-first: 1.1.1 - on-headers@1.0.2: {} + on-headers@1.1.0: {} once@1.4.0: dependencies: @@ -32964,8 +33429,8 @@ snapshots: '@adraffy/ens-normalize': 1.11.0 '@noble/curves': 1.8.2 '@noble/hashes': 1.7.2 - '@scure/bip32': 1.7.0 - '@scure/bip39': 1.6.0 + '@scure/bip32': 1.6.2 + '@scure/bip39': 1.5.4 abitype: 1.0.8(typescript@5.8.3)(zod@3.25.75) eventemitter3: 5.0.1 optionalDependencies: @@ -32978,8 +33443,8 @@ snapshots: '@adraffy/ens-normalize': 1.11.0 '@noble/curves': 1.8.2 '@noble/hashes': 1.7.2 - '@scure/bip32': 1.7.0 - '@scure/bip39': 1.6.0 + '@scure/bip32': 1.6.2 + '@scure/bip39': 1.5.4 abitype: 1.0.8(typescript@5.8.3)(zod@3.25.75) eventemitter3: 5.0.1 optionalDependencies: @@ -33005,8 +33470,8 @@ snapshots: dependencies: '@adraffy/ens-normalize': 1.11.0 '@noble/ciphers': 1.3.0 - '@noble/curves': 1.8.2 - '@noble/hashes': 1.7.2 + '@noble/curves': 1.9.2 + '@noble/hashes': 1.8.0 '@scure/bip32': 1.7.0 '@scure/bip39': 1.6.0 abitype: 1.0.8(typescript@5.8.3)(zod@3.25.75) @@ -33061,21 +33526,29 @@ snapshots: transitivePeerDependencies: - zod - oxc-resolver@11.2.0: + oxc-resolver@11.6.0: + dependencies: + napi-postinstall: 0.3.2 optionalDependencies: - '@oxc-resolver/binding-darwin-arm64': 11.2.0 - '@oxc-resolver/binding-darwin-x64': 11.2.0 - '@oxc-resolver/binding-freebsd-x64': 11.2.0 - '@oxc-resolver/binding-linux-arm-gnueabihf': 11.2.0 - '@oxc-resolver/binding-linux-arm64-gnu': 11.2.0 - '@oxc-resolver/binding-linux-arm64-musl': 11.2.0 - '@oxc-resolver/binding-linux-riscv64-gnu': 11.2.0 - '@oxc-resolver/binding-linux-s390x-gnu': 11.2.0 - '@oxc-resolver/binding-linux-x64-gnu': 11.2.0 - '@oxc-resolver/binding-linux-x64-musl': 11.2.0 - '@oxc-resolver/binding-wasm32-wasi': 11.2.0 - '@oxc-resolver/binding-win32-arm64-msvc': 11.2.0 - '@oxc-resolver/binding-win32-x64-msvc': 11.2.0 + '@oxc-resolver/binding-android-arm-eabi': 11.6.0 + '@oxc-resolver/binding-android-arm64': 11.6.0 + '@oxc-resolver/binding-darwin-arm64': 11.6.0 + '@oxc-resolver/binding-darwin-x64': 11.6.0 + '@oxc-resolver/binding-freebsd-x64': 11.6.0 + '@oxc-resolver/binding-linux-arm-gnueabihf': 11.6.0 + '@oxc-resolver/binding-linux-arm-musleabihf': 11.6.0 + '@oxc-resolver/binding-linux-arm64-gnu': 11.6.0 + '@oxc-resolver/binding-linux-arm64-musl': 11.6.0 + '@oxc-resolver/binding-linux-ppc64-gnu': 11.6.0 + '@oxc-resolver/binding-linux-riscv64-gnu': 11.6.0 + '@oxc-resolver/binding-linux-riscv64-musl': 11.6.0 + '@oxc-resolver/binding-linux-s390x-gnu': 11.6.0 + '@oxc-resolver/binding-linux-x64-gnu': 11.6.0 + '@oxc-resolver/binding-linux-x64-musl': 11.6.0 + '@oxc-resolver/binding-wasm32-wasi': 11.6.0 + '@oxc-resolver/binding-win32-arm64-msvc': 11.6.0 + '@oxc-resolver/binding-win32-ia32-msvc': 11.6.0 + '@oxc-resolver/binding-win32-x64-msvc': 11.6.0 p-cancelable@3.0.0: {} @@ -33095,7 +33568,7 @@ snapshots: p-limit@4.0.0: dependencies: - yocto-queue: 1.1.1 + yocto-queue: 1.2.1 p-limit@6.2.0: dependencies: @@ -33133,9 +33606,9 @@ snapshots: pac-proxy-agent@7.2.0: dependencies: '@tootallnate/quickjs-emscripten': 0.23.0 - agent-base: 7.1.3 - debug: 4.4.1(supports-color@8.1.1) - get-uri: 6.0.4 + agent-base: 7.1.4 + debug: 4.3.4 + get-uri: 6.0.5 http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.6 pac-resolver: 7.0.1 @@ -33206,7 +33679,7 @@ snapshots: '@types/unist': 2.0.11 character-entities-legacy: 3.0.0 character-reference-invalid: 2.0.1 - decode-named-character-reference: 1.1.0 + decode-named-character-reference: 1.2.0 is-alphanumerical: 2.0.1 is-decimal: 2.0.1 is-hexadecimal: 2.0.1 @@ -33317,7 +33790,7 @@ snapshots: picomatch@3.0.1: {} - picomatch@4.0.2: {} + picomatch@4.0.3: {} pify@2.3.0: {} @@ -33437,23 +33910,23 @@ snapshots: optionalDependencies: postcss: 8.5.6 - postcss-load-config@6.0.1(jiti@2.4.2)(postcss@8.5.6)(tsx@4.20.3)(yaml@2.8.0): + postcss-load-config@6.0.1(jiti@2.5.1)(postcss@8.5.6)(tsx@4.20.3)(yaml@2.8.0): dependencies: lilconfig: 3.1.3 optionalDependencies: - jiti: 2.4.2 + jiti: 2.5.1 postcss: 8.5.6 tsx: 4.20.3 yaml: 2.8.0 - postcss-loader@8.1.1(postcss@8.5.6)(typescript@5.8.3)(webpack@5.99.9(esbuild@0.25.5)): + postcss-loader@8.1.1(postcss@8.5.6)(typescript@5.8.3)(webpack@5.100.2): dependencies: cosmiconfig: 9.0.0(typescript@5.8.3) jiti: 1.21.7 postcss: 8.5.6 semver: 7.7.2 optionalDependencies: - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.100.2 transitivePeerDependencies: - typescript @@ -33628,8 +34101,8 @@ snapshots: proxy-agent@6.4.0: dependencies: - agent-base: 7.1.3 - debug: 4.4.1(supports-color@8.1.1) + agent-base: 7.1.4 + debug: 4.3.4 http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.6 lru-cache: 7.18.3 @@ -33641,7 +34114,7 @@ snapshots: proxy-agent@6.5.0: dependencies: - agent-base: 7.1.3 + agent-base: 7.1.4 debug: 4.4.1(supports-color@8.1.1) http-proxy-agent: 7.0.2 https-proxy-agent: 7.0.6 @@ -33802,7 +34275,7 @@ snapshots: react-clientside-effect@1.2.7(react@19.1.0): dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 react: 19.1.0 react-copy-to-clipboard@5.1.0(react@19.1.0): @@ -33828,9 +34301,9 @@ snapshots: react-dom: 19.1.0(react@19.1.0) ua-parser-js: 1.0.40 - react-devtools-core@6.1.1(bufferutil@4.0.9)(utf-8-validate@5.0.10): + react-devtools-core@6.1.5(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: - shell-quote: 1.8.2 + shell-quote: 1.8.3 ws: 7.5.10(bufferutil@4.0.9)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil @@ -33844,7 +34317,7 @@ snapshots: dependencies: '@babel/core': 7.28.0 '@babel/traverse': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@types/babel__core': 7.20.5 '@types/babel__traverse': 7.20.7 '@types/doctrine': 0.0.9 @@ -33859,7 +34332,7 @@ snapshots: dependencies: '@babel/core': 7.28.0 '@babel/traverse': 7.28.0 - '@babel/types': 7.28.0 + '@babel/types': 7.28.2 '@types/babel__core': 7.20.5 '@types/babel__traverse': 7.20.7 '@types/doctrine': 0.0.9 @@ -33891,7 +34364,7 @@ snapshots: react-focus-lock@2.13.5(@types/react@19.1.8)(react@19.1.0): dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 focus-lock: 1.3.6 prop-types: 15.8.1 react: 19.1.0 @@ -33974,7 +34447,7 @@ snapshots: react: 19.1.0 react-native: 0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10) - react-native-quick-base64@2.2.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0): + react-native-quick-base64@2.2.1(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0): dependencies: react: 19.1.0 react-native: 0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10) @@ -33992,7 +34465,7 @@ snapshots: react-native-svg@15.12.0(react-native@0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10))(react@19.1.0): dependencies: - css-select: 5.1.0 + css-select: 5.2.2 css-tree: 1.1.3 react: 19.1.0 react-native: 0.78.1(@babel/core@7.28.0)(@babel/preset-env@7.28.0(@babel/core@7.28.0))(@types/react@19.1.8)(bufferutil@4.0.9)(react@19.1.0)(utf-8-validate@5.0.10) @@ -34027,13 +34500,13 @@ snapshots: invariant: 2.2.4 jest-environment-node: 29.7.0 memoize-one: 5.2.1 - metro-runtime: 0.81.4 - metro-source-map: 0.81.4 + metro-runtime: 0.81.5 + metro-source-map: 0.81.5 nullthrows: 1.1.1 pretty-format: 29.7.0 promise: 8.3.0 react: 19.1.0 - react-devtools-core: 6.1.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) + react-devtools-core: 6.1.5(bufferutil@4.0.9)(utf-8-validate@5.0.10) react-refresh: 0.14.2 regenerator-runtime: 0.13.11 scheduler: 0.25.0 @@ -34092,7 +34565,7 @@ snapshots: react-select@5.8.3(@types/react@19.1.8)(react-dom@19.1.0(react@19.1.0))(react@19.1.0): dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 '@emotion/cache': 11.14.0 '@emotion/react': 11.14.0(@types/react@19.1.8)(react@19.1.0) '@floating-ui/dom': 1.7.2 @@ -34125,7 +34598,7 @@ snapshots: react-syntax-highlighter@15.6.1(react@19.1.0): dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 highlight.js: 10.7.3 highlightjs-vue: 1.0.0 lowlight: 1.20.0 @@ -34139,7 +34612,7 @@ snapshots: react-transition-group@4.4.5(react-dom@19.1.0(react@19.1.0))(react@19.1.0): dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 @@ -34196,7 +34669,7 @@ snapshots: dependencies: picomatch: 2.3.1 - readdirp@4.0.2: {} + readdirp@4.1.2: {} readline@1.3.0: {} @@ -34553,7 +35026,7 @@ snapshots: rimraf@6.0.1: dependencies: - glob: 11.0.0 + glob: 11.0.3 package-json-from-dist: 1.0.1 ripemd160@2.0.1: @@ -34591,33 +35064,33 @@ snapshots: '@rollup/rollup-win32-x64-msvc': 4.35.0 fsevents: 2.3.3 - rollup@4.44.1: + rollup@4.45.1: dependencies: '@types/estree': 1.0.8 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.44.1 - '@rollup/rollup-android-arm64': 4.44.1 - '@rollup/rollup-darwin-arm64': 4.44.1 - '@rollup/rollup-darwin-x64': 4.44.1 - '@rollup/rollup-freebsd-arm64': 4.44.1 - '@rollup/rollup-freebsd-x64': 4.44.1 - '@rollup/rollup-linux-arm-gnueabihf': 4.44.1 - '@rollup/rollup-linux-arm-musleabihf': 4.44.1 - '@rollup/rollup-linux-arm64-gnu': 4.44.1 - '@rollup/rollup-linux-arm64-musl': 4.44.1 - '@rollup/rollup-linux-loongarch64-gnu': 4.44.1 - '@rollup/rollup-linux-powerpc64le-gnu': 4.44.1 - '@rollup/rollup-linux-riscv64-gnu': 4.44.1 - '@rollup/rollup-linux-riscv64-musl': 4.44.1 - '@rollup/rollup-linux-s390x-gnu': 4.44.1 - '@rollup/rollup-linux-x64-gnu': 4.44.1 - '@rollup/rollup-linux-x64-musl': 4.44.1 - '@rollup/rollup-win32-arm64-msvc': 4.44.1 - '@rollup/rollup-win32-ia32-msvc': 4.44.1 - '@rollup/rollup-win32-x64-msvc': 4.44.1 + '@rollup/rollup-android-arm-eabi': 4.45.1 + '@rollup/rollup-android-arm64': 4.45.1 + '@rollup/rollup-darwin-arm64': 4.45.1 + '@rollup/rollup-darwin-x64': 4.45.1 + '@rollup/rollup-freebsd-arm64': 4.45.1 + '@rollup/rollup-freebsd-x64': 4.45.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.45.1 + '@rollup/rollup-linux-arm-musleabihf': 4.45.1 + '@rollup/rollup-linux-arm64-gnu': 4.45.1 + '@rollup/rollup-linux-arm64-musl': 4.45.1 + '@rollup/rollup-linux-loongarch64-gnu': 4.45.1 + '@rollup/rollup-linux-powerpc64le-gnu': 4.45.1 + '@rollup/rollup-linux-riscv64-gnu': 4.45.1 + '@rollup/rollup-linux-riscv64-musl': 4.45.1 + '@rollup/rollup-linux-s390x-gnu': 4.45.1 + '@rollup/rollup-linux-x64-gnu': 4.45.1 + '@rollup/rollup-linux-x64-musl': 4.45.1 + '@rollup/rollup-win32-arm64-msvc': 4.45.1 + '@rollup/rollup-win32-ia32-msvc': 4.45.1 + '@rollup/rollup-win32-x64-msvc': 4.45.1 fsevents: 2.3.3 - rpc-websockets@9.1.1: + rpc-websockets@9.1.2: dependencies: '@swc/helpers': 0.5.17 '@types/uuid': 8.3.4 @@ -34667,11 +35140,11 @@ snapshots: safer-buffer@2.1.2: {} - sass-loader@14.2.1(webpack@5.99.9(esbuild@0.25.5)): + sass-loader@14.2.1(webpack@5.100.2): dependencies: neo-async: 2.6.2 optionalDependencies: - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.100.2 sass-loader@14.2.1(webpack@5.99.9): dependencies: @@ -34726,7 +35199,7 @@ snapshots: selfsigned@2.4.1: dependencies: - '@types/node-forge': 1.3.11 + '@types/node-forge': 1.3.13 node-forge: 1.3.1 semver-diff@4.0.0: @@ -34838,33 +35311,34 @@ snapshots: shallowequal@1.1.0: {} - sharp@0.34.2: + sharp@0.34.3: dependencies: color: 4.2.3 detect-libc: 2.0.4 semver: 7.7.2 optionalDependencies: - '@img/sharp-darwin-arm64': 0.34.2 - '@img/sharp-darwin-x64': 0.34.2 - '@img/sharp-libvips-darwin-arm64': 1.1.0 - '@img/sharp-libvips-darwin-x64': 1.1.0 - '@img/sharp-libvips-linux-arm': 1.1.0 - '@img/sharp-libvips-linux-arm64': 1.1.0 - '@img/sharp-libvips-linux-ppc64': 1.1.0 - '@img/sharp-libvips-linux-s390x': 1.1.0 - '@img/sharp-libvips-linux-x64': 1.1.0 - '@img/sharp-libvips-linuxmusl-arm64': 1.1.0 - '@img/sharp-libvips-linuxmusl-x64': 1.1.0 - '@img/sharp-linux-arm': 0.34.2 - '@img/sharp-linux-arm64': 0.34.2 - '@img/sharp-linux-s390x': 0.34.2 - '@img/sharp-linux-x64': 0.34.2 - '@img/sharp-linuxmusl-arm64': 0.34.2 - '@img/sharp-linuxmusl-x64': 0.34.2 - '@img/sharp-wasm32': 0.34.2 - '@img/sharp-win32-arm64': 0.34.2 - '@img/sharp-win32-ia32': 0.34.2 - '@img/sharp-win32-x64': 0.34.2 + '@img/sharp-darwin-arm64': 0.34.3 + '@img/sharp-darwin-x64': 0.34.3 + '@img/sharp-libvips-darwin-arm64': 1.2.0 + '@img/sharp-libvips-darwin-x64': 1.2.0 + '@img/sharp-libvips-linux-arm': 1.2.0 + '@img/sharp-libvips-linux-arm64': 1.2.0 + '@img/sharp-libvips-linux-ppc64': 1.2.0 + '@img/sharp-libvips-linux-s390x': 1.2.0 + '@img/sharp-libvips-linux-x64': 1.2.0 + '@img/sharp-libvips-linuxmusl-arm64': 1.2.0 + '@img/sharp-libvips-linuxmusl-x64': 1.2.0 + '@img/sharp-linux-arm': 0.34.3 + '@img/sharp-linux-arm64': 0.34.3 + '@img/sharp-linux-ppc64': 0.34.3 + '@img/sharp-linux-s390x': 0.34.3 + '@img/sharp-linux-x64': 0.34.3 + '@img/sharp-linuxmusl-arm64': 0.34.3 + '@img/sharp-linuxmusl-x64': 0.34.3 + '@img/sharp-wasm32': 0.34.3 + '@img/sharp-win32-arm64': 0.34.3 + '@img/sharp-win32-ia32': 0.34.3 + '@img/sharp-win32-x64': 0.34.3 shebang-command@2.0.0: dependencies: @@ -34872,11 +35346,11 @@ snapshots: shebang-regex@3.0.0: {} - shell-quote@1.8.2: {} + shell-quote@1.8.3: {} shiki@0.14.7: dependencies: - ansi-sequence-parser: 1.1.1 + ansi-sequence-parser: 1.1.3 jsonc-parser: 3.3.1 vscode-oniguruma: 1.7.0 vscode-textmate: 8.0.0 @@ -34958,7 +35432,7 @@ snapshots: dependencies: bytes-iec: 3.1.1 chokidar: 4.0.3 - jiti: 2.4.2 + jiti: 2.5.1 lilconfig: 3.1.3 nanospinner: 1.2.2 picocolors: 1.1.1 @@ -34970,7 +35444,7 @@ snapshots: smart-buffer@4.2.0: {} - smol-toml@1.3.4: {} + smol-toml@1.4.1: {} socket.io-client@4.8.1(bufferutil@4.0.9)(utf-8-validate@5.0.10): dependencies: @@ -34992,9 +35466,9 @@ snapshots: socks-proxy-agent@8.0.5: dependencies: - agent-base: 7.1.3 - debug: 4.4.1(supports-color@8.1.1) - socks: 2.8.5 + agent-base: 7.1.4 + debug: 4.3.4 + socks: 2.8.6 transitivePeerDependencies: - supports-color @@ -35003,6 +35477,11 @@ snapshots: ip-address: 9.0.5 smart-buffer: 4.2.0 + socks@2.8.6: + dependencies: + ip-address: 9.0.5 + smart-buffer: 4.2.0 + sonic-boom@2.8.0: dependencies: atomic-sleep: 1.0.0 @@ -35080,6 +35559,8 @@ snapshots: statuses@2.0.1: {} + statuses@2.0.2: {} + std-env@3.9.0: {} stdin-discarder@0.1.0: @@ -35101,8 +35582,8 @@ snapshots: '@vitest/expect': 3.2.4 '@vitest/spy': 3.2.4 better-opn: 3.0.2 - esbuild: 0.25.5 - esbuild-register: 3.6.0(esbuild@0.25.5) + esbuild: 0.25.8 + esbuild-register: 3.6.0(esbuild@0.25.8) recast: 0.23.11 semver: 7.7.2 ws: 8.18.3(bufferutil@4.0.9)(utf-8-validate@5.0.10) @@ -35122,8 +35603,8 @@ snapshots: '@vitest/expect': 3.2.4 '@vitest/spy': 3.2.4 better-opn: 3.0.2 - esbuild: 0.25.5 - esbuild-register: 3.6.0(esbuild@0.25.5) + esbuild: 0.25.8 + esbuild-register: 3.6.0(esbuild@0.25.8) recast: 0.23.11 semver: 7.7.2 ws: 8.18.3(bufferutil@4.0.9)(utf-8-validate@6.0.5) @@ -35316,9 +35797,9 @@ snapshots: structured-headers@0.4.1: {} - style-loader@3.3.4(webpack@5.99.9(esbuild@0.25.5)): + style-loader@3.3.4(webpack@5.100.2): dependencies: - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.100.2 style-loader@3.3.4(webpack@5.99.9): dependencies: @@ -35518,12 +35999,12 @@ snapshots: transitivePeerDependencies: - bare-buffer - tar-fs@3.0.8: + tar-fs@3.1.0: dependencies: pump: 3.0.3 tar-stream: 3.1.7 optionalDependencies: - bare-fs: 4.0.1 + bare-fs: 4.1.6 bare-path: 3.0.0 transitivePeerDependencies: - bare-buffer @@ -35561,16 +36042,25 @@ snapshots: ansi-escapes: 4.3.2 supports-hyperlinks: 2.3.0 - terser-webpack-plugin@5.3.14(esbuild@0.25.5)(webpack@5.99.9(esbuild@0.25.5)): + terser-webpack-plugin@5.3.14(esbuild@0.25.8)(webpack@5.100.2(esbuild@0.25.8)): dependencies: '@jridgewell/trace-mapping': 0.3.29 jest-worker: 27.5.1 schema-utils: 4.3.2 serialize-javascript: 6.0.2 terser: 5.43.1 - webpack: 5.99.9(esbuild@0.25.5) + webpack: 5.100.2(esbuild@0.25.8) optionalDependencies: - esbuild: 0.25.5 + esbuild: 0.25.8 + + terser-webpack-plugin@5.3.14(webpack@5.100.2): + dependencies: + '@jridgewell/trace-mapping': 0.3.29 + jest-worker: 27.5.1 + schema-utils: 4.3.2 + serialize-javascript: 6.0.2 + terser: 5.43.1 + webpack: 5.100.2 terser-webpack-plugin@5.3.14(webpack@5.99.9): dependencies: @@ -35640,8 +36130,8 @@ snapshots: tinyglobby@0.2.14: dependencies: - fdir: 6.4.6(picomatch@4.0.2) - picomatch: 4.0.2 + fdir: 6.4.6(picomatch@4.0.3) + picomatch: 4.0.3 tinypool@1.1.1: {} @@ -35936,14 +36426,6 @@ snapshots: undici@6.21.3: {} - unenv@1.10.0: - dependencies: - consola: 3.4.2 - defu: 6.1.4 - mime: 3.0.0 - node-fetch-native: 1.6.6 - pathe: 1.1.2 - unhead@1.11.20: dependencies: '@unhead/dom': 1.11.20 @@ -36098,12 +36580,12 @@ snapshots: '@unrs/resolver-binding-win32-ia32-msvc': 1.10.1 '@unrs/resolver-binding-win32-x64-msvc': 1.10.1 - unstorage@1.14.4(aws4fetch@1.0.20)(idb-keyval@6.2.2)(ioredis@5.6.1): + unstorage@1.16.1(aws4fetch@1.0.20)(idb-keyval@6.2.2)(ioredis@5.6.1): dependencies: anymatch: 3.1.3 - chokidar: 3.6.0 + chokidar: 4.0.3 destr: 2.0.5 - h3: 1.14.0 + h3: 1.15.3 lru-cache: 10.4.3 node-fetch-native: 1.6.6 ofetch: 1.4.1 @@ -36426,13 +36908,47 @@ snapshots: - utf-8-validate - zod - vite-node@3.2.4(@types/node@22.14.1)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): + viem@2.33.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.22.4): + dependencies: + '@noble/curves': 1.9.2 + '@noble/hashes': 1.8.0 + '@scure/bip32': 1.7.0 + '@scure/bip39': 1.6.0 + abitype: 1.0.8(typescript@5.8.3)(zod@3.22.4) + isows: 1.0.7(ws@8.18.2(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + ox: 0.8.1(typescript@5.8.3)(zod@3.22.4) + ws: 8.18.2(bufferutil@4.0.9)(utf-8-validate@5.0.10) + optionalDependencies: + typescript: 5.8.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + - zod + + viem@2.33.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(zod@3.25.75): + dependencies: + '@noble/curves': 1.9.2 + '@noble/hashes': 1.8.0 + '@scure/bip32': 1.7.0 + '@scure/bip39': 1.6.0 + abitype: 1.0.8(typescript@5.8.3)(zod@3.25.75) + isows: 1.0.7(ws@8.18.2(bufferutil@4.0.9)(utf-8-validate@5.0.10)) + ox: 0.8.1(typescript@5.8.3)(zod@3.25.75) + ws: 8.18.2(bufferutil@4.0.9)(utf-8-validate@5.0.10) + optionalDependencies: + typescript: 5.8.3 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + - zod + + vite-node@3.2.4(@types/node@22.14.1)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): dependencies: cac: 6.7.14 debug: 4.4.1(supports-color@8.1.1) es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 7.0.1(@types/node@22.14.1)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 7.0.1(@types/node@22.14.1)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) transitivePeerDependencies: - '@types/node' - jiti @@ -36447,13 +36963,13 @@ snapshots: - tsx - yaml - vite-node@3.2.4(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): + vite-node@3.2.4(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): dependencies: cac: 6.7.14 debug: 4.4.1(supports-color@8.1.1) es-module-lexer: 1.7.0 pathe: 2.0.3 - vite: 7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) transitivePeerDependencies: - '@types/node' - jiti @@ -36468,64 +36984,64 @@ snapshots: - tsx - yaml - vite@7.0.1(@types/node@22.14.1)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): + vite@7.0.1(@types/node@22.14.1)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): dependencies: - esbuild: 0.25.5 - fdir: 6.4.6(picomatch@4.0.2) - picomatch: 4.0.2 + esbuild: 0.25.8 + fdir: 6.4.6(picomatch@4.0.3) + picomatch: 4.0.3 postcss: 8.5.6 - rollup: 4.44.1 + rollup: 4.45.1 tinyglobby: 0.2.14 optionalDependencies: '@types/node': 22.14.1 fsevents: 2.3.3 - jiti: 2.4.2 + jiti: 2.5.1 lightningcss: 1.30.1 terser: 5.43.1 tsx: 4.20.3 yaml: 2.8.0 - vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): + vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): dependencies: - esbuild: 0.25.5 - fdir: 6.4.6(picomatch@4.0.2) - picomatch: 4.0.2 + esbuild: 0.25.8 + fdir: 6.4.6(picomatch@4.0.3) + picomatch: 4.0.3 postcss: 8.5.6 - rollup: 4.44.1 + rollup: 4.45.1 tinyglobby: 0.2.14 optionalDependencies: - '@types/node': 24.0.10 + '@types/node': 24.1.0 fsevents: 2.3.3 - jiti: 2.4.2 + jiti: 2.5.1 lightningcss: 1.30.1 terser: 5.43.1 tsx: 4.20.3 yaml: 2.8.0 - vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@22.14.1)(@vitest/ui@3.2.4)(happy-dom@18.0.1)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(vite@7.0.1(@types/node@22.14.1)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) + '@vitest/mocker': 3.2.4(msw@2.10.2(@types/node@22.14.1)(typescript@5.8.3))(vite@7.0.1(@types/node@22.14.1)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 - chai: 5.2.0 + chai: 5.2.1 debug: 4.4.1(supports-color@8.1.1) - expect-type: 1.2.1 + expect-type: 1.2.2 magic-string: 0.30.17 pathe: 2.0.3 - picomatch: 4.0.2 + picomatch: 4.0.3 std-env: 3.9.0 tinybench: 2.9.0 tinyexec: 0.3.2 tinyglobby: 0.2.14 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.0.1(@types/node@22.14.1)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) - vite-node: 3.2.4(@types/node@22.14.1)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 7.0.1(@types/node@22.14.1)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite-node: 3.2.4(@types/node@22.14.1)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) why-is-node-running: 2.3.0 optionalDependencies: '@types/debug': 4.1.12 @@ -36546,34 +37062,34 @@ snapshots: - tsx - yaml - vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.0.10)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.4.2)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): + vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.1.0)(@vitest/ui@3.2.4)(happy-dom@17.4.4)(jiti@2.5.1)(lightningcss@1.30.1)(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0): dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(msw@2.7.5(@types/node@24.0.10)(typescript@5.8.3))(vite@7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) + '@vitest/mocker': 3.2.4(msw@2.7.5(@types/node@24.1.0)(typescript@5.8.3))(vite@7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 '@vitest/spy': 3.2.4 '@vitest/utils': 3.2.4 - chai: 5.2.0 + chai: 5.2.1 debug: 4.4.1(supports-color@8.1.1) - expect-type: 1.2.1 + expect-type: 1.2.2 magic-string: 0.30.17 pathe: 2.0.3 - picomatch: 4.0.2 + picomatch: 4.0.3 std-env: 3.9.0 tinybench: 2.9.0 tinyexec: 0.3.2 tinyglobby: 0.2.14 tinypool: 1.1.1 tinyrainbow: 2.0.0 - vite: 7.0.1(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) - vite-node: 3.2.4(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 7.0.1(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite-node: 3.2.4(@types/node@24.1.0)(jiti@2.5.1)(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) why-is-node-running: 2.3.0 optionalDependencies: '@types/debug': 4.1.12 - '@types/node': 24.0.10 + '@types/node': 24.1.0 '@vitest/ui': 3.2.4(vitest@3.2.4) happy-dom: 17.4.4 transitivePeerDependencies: @@ -36674,6 +37190,11 @@ snapshots: glob-to-regexp: 0.4.1 graceful-fs: 4.2.11 + watchpack@2.4.4: + dependencies: + glob-to-regexp: 0.4.1 + graceful-fs: 4.2.11 + wcwidth@1.0.1: dependencies: defaults: 1.0.4 @@ -36714,16 +37235,6 @@ snapshots: - bufferutil - utf-8-validate - webpack-dev-middleware@6.1.3(webpack@5.99.9(esbuild@0.25.5)): - dependencies: - colorette: 2.0.20 - memfs: 3.5.3 - mime-types: 2.1.35 - range-parser: 1.2.1 - schema-utils: 4.3.2 - optionalDependencies: - webpack: 5.99.9(esbuild@0.25.5) - webpack-dev-middleware@6.1.3(webpack@5.99.9): dependencies: colorette: 2.0.20 @@ -36746,7 +37257,7 @@ snapshots: webpack-virtual-modules@0.6.2: {} - webpack@5.99.9: + webpack@5.100.2: dependencies: '@types/eslint-scope': 3.7.7 '@types/estree': 1.0.8 @@ -36755,6 +37266,7 @@ snapshots: '@webassemblyjs/wasm-edit': 1.14.1 '@webassemblyjs/wasm-parser': 1.14.1 acorn: 8.15.0 + acorn-import-phases: 1.0.4(acorn@8.15.0) browserslist: 4.25.1 chrome-trace-event: 1.0.4 enhanced-resolve: 5.18.2 @@ -36769,15 +37281,47 @@ snapshots: neo-async: 2.6.2 schema-utils: 4.3.2 tapable: 2.2.2 - terser-webpack-plugin: 5.3.14(webpack@5.99.9) - watchpack: 2.4.3 + terser-webpack-plugin: 5.3.14(webpack@5.100.2) + watchpack: 2.4.4 + webpack-sources: 3.3.3 + transitivePeerDependencies: + - '@swc/core' + - esbuild + - uglify-js + + webpack@5.100.2(esbuild@0.25.8): + dependencies: + '@types/eslint-scope': 3.7.7 + '@types/estree': 1.0.8 + '@types/json-schema': 7.0.15 + '@webassemblyjs/ast': 1.14.1 + '@webassemblyjs/wasm-edit': 1.14.1 + '@webassemblyjs/wasm-parser': 1.14.1 + acorn: 8.15.0 + acorn-import-phases: 1.0.4(acorn@8.15.0) + browserslist: 4.25.1 + chrome-trace-event: 1.0.4 + enhanced-resolve: 5.18.2 + es-module-lexer: 1.7.0 + eslint-scope: 5.1.1 + events: 3.3.0 + glob-to-regexp: 0.4.1 + graceful-fs: 4.2.11 + json-parse-even-better-errors: 2.3.1 + loader-runner: 4.3.0 + mime-types: 2.1.35 + neo-async: 2.6.2 + schema-utils: 4.3.2 + tapable: 2.2.2 + terser-webpack-plugin: 5.3.14(esbuild@0.25.8)(webpack@5.100.2(esbuild@0.25.8)) + watchpack: 2.4.4 webpack-sources: 3.3.3 transitivePeerDependencies: - '@swc/core' - esbuild - uglify-js - webpack@5.99.9(esbuild@0.25.5): + webpack@5.99.9: dependencies: '@types/eslint-scope': 3.7.7 '@types/estree': 1.0.8 @@ -36800,7 +37344,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 4.3.2 tapable: 2.2.2 - terser-webpack-plugin: 5.3.14(esbuild@0.25.5)(webpack@5.99.9(esbuild@0.25.5)) + terser-webpack-plugin: 5.3.14(webpack@5.99.9) watchpack: 2.4.3 webpack-sources: 3.3.3 transitivePeerDependencies: @@ -36901,19 +37445,19 @@ snapshots: worker-timers-broker@6.1.8: dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 fast-unique-numbers: 8.0.13 tslib: 2.8.1 worker-timers-worker: 7.0.71 worker-timers-worker@7.0.71: dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 tslib: 2.8.1 worker-timers@7.1.8: dependencies: - '@babel/runtime': 7.27.6 + '@babel/runtime': 7.28.2 tslib: 2.8.1 worker-timers-broker: 6.1.8 worker-timers-worker: 7.0.71 @@ -37092,6 +37636,8 @@ snapshots: yocto-queue@1.1.1: {} + yocto-queue@1.2.1: {} + yoctocolors-cjs@2.1.2: {} yoctocolors@2.1.1: {} @@ -37112,6 +37658,10 @@ snapshots: dependencies: zod: 3.25.75 + zod-validation-error@3.5.3(zod@3.25.75): + dependencies: + zod: 3.25.75 + zod@3.22.4: {} zod@3.24.1: {} From b15abc729939897dcb0ea079e1e8bdcfa2f2a7e9 Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Sat, 26 Jul 2025 06:34:34 +0000 Subject: [PATCH 28/32] Fix format --- packages/thirdweb/src/tokens/constants.ts | 1 - .../thirdweb/src/tokens/get-entrypoint-erc20.ts | 4 +--- .../thirdweb/src/tokens/is-router-enabled.ts | 16 ++++++++++------ 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/packages/thirdweb/src/tokens/constants.ts b/packages/thirdweb/src/tokens/constants.ts index 393e3b263c5..e65674c964c 100644 --- a/packages/thirdweb/src/tokens/constants.ts +++ b/packages/thirdweb/src/tokens/constants.ts @@ -13,4 +13,3 @@ export const IMPLEMENTATIONS: Record> = { EntrypointERC20: "0x76d5aa9dEC618b54186DCa332C713B27A8ea70Ac", }, }; - diff --git a/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts b/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts index c6da6b71a96..38af20ba9c4 100644 --- a/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts +++ b/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts @@ -1,7 +1,5 @@ import { getContract } from "../contract/contract.js"; -import type { - ClientAndChain, -} from "../utils/types.js"; +import type { ClientAndChain } from "../utils/types.js"; import { IMPLEMENTATIONS } from "./constants.js"; export async function getEntrypointERC20(options: ClientAndChain) { diff --git a/packages/thirdweb/src/tokens/is-router-enabled.ts b/packages/thirdweb/src/tokens/is-router-enabled.ts index 6f4fa533dcf..aff8672f945 100644 --- a/packages/thirdweb/src/tokens/is-router-enabled.ts +++ b/packages/thirdweb/src/tokens/is-router-enabled.ts @@ -21,10 +21,10 @@ export async function isPoolRouterEnabled( } const poolRouterContract = getContract({ - address: poolRouterAddress, - chain: options.chain, - client: options.client, - }) + address: poolRouterAddress, + chain: options.chain, + client: options.client, + }); const [v3Adapter, v4Adapter] = await Promise.all([ getAdapter({ @@ -34,9 +34,13 @@ export async function isPoolRouterEnabled( getAdapter({ contract: poolRouterContract, adapterType: 2, - })]); + }), + ]); - if (v3Adapter.rewardLocker === ZERO_ADDRESS && v4Adapter.rewardLocker === ZERO_ADDRESS) { + if ( + v3Adapter.rewardLocker === ZERO_ADDRESS && + v4Adapter.rewardLocker === ZERO_ADDRESS + ) { return false; } From e91dc3b31f5a98350e8021ae2759bf43b3601e38 Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Sat, 26 Jul 2025 06:37:47 +0000 Subject: [PATCH 29/32] biome fix --- .../airdrop/__generated__/Airdrop/events/OwnerUpdated.ts | 2 +- .../airdrop/__generated__/Airdrop/read/eip712Domain.ts | 5 ++--- .../airdrop/__generated__/Airdrop/read/isClaimed.ts | 4 ++-- .../extensions/airdrop/__generated__/Airdrop/read/owner.ts | 5 ++--- .../airdrop/__generated__/Airdrop/read/tokenConditionId.ts | 4 ++-- .../airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/airdropERC1155.ts | 4 ++-- .../Airdrop/write/airdropERC1155WithSignature.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/airdropERC20.ts | 4 ++-- .../__generated__/Airdrop/write/airdropERC20WithSignature.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/airdropERC721.ts | 4 ++-- .../Airdrop/write/airdropERC721WithSignature.ts | 4 ++-- .../__generated__/Airdrop/write/airdropNativeToken.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/claimERC1155.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/claimERC20.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/claimERC721.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/initialize.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/setMerkleRoot.ts | 4 ++-- .../airdrop/__generated__/Airdrop/write/setOwner.ts | 4 ++-- .../IClaimConditionsSinglePhase/write/setClaimConditions.ts | 4 ++-- .../__generated__/IContractMetadata/read/contractURI.ts | 5 ++--- .../common/__generated__/IContractMetadata/read/name.ts | 5 ++--- .../common/__generated__/IContractMetadata/read/symbol.ts | 5 ++--- .../__generated__/IContractMetadata/write/setContractURI.ts | 4 ++-- .../common/__generated__/IMulticall/write/multicall.ts | 4 ++-- .../common/__generated__/IOwnable/events/OwnerUpdated.ts | 2 +- .../extensions/common/__generated__/IOwnable/read/owner.ts | 5 ++--- .../common/__generated__/IOwnable/write/setOwner.ts | 4 ++-- .../IPlatformFee/events/PlatformFeeInfoUpdated.ts | 2 +- .../__generated__/IPlatformFee/read/getPlatformFeeInfo.ts | 5 ++--- .../__generated__/IPlatformFee/write/setPlatformFeeInfo.ts | 4 ++-- .../IPrimarySale/events/PrimarySaleRecipientUpdated.ts | 2 +- .../__generated__/IPrimarySale/read/primarySaleRecipient.ts | 5 ++--- .../IPrimarySale/write/setPrimarySaleRecipient.ts | 4 ++-- .../common/__generated__/IRoyalty/events/DefaultRoyalty.ts | 2 +- .../common/__generated__/IRoyalty/events/RoyaltyForToken.ts | 2 +- .../__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts | 5 ++--- .../__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts | 4 ++-- .../common/__generated__/IRoyalty/read/royaltyInfo.ts | 4 ++-- .../common/__generated__/IRoyalty/read/supportsInterface.ts | 4 ++-- .../__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts | 4 ++-- .../__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts | 4 ++-- .../IRoyaltyPayments/events/RoyaltyEngineUpdated.ts | 2 +- .../__generated__/IRoyaltyPayments/read/supportsInterface.ts | 4 ++-- .../__generated__/IRoyaltyPayments/write/getRoyalty.ts | 4 ++-- .../__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts | 4 ++-- .../__generated__/IExtensionManager/read/getAllExtensions.ts | 5 ++--- .../__generated__/IExtensionManager/write/addExtension.ts | 4 ++-- .../__generated__/IExtensionManager/write/removeExtension.ts | 4 ++-- .../extensions/ens/__generated__/AddressResolver/read/ABI.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/addr.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/contenthash.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/name.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/pubkey.ts | 4 ++-- .../ens/__generated__/AddressResolver/read/text.ts | 4 ++-- .../src/extensions/ens/__generated__/L2Resolver/read/name.ts | 4 ++-- .../ens/__generated__/UniversalResolver/read/resolve.ts | 4 ++-- .../ens/__generated__/UniversalResolver/read/reverse.ts | 4 ++-- .../__generated__/BatchMintMetadata/read/getBaseURICount.ts | 5 ++--- .../BatchMintMetadata/read/getBatchIdAtIndex.ts | 4 ++-- .../erc1155/__generated__/DropERC1155/read/verifyClaim.ts | 4 ++-- .../__generated__/DropERC1155/write/freezeBatchBaseURI.ts | 4 ++-- .../__generated__/DropERC1155/write/setMaxTotalSupply.ts | 4 ++-- .../DropERC1155/write/setSaleRecipientForToken.ts | 4 ++-- .../__generated__/DropERC1155/write/updateBatchBaseURI.ts | 4 ++-- .../__generated__/IAirdropERC1155/events/AirdropFailed.ts | 2 +- .../__generated__/IAirdropERC1155/write/airdropERC1155.ts | 4 ++-- .../IAirdropERC1155Claimable/events/TokensClaimed.ts | 2 +- .../__generated__/IAirdropERC1155Claimable/write/claim.ts | 4 ++-- .../erc1155/__generated__/IBurnableERC1155/write/burn.ts | 4 ++-- .../__generated__/IBurnableERC1155/write/burnBatch.ts | 4 ++-- .../__generated__/IClaimableERC1155/events/TokensClaimed.ts | 2 +- .../erc1155/__generated__/IClaimableERC1155/write/claim.ts | 4 ++-- .../__generated__/IDrop1155/events/ClaimConditionsUpdated.ts | 2 +- .../erc1155/__generated__/IDrop1155/events/TokensClaimed.ts | 2 +- .../erc1155/__generated__/IDrop1155/read/claimCondition.ts | 4 ++-- .../IDrop1155/read/getActiveClaimConditionId.ts | 4 ++-- .../__generated__/IDrop1155/read/getClaimConditionById.ts | 4 ++-- .../erc1155/__generated__/IDrop1155/write/claim.ts | 4 ++-- .../__generated__/IDrop1155/write/setClaimConditions.ts | 4 ++-- .../IDropSinglePhase1155/events/ClaimConditionUpdated.ts | 2 +- .../IDropSinglePhase1155/events/TokensClaimed.ts | 2 +- .../IDropSinglePhase1155/read/claimCondition.ts | 4 ++-- .../__generated__/IDropSinglePhase1155/write/claim.ts | 4 ++-- .../IDropSinglePhase1155/write/setClaimConditions.ts | 4 ++-- .../erc1155/__generated__/IERC1155/events/ApprovalForAll.ts | 2 +- .../erc1155/__generated__/IERC1155/events/TransferBatch.ts | 2 +- .../erc1155/__generated__/IERC1155/events/TransferSingle.ts | 2 +- .../extensions/erc1155/__generated__/IERC1155/events/URI.ts | 2 +- .../erc1155/__generated__/IERC1155/read/balanceOf.ts | 4 ++-- .../erc1155/__generated__/IERC1155/read/balanceOfBatch.ts | 4 ++-- .../erc1155/__generated__/IERC1155/read/isApprovedForAll.ts | 4 ++-- .../erc1155/__generated__/IERC1155/read/totalSupply.ts | 4 ++-- .../extensions/erc1155/__generated__/IERC1155/read/uri.ts | 4 ++-- .../__generated__/IERC1155/write/safeBatchTransferFrom.ts | 4 ++-- .../erc1155/__generated__/IERC1155/write/safeTransferFrom.ts | 4 ++-- .../__generated__/IERC1155/write/setApprovalForAll.ts | 4 ++-- .../IERC1155Enumerable/read/nextTokenIdToMint.ts | 5 ++--- .../__generated__/IERC1155Receiver/read/supportsInterface.ts | 4 ++-- .../IERC1155Receiver/write/onERC1155BatchReceived.ts | 4 ++-- .../IERC1155Receiver/write/onERC1155Received.ts | 4 ++-- .../__generated__/IEditionStake/write/depositRewardTokens.ts | 4 ++-- .../IEditionStake/write/withdrawRewardTokens.ts | 4 ++-- .../__generated__/ILazyMint/events/TokensLazyMinted.ts | 2 +- .../erc1155/__generated__/ILazyMint/write/lazyMint.ts | 4 ++-- .../__generated__/IMintableERC1155/events/TokensMinted.ts | 2 +- .../erc1155/__generated__/IMintableERC1155/write/mintTo.ts | 4 ++-- .../__generated__/INFTMetadata/read/supportsInterface.ts | 4 ++-- .../__generated__/INFTMetadata/write/freezeMetadata.ts | 2 +- .../erc1155/__generated__/INFTMetadata/write/setTokenURI.ts | 4 ++-- .../erc1155/__generated__/IPack/events/PackCreated.ts | 2 +- .../erc1155/__generated__/IPack/events/PackOpened.ts | 2 +- .../erc1155/__generated__/IPack/events/PackUpdated.ts | 2 +- .../erc1155/__generated__/IPack/write/createPack.ts | 4 ++-- .../extensions/erc1155/__generated__/IPack/write/openPack.ts | 4 ++-- .../__generated__/IPackVRFDirect/events/PackOpenRequested.ts | 2 +- .../IPackVRFDirect/events/PackRandomnessFulfilled.ts | 2 +- .../__generated__/IPackVRFDirect/read/canClaimRewards.ts | 4 ++-- .../__generated__/IPackVRFDirect/write/claimRewards.ts | 2 +- .../IPackVRFDirect/write/openPackAndClaimRewards.ts | 4 ++-- .../events/TokensMintedWithSignature.ts | 2 +- .../__generated__/ISignatureMintERC1155/read/verify.ts | 4 ++-- .../ISignatureMintERC1155/write/mintWithSignature.ts | 4 ++-- .../__generated__/IStaking1155/events/RewardsClaimed.ts | 2 +- .../__generated__/IStaking1155/events/TokensStaked.ts | 2 +- .../__generated__/IStaking1155/events/TokensWithdrawn.ts | 2 +- .../IStaking1155/events/UpdatedRewardsPerUnitTime.ts | 2 +- .../__generated__/IStaking1155/events/UpdatedTimeUnit.ts | 2 +- .../erc1155/__generated__/IStaking1155/read/getStakeInfo.ts | 4 ++-- .../__generated__/IStaking1155/read/getStakeInfoForToken.ts | 4 ++-- .../erc1155/__generated__/IStaking1155/write/claimRewards.ts | 4 ++-- .../erc1155/__generated__/IStaking1155/write/stake.ts | 4 ++-- .../erc1155/__generated__/IStaking1155/write/withdraw.ts | 4 ++-- .../erc1155/__generated__/Zora1155/read/nextTokenId.ts | 5 ++--- .../__generated__/isValidSignature/read/isValidSignature.ts | 4 ++-- .../erc165/__generated__/IERC165/read/supportsInterface.ts | 4 ++-- .../__generated__/IERC1822Proxiable/read/proxiableUUID.ts | 5 ++--- .../erc20/__generated__/DropERC20/read/verifyClaim.ts | 4 ++-- .../__generated__/IAirdropERC20/events/AirdropFailed.ts | 2 +- .../erc20/__generated__/IAirdropERC20/write/airdropERC20.ts | 4 ++-- .../IAirdropERC20Claimable/events/TokensClaimed.ts | 2 +- .../__generated__/IAirdropERC20Claimable/write/claim.ts | 4 ++-- .../erc20/__generated__/IBurnableERC20/write/burn.ts | 4 ++-- .../erc20/__generated__/IBurnableERC20/write/burnFrom.ts | 4 ++-- .../erc20/__generated__/IDropERC20/events/TokensClaimed.ts | 2 +- .../erc20/__generated__/IDropERC20/read/claimCondition.ts | 5 ++--- .../IDropERC20/read/getActiveClaimConditionId.ts | 5 ++--- .../__generated__/IDropERC20/read/getClaimConditionById.ts | 4 ++-- .../extensions/erc20/__generated__/IDropERC20/write/claim.ts | 4 ++-- .../__generated__/IDropERC20/write/setClaimConditions.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/events/Approval.ts | 2 +- .../extensions/erc20/__generated__/IERC20/events/Transfer.ts | 2 +- .../extensions/erc20/__generated__/IERC20/read/allowance.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/read/balanceOf.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/read/decimals.ts | 5 ++--- .../erc20/__generated__/IERC20/read/totalSupply.ts | 5 ++--- .../extensions/erc20/__generated__/IERC20/write/approve.ts | 4 ++-- .../extensions/erc20/__generated__/IERC20/write/transfer.ts | 4 ++-- .../erc20/__generated__/IERC20/write/transferFrom.ts | 4 ++-- .../__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts | 5 ++--- .../erc20/__generated__/IERC20Permit/read/nonces.ts | 4 ++-- .../erc20/__generated__/IERC20Permit/write/permit.ts | 4 ++-- .../__generated__/IMintableERC20/events/TokensMinted.ts | 2 +- .../erc20/__generated__/IMintableERC20/write/mintTo.ts | 4 ++-- .../ISignatureMintERC20/events/TokensMintedWithSignature.ts | 2 +- .../erc20/__generated__/ISignatureMintERC20/read/verify.ts | 4 ++-- .../ISignatureMintERC20/write/mintWithSignature.ts | 4 ++-- .../erc20/__generated__/IStaking20/events/RewardsClaimed.ts | 2 +- .../erc20/__generated__/IStaking20/events/TokensStaked.ts | 2 +- .../erc20/__generated__/IStaking20/events/TokensWithdrawn.ts | 2 +- .../erc20/__generated__/IStaking20/read/getStakeInfo.ts | 4 ++-- .../erc20/__generated__/IStaking20/write/claimRewards.ts | 2 +- .../extensions/erc20/__generated__/IStaking20/write/stake.ts | 4 ++-- .../erc20/__generated__/IStaking20/write/withdraw.ts | 4 ++-- .../__generated__/ITokenStake/write/depositRewardTokens.ts | 4 ++-- .../__generated__/ITokenStake/write/withdrawRewardTokens.ts | 4 ++-- .../erc20/__generated__/IVotes/events/DelegateChanged.ts | 2 +- .../__generated__/IVotes/events/DelegateVotesChanged.ts | 2 +- .../extensions/erc20/__generated__/IVotes/read/delegates.ts | 4 ++-- .../erc20/__generated__/IVotes/read/getPastTotalSupply.ts | 4 ++-- .../erc20/__generated__/IVotes/read/getPastVotes.ts | 4 ++-- .../extensions/erc20/__generated__/IVotes/read/getVotes.ts | 4 ++-- .../extensions/erc20/__generated__/IVotes/write/delegate.ts | 4 ++-- .../erc20/__generated__/IVotes/write/delegateBySig.ts | 4 ++-- .../extensions/erc20/__generated__/IWETH/write/deposit.ts | 2 +- .../extensions/erc20/__generated__/IWETH/write/transfer.ts | 4 ++-- .../extensions/erc20/__generated__/IWETH/write/withdraw.ts | 4 ++-- .../__generated__/IERC2771Context/read/isTrustedForwarder.ts | 4 ++-- .../erc2981/__generated__/IERC2981/read/royaltyInfo.ts | 4 ++-- .../erc4337/__generated__/IAccount/write/validateUserOp.ts | 4 ++-- .../__generated__/IAccountFactory/events/AccountCreated.ts | 2 +- .../__generated__/IAccountFactory/events/SignerAdded.ts | 2 +- .../__generated__/IAccountFactory/events/SignerRemoved.ts | 2 +- .../IAccountFactory/read/accountImplementation.ts | 5 ++--- .../__generated__/IAccountFactory/read/getAccounts.ts | 4 ++-- .../IAccountFactory/read/getAccountsOfSigner.ts | 4 ++-- .../erc4337/__generated__/IAccountFactory/read/getAddress.ts | 4 ++-- .../__generated__/IAccountFactory/read/getAllAccounts.ts | 5 ++--- .../__generated__/IAccountFactory/read/isRegistered.ts | 4 ++-- .../__generated__/IAccountFactory/read/totalAccounts.ts | 5 ++--- .../__generated__/IAccountFactory/write/createAccount.ts | 4 ++-- .../__generated__/IAccountFactory/write/onSignerAdded.ts | 4 ++-- .../__generated__/IAccountFactory/write/onSignerRemoved.ts | 4 ++-- .../__generated__/IAccountPermissions/events/AdminUpdated.ts | 2 +- .../IAccountPermissions/events/SignerPermissionsUpdated.ts | 2 +- .../IAccountPermissions/read/getAllActiveSigners.ts | 5 ++--- .../__generated__/IAccountPermissions/read/getAllAdmins.ts | 5 ++--- .../__generated__/IAccountPermissions/read/getAllSigners.ts | 5 ++--- .../IAccountPermissions/read/getPermissionsForSigner.ts | 4 ++-- .../__generated__/IAccountPermissions/read/isActiveSigner.ts | 4 ++-- .../__generated__/IAccountPermissions/read/isAdmin.ts | 4 ++-- .../read/verifySignerPermissionRequest.ts | 4 ++-- .../IAccountPermissions/write/setPermissionsForSigner.ts | 4 ++-- .../__generated__/IEntryPoint/events/AccountDeployed.ts | 2 +- .../erc4337/__generated__/IEntryPoint/events/Deposited.ts | 2 +- .../IEntryPoint/events/SignatureAggregatorChanged.ts | 2 +- .../erc4337/__generated__/IEntryPoint/events/StakeLocked.ts | 2 +- .../__generated__/IEntryPoint/events/StakeUnlocked.ts | 2 +- .../__generated__/IEntryPoint/events/StakeWithdrawn.ts | 2 +- .../__generated__/IEntryPoint/events/UserOperationEvent.ts | 2 +- .../IEntryPoint/events/UserOperationRevertReason.ts | 2 +- .../erc4337/__generated__/IEntryPoint/events/Withdrawn.ts | 2 +- .../erc4337/__generated__/IEntryPoint/read/balanceOf.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/read/getNonce.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/addStake.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/depositTo.ts | 4 ++-- .../__generated__/IEntryPoint/write/getSenderAddress.ts | 4 ++-- .../__generated__/IEntryPoint/write/handleAggregatedOps.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/handleOps.ts | 4 ++-- .../__generated__/IEntryPoint/write/incrementNonce.ts | 4 ++-- .../__generated__/IEntryPoint/write/simulateHandleOp.ts | 4 ++-- .../__generated__/IEntryPoint/write/simulateValidation.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/unlockStake.ts | 2 +- .../erc4337/__generated__/IEntryPoint/write/withdrawStake.ts | 4 ++-- .../erc4337/__generated__/IEntryPoint/write/withdrawTo.ts | 4 ++-- .../IEntryPoint_v07/events/PostOpRevertReason.ts | 2 +- .../__generated__/IEntryPoint_v07/read/getUserOpHash.ts | 4 ++-- .../erc4337/__generated__/IPaymaster/write/postOp.ts | 4 ++-- .../IPaymaster/write/validatePaymasterUserOp.ts | 4 ++-- .../erc4626/__generated__/IERC4626/events/Deposit.ts | 2 +- .../erc4626/__generated__/IERC4626/events/Withdraw.ts | 2 +- .../extensions/erc4626/__generated__/IERC4626/read/asset.ts | 5 ++--- .../erc4626/__generated__/IERC4626/read/convertToAssets.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/convertToShares.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxDeposit.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxMint.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxRedeem.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/maxWithdraw.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewDeposit.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewMint.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewRedeem.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/previewWithdraw.ts | 4 ++-- .../erc4626/__generated__/IERC4626/read/totalAssets.ts | 5 ++--- .../erc4626/__generated__/IERC4626/write/deposit.ts | 4 ++-- .../extensions/erc4626/__generated__/IERC4626/write/mint.ts | 4 ++-- .../erc4626/__generated__/IERC4626/write/redeem.ts | 4 ++-- .../erc4626/__generated__/IERC4626/write/withdraw.ts | 4 ++-- .../__generated__/IERC6551Account/read/isValidSigner.ts | 4 ++-- .../erc6551/__generated__/IERC6551Account/read/state.ts | 5 ++--- .../erc6551/__generated__/IERC6551Account/read/token.ts | 5 ++--- .../erc721/__generated__/DropERC721/read/verifyClaim.ts | 4 ++-- .../__generated__/DropERC721/write/freezeBatchBaseURI.ts | 4 ++-- .../__generated__/DropERC721/write/setMaxTotalSupply.ts | 4 ++-- .../__generated__/DropERC721/write/updateBatchBaseURI.ts | 4 ++-- .../__generated__/IAirdropERC721/events/AirdropFailed.ts | 2 +- .../__generated__/IAirdropERC721/write/airdropERC721.ts | 4 ++-- .../IAirdropERC721Claimable/events/TokensClaimed.ts | 2 +- .../__generated__/IAirdropERC721Claimable/write/claim.ts | 4 ++-- .../__generated__/IBatchMintMetadata/read/getBaseURICount.ts | 5 ++--- .../IBatchMintMetadata/read/getBatchIdAtIndex.ts | 4 ++-- .../erc721/__generated__/IBurnableERC721/write/burn.ts | 4 ++-- .../__generated__/IClaimableERC721/events/TokensClaimed.ts | 2 +- .../erc721/__generated__/IClaimableERC721/write/claim.ts | 4 ++-- .../__generated__/IDelayedReveal/events/TokenURIRevealed.ts | 2 +- .../__generated__/IDelayedReveal/read/encryptDecrypt.ts | 4 ++-- .../__generated__/IDelayedReveal/read/encryptedData.ts | 4 ++-- .../erc721/__generated__/IDelayedReveal/write/reveal.ts | 4 ++-- .../erc721/__generated__/IDrop/events/TokensClaimed.ts | 2 +- .../erc721/__generated__/IDrop/read/baseURIIndices.ts | 4 ++-- .../erc721/__generated__/IDrop/read/claimCondition.ts | 5 ++--- .../__generated__/IDrop/read/getActiveClaimConditionId.ts | 5 ++--- .../erc721/__generated__/IDrop/read/getClaimConditionById.ts | 4 ++-- .../erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts | 5 ++--- .../src/extensions/erc721/__generated__/IDrop/write/claim.ts | 4 ++-- .../erc721/__generated__/IDrop/write/setClaimConditions.ts | 4 ++-- .../__generated__/IDropSinglePhase/events/TokensClaimed.ts | 2 +- .../__generated__/IDropSinglePhase/read/claimCondition.ts | 5 ++--- .../erc721/__generated__/IDropSinglePhase/write/claim.ts | 4 ++-- .../IDropSinglePhase/write/setClaimConditions.ts | 4 ++-- .../erc721/__generated__/IERC721A/events/Approval.ts | 2 +- .../erc721/__generated__/IERC721A/events/ApprovalForAll.ts | 2 +- .../erc721/__generated__/IERC721A/events/Transfer.ts | 2 +- .../erc721/__generated__/IERC721A/read/balanceOf.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/getApproved.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/isApprovedForAll.ts | 4 ++-- .../extensions/erc721/__generated__/IERC721A/read/name.ts | 5 ++--- .../extensions/erc721/__generated__/IERC721A/read/ownerOf.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/startTokenId.ts | 5 ++--- .../extensions/erc721/__generated__/IERC721A/read/symbol.ts | 5 ++--- .../erc721/__generated__/IERC721A/read/tokenURI.ts | 4 ++-- .../erc721/__generated__/IERC721A/read/totalSupply.ts | 5 ++--- .../erc721/__generated__/IERC721A/write/approve.ts | 4 ++-- .../erc721/__generated__/IERC721A/write/safeTransferFrom.ts | 4 ++-- .../erc721/__generated__/IERC721A/write/setApprovalForAll.ts | 4 ++-- .../erc721/__generated__/IERC721A/write/transferFrom.ts | 4 ++-- .../IERC721AQueryable/events/ConsecutiveTransfer.ts | 2 +- .../__generated__/IERC721AQueryable/read/tokensOfOwner.ts | 4 ++-- .../__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts | 4 ++-- .../IERC721Enumerable/read/nextTokenIdToMint.ts | 5 ++--- .../__generated__/IERC721Enumerable/read/tokenByIndex.ts | 4 ++-- .../IERC721Enumerable/read/tokenOfOwnerByIndex.ts | 4 ++-- .../__generated__/IERC721Receiver/write/onERC721Received.ts | 4 ++-- .../__generated__/ILazyMint/events/TokensLazyMinted.ts | 2 +- .../erc721/__generated__/ILazyMint/write/lazyMint.ts | 4 ++-- .../__generated__/IMintableERC721/events/TokensMinted.ts | 2 +- .../erc721/__generated__/IMintableERC721/write/mintTo.ts | 4 ++-- .../__generated__/INFTMetadata/read/supportsInterface.ts | 4 ++-- .../__generated__/INFTMetadata/write/freezeMetadata.ts | 2 +- .../erc721/__generated__/INFTMetadata/write/setTokenURI.ts | 4 ++-- .../__generated__/INFTStake/write/depositRewardTokens.ts | 4 ++-- .../__generated__/INFTStake/write/withdrawRewardTokens.ts | 4 ++-- .../__generated__/ISharedMetadata/read/sharedMetadata.ts | 5 ++--- .../__generated__/ISharedMetadata/write/setSharedMetadata.ts | 4 ++-- .../ISharedMetadataBatch/events/SharedMetadataDeleted.ts | 2 +- .../ISharedMetadataBatch/events/SharedMetadataUpdated.ts | 2 +- .../ISharedMetadataBatch/read/getAllSharedMetadata.ts | 5 ++--- .../ISharedMetadataBatch/write/deleteSharedMetadata.ts | 4 ++-- .../ISharedMetadataBatch/write/setSharedMetadata.ts | 4 ++-- .../ISignatureMintERC721/events/TokensMintedWithSignature.ts | 2 +- .../erc721/__generated__/ISignatureMintERC721/read/verify.ts | 4 ++-- .../ISignatureMintERC721/write/mintWithSignature.ts | 4 ++-- .../events/TokensMintedWithSignature.ts | 2 +- .../__generated__/ISignatureMintERC721_v2/read/verify.ts | 4 ++-- .../ISignatureMintERC721_v2/write/mintWithSignature.ts | 4 ++-- .../__generated__/IStaking721/events/RewardsClaimed.ts | 2 +- .../erc721/__generated__/IStaking721/events/TokensStaked.ts | 2 +- .../__generated__/IStaking721/events/TokensWithdrawn.ts | 2 +- .../erc721/__generated__/IStaking721/read/getStakeInfo.ts | 4 ++-- .../erc721/__generated__/IStaking721/write/claimRewards.ts | 2 +- .../erc721/__generated__/IStaking721/write/stake.ts | 4 ++-- .../erc721/__generated__/IStaking721/write/withdraw.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/events/TokensMinted.ts | 2 +- .../LoyaltyCard/events/TokensMintedWithSignature.ts | 2 +- .../__generated__/LoyaltyCard/read/nextTokenIdToMint.ts | 5 ++--- .../__generated__/LoyaltyCard/read/supportsInterface.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/read/tokenURI.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/read/totalMinted.ts | 5 ++--- .../erc721/__generated__/LoyaltyCard/write/cancel.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/write/initialize.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/write/mintTo.ts | 4 ++-- .../__generated__/LoyaltyCard/write/mintWithSignature.ts | 4 ++-- .../erc721/__generated__/LoyaltyCard/write/revoke.ts | 4 ++-- .../erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts | 2 +- .../erc721/__generated__/Multiwrap/events/TokensWrapped.ts | 2 +- .../erc721/__generated__/Multiwrap/read/contractType.ts | 5 ++--- .../erc721/__generated__/Multiwrap/read/contractVersion.ts | 5 ++--- .../__generated__/Multiwrap/read/getWrappedContents.ts | 4 ++-- .../erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts | 5 ++--- .../erc721/__generated__/Multiwrap/read/supportsInterface.ts | 4 ++-- .../erc721/__generated__/Multiwrap/read/tokenURI.ts | 4 ++-- .../erc721/__generated__/Multiwrap/write/initialize.ts | 4 ++-- .../erc721/__generated__/Multiwrap/write/unwrap.ts | 4 ++-- .../extensions/erc721/__generated__/Multiwrap/write/wrap.ts | 4 ++-- .../__generated__/IRouterState/read/getAllExtensions.ts | 5 ++--- .../erc7579/__generated__/IERC7579Account/read/accountId.ts | 5 ++--- .../__generated__/IERC7579Account/read/isModuleInstalled.ts | 4 ++-- .../__generated__/IERC7579Account/read/isValidSignature.ts | 4 ++-- .../IERC7579Account/read/supportsExecutionMode.ts | 4 ++-- .../__generated__/IERC7579Account/read/supportsModule.ts | 4 ++-- .../erc7579/__generated__/IERC7579Account/write/execute.ts | 4 ++-- .../IERC7579Account/write/executeFromExecutor.ts | 4 ++-- .../__generated__/IERC7579Account/write/installModule.ts | 4 ++-- .../__generated__/IERC7579Account/write/uninstallModule.ts | 4 ++-- .../ModularAccountFactory/events/OwnershipTransferred.ts | 2 +- .../__generated__/ModularAccountFactory/events/Upgraded.ts | 2 +- .../ModularAccountFactory/read/accountImplementation.ts | 5 ++--- .../__generated__/ModularAccountFactory/read/entrypoint.ts | 5 ++--- .../__generated__/ModularAccountFactory/read/getAddress.ts | 4 ++-- .../ModularAccountFactory/read/implementation.ts | 5 ++--- .../__generated__/ModularAccountFactory/read/owner.ts | 5 ++--- .../__generated__/ModularAccountFactory/write/addStake.ts | 4 ++-- .../ModularAccountFactory/write/createAccountWithModules.ts | 4 ++-- .../ModularAccountFactory/write/renounceOwnership.ts | 2 +- .../ModularAccountFactory/write/transferOwnership.ts | 4 ++-- .../__generated__/ModularAccountFactory/write/unlockStake.ts | 2 +- .../__generated__/ModularAccountFactory/write/upgradeTo.ts | 4 ++-- .../__generated__/ModularAccountFactory/write/withdraw.ts | 4 ++-- .../ModularAccountFactory/write/withdrawStake.ts | 4 ++-- .../erc7702/__generated__/MinimalAccount/events/Executed.ts | 2 +- .../__generated__/MinimalAccount/events/SessionCreated.ts | 2 +- .../__generated__/MinimalAccount/read/eip712Domain.ts | 5 ++--- .../MinimalAccount/read/getCallPoliciesForSigner.ts | 4 ++-- .../MinimalAccount/read/getSessionExpirationForSigner.ts | 4 ++-- .../MinimalAccount/read/getSessionStateForSigner.ts | 4 ++-- .../MinimalAccount/read/getTransferPoliciesForSigner.ts | 4 ++-- .../__generated__/MinimalAccount/read/isWildcardSigner.ts | 4 ++-- .../MinimalAccount/write/createSessionWithSig.ts | 4 ++-- .../erc7702/__generated__/MinimalAccount/write/execute.ts | 4 ++-- .../__generated__/MinimalAccount/write/executeWithSig.ts | 4 ++-- .../farcaster/__generated__/IBundler/read/idGateway.ts | 5 ++--- .../farcaster/__generated__/IBundler/read/keyGateway.ts | 5 ++--- .../farcaster/__generated__/IBundler/read/price.ts | 4 ++-- .../farcaster/__generated__/IBundler/write/register.ts | 4 ++-- .../__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts | 5 ++--- .../farcaster/__generated__/IIdGateway/read/idRegistry.ts | 5 ++--- .../farcaster/__generated__/IIdGateway/read/price.ts | 4 ++-- .../__generated__/IIdGateway/read/storageRegistry.ts | 5 ++--- .../farcaster/__generated__/IIdGateway/write/register.ts | 4 ++-- .../farcaster/__generated__/IIdGateway/write/registerFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/events/AdminReset.ts | 2 +- .../IIdRegistry/events/ChangeRecoveryAddress.ts | 2 +- .../farcaster/__generated__/IIdRegistry/events/Recover.ts | 2 +- .../farcaster/__generated__/IIdRegistry/events/Register.ts | 2 +- .../farcaster/__generated__/IIdRegistry/events/Transfer.ts | 2 +- .../IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts | 5 ++--- .../read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts | 5 ++--- .../__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/custodyOf.ts | 4 ++-- .../__generated__/IIdRegistry/read/gatewayFrozen.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/idCounter.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/idGateway.ts | 5 ++--- .../farcaster/__generated__/IIdRegistry/read/idOf.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/read/recoveryOf.ts | 4 ++-- .../__generated__/IIdRegistry/read/verifyFidSignature.ts | 4 ++-- .../__generated__/IIdRegistry/write/changeRecoveryAddress.ts | 4 ++-- .../IIdRegistry/write/changeRecoveryAddressFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/recover.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/recoverFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/transfer.ts | 4 ++-- .../IIdRegistry/write/transferAndChangeRecovery.ts | 4 ++-- .../IIdRegistry/write/transferAndChangeRecoveryFor.ts | 4 ++-- .../farcaster/__generated__/IIdRegistry/write/transferFor.ts | 4 ++-- .../farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts | 5 ++--- .../farcaster/__generated__/IKeyGateway/read/keyRegistry.ts | 5 ++--- .../farcaster/__generated__/IKeyGateway/read/nonces.ts | 4 ++-- .../farcaster/__generated__/IKeyGateway/write/add.ts | 4 ++-- .../farcaster/__generated__/IKeyGateway/write/addFor.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/events/Add.ts | 2 +- .../__generated__/IKeyRegistry/events/AdminReset.ts | 2 +- .../farcaster/__generated__/IKeyRegistry/events/Remove.ts | 2 +- .../__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts | 5 ++--- .../__generated__/IKeyRegistry/read/gatewayFrozen.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/idRegistry.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/keyAt.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/read/keyGateway.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/keysOf.ts | 4 ++-- .../__generated__/IKeyRegistry/read/maxKeysPerFid.ts | 5 ++--- .../farcaster/__generated__/IKeyRegistry/read/totalKeys.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/write/remove.ts | 4 ++-- .../farcaster/__generated__/IKeyRegistry/write/removeFor.ts | 4 ++-- .../IStorageRegistry/read/deprecationTimestamp.ts | 5 ++--- .../__generated__/IStorageRegistry/read/maxUnits.ts | 5 ++--- .../farcaster/__generated__/IStorageRegistry/read/price.ts | 4 ++-- .../__generated__/IStorageRegistry/read/rentedUnits.ts | 5 ++--- .../__generated__/IStorageRegistry/read/unitPrice.ts | 5 ++--- .../__generated__/IStorageRegistry/read/usdUnitPrice.ts | 5 ++--- .../__generated__/IStorageRegistry/write/batchRent.ts | 4 ++-- .../farcaster/__generated__/IStorageRegistry/write/rent.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowData.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowTimestamp.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowTokenId.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/getFollowerCount.ts | 5 ++--- .../__generated__/FollowNFT/read/getFollowerProfileId.ts | 4 ++-- .../FollowNFT/read/getOriginalFollowTimestamp.ts | 4 ++-- .../FollowNFT/read/getProfileIdAllowedToRecover.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/isFollowing.ts | 4 ++-- .../lens/__generated__/FollowNFT/read/mintTimestampOf.ts | 4 ++-- .../lens/__generated__/LensHandle/read/getHandle.ts | 4 ++-- .../LensHandle/read/getHandleTokenURIContract.ts | 5 ++--- .../lens/__generated__/LensHandle/read/getLocalName.ts | 4 ++-- .../lens/__generated__/LensHandle/read/getTokenId.ts | 4 ++-- .../src/extensions/lens/__generated__/LensHub/read/exists.ts | 4 ++-- .../lens/__generated__/LensHub/read/getContentURI.ts | 4 ++-- .../extensions/lens/__generated__/LensHub/read/getProfile.ts | 4 ++-- .../__generated__/LensHub/read/getProfileIdByHandleHash.ts | 4 ++-- .../lens/__generated__/LensHub/read/getPublication.ts | 4 ++-- .../lens/__generated__/LensHub/read/mintTimestampOf.ts | 4 ++-- .../src/extensions/lens/__generated__/LensHub/read/nonces.ts | 4 ++-- .../lens/__generated__/LensHub/read/tokenDataOf.ts | 4 ++-- .../lens/__generated__/ModuleRegistry/read/getModuleTypes.ts | 4 ++-- .../ModuleRegistry/read/isErc20CurrencyRegistered.ts | 4 ++-- .../__generated__/ModuleRegistry/read/isModuleRegistered.ts | 4 ++-- .../ModuleRegistry/read/isModuleRegisteredAs.ts | 4 ++-- .../TokenHandleRegistry/read/getDefaultHandle.ts | 4 ++-- .../lens/__generated__/TokenHandleRegistry/read/nonces.ts | 4 ++-- .../lens/__generated__/TokenHandleRegistry/read/resolve.ts | 4 ++-- .../IDirectListings/events/BuyerApprovedForListing.ts | 2 +- .../__generated__/IDirectListings/events/CancelledListing.ts | 2 +- .../IDirectListings/events/CurrencyApprovedForListing.ts | 2 +- .../__generated__/IDirectListings/events/NewListing.ts | 2 +- .../__generated__/IDirectListings/events/NewSale.ts | 2 +- .../__generated__/IDirectListings/events/UpdatedListing.ts | 2 +- .../IDirectListings/read/currencyPriceForListing.ts | 4 ++-- .../__generated__/IDirectListings/read/getAllListings.ts | 4 ++-- .../IDirectListings/read/getAllValidListings.ts | 4 ++-- .../__generated__/IDirectListings/read/getListing.ts | 4 ++-- .../IDirectListings/read/isBuyerApprovedForListing.ts | 4 ++-- .../IDirectListings/read/isCurrencyApprovedForListing.ts | 4 ++-- .../__generated__/IDirectListings/read/totalListings.ts | 5 ++--- .../IDirectListings/write/approveBuyerForListing.ts | 4 ++-- .../IDirectListings/write/approveCurrencyForListing.ts | 4 ++-- .../__generated__/IDirectListings/write/buyFromListing.ts | 4 ++-- .../__generated__/IDirectListings/write/cancelListing.ts | 4 ++-- .../__generated__/IDirectListings/write/createListing.ts | 4 ++-- .../__generated__/IDirectListings/write/updateListing.ts | 4 ++-- .../__generated__/IEnglishAuctions/events/AuctionClosed.ts | 2 +- .../IEnglishAuctions/events/CancelledAuction.ts | 2 +- .../__generated__/IEnglishAuctions/events/NewAuction.ts | 2 +- .../__generated__/IEnglishAuctions/events/NewBid.ts | 2 +- .../__generated__/IEnglishAuctions/read/getAllAuctions.ts | 4 ++-- .../IEnglishAuctions/read/getAllValidAuctions.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/getAuction.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/getWinningBid.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/isAuctionExpired.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/isNewWinningBid.ts | 4 ++-- .../__generated__/IEnglishAuctions/read/totalAuctions.ts | 5 ++--- .../__generated__/IEnglishAuctions/write/bidInAuction.ts | 4 ++-- .../__generated__/IEnglishAuctions/write/cancelAuction.ts | 4 ++-- .../IEnglishAuctions/write/collectAuctionPayout.ts | 4 ++-- .../IEnglishAuctions/write/collectAuctionTokens.ts | 4 ++-- .../__generated__/IEnglishAuctions/write/createAuction.ts | 4 ++-- .../__generated__/IMarketplace/events/AuctionClosed.ts | 2 +- .../__generated__/IMarketplace/events/ListingAdded.ts | 2 +- .../__generated__/IMarketplace/events/ListingRemoved.ts | 2 +- .../__generated__/IMarketplace/events/ListingUpdated.ts | 2 +- .../__generated__/IMarketplace/events/NewOffer.ts | 2 +- .../marketplace/__generated__/IMarketplace/events/NewSale.ts | 2 +- .../IMarketplace/events/PlatformFeeInfoUpdated.ts | 2 +- .../__generated__/IMarketplace/read/contractType.ts | 5 ++--- .../__generated__/IMarketplace/read/contractURI.ts | 5 ++--- .../__generated__/IMarketplace/read/contractVersion.ts | 5 ++--- .../__generated__/IMarketplace/read/getPlatformFeeInfo.ts | 5 ++--- .../__generated__/IMarketplace/write/acceptOffer.ts | 4 ++-- .../marketplace/__generated__/IMarketplace/write/buy.ts | 4 ++-- .../__generated__/IMarketplace/write/cancelDirectListing.ts | 4 ++-- .../__generated__/IMarketplace/write/closeAuction.ts | 4 ++-- .../__generated__/IMarketplace/write/createListing.ts | 4 ++-- .../marketplace/__generated__/IMarketplace/write/offer.ts | 4 ++-- .../__generated__/IMarketplace/write/setContractURI.ts | 4 ++-- .../__generated__/IMarketplace/write/setPlatformFeeInfo.ts | 4 ++-- .../__generated__/IMarketplace/write/updateListing.ts | 4 ++-- .../__generated__/IOffers/events/AcceptedOffer.ts | 2 +- .../__generated__/IOffers/events/CancelledOffer.ts | 2 +- .../marketplace/__generated__/IOffers/events/NewOffer.ts | 2 +- .../marketplace/__generated__/IOffers/read/getAllOffers.ts | 4 ++-- .../__generated__/IOffers/read/getAllValidOffers.ts | 4 ++-- .../marketplace/__generated__/IOffers/read/getOffer.ts | 4 ++-- .../marketplace/__generated__/IOffers/read/totalOffers.ts | 5 ++--- .../marketplace/__generated__/IOffers/write/acceptOffer.ts | 4 ++-- .../marketplace/__generated__/IOffers/write/cancelOffer.ts | 4 ++-- .../marketplace/__generated__/IOffers/write/makeOffer.ts | 4 ++-- .../BatchMetadataERC1155/read/encodeBytesOnInstall.ts | 5 ++--- .../BatchMetadataERC1155/read/getAllMetadataBatches.ts | 5 ++--- .../__generated__/BatchMetadataERC1155/read/getBatchIndex.ts | 4 ++-- .../BatchMetadataERC1155/read/getMetadataBatch.ts | 4 ++-- .../BatchMetadataERC1155/read/getModuleConfig.ts | 5 ++--- .../__generated__/BatchMetadataERC1155/write/setBaseURI.ts | 4 ++-- .../BatchMetadataERC1155/write/uploadMetadata.ts | 4 ++-- .../BatchMetadataERC721/read/encodeBytesOnInstall.ts | 5 ++--- .../BatchMetadataERC721/read/getAllMetadataBatches.ts | 5 ++--- .../__generated__/BatchMetadataERC721/read/getBatchIndex.ts | 4 ++-- .../BatchMetadataERC721/read/getMetadataBatch.ts | 4 ++-- .../BatchMetadataERC721/read/getModuleConfig.ts | 5 ++--- .../__generated__/BatchMetadataERC721/write/setBaseURI.ts | 4 ++-- .../BatchMetadataERC721/write/uploadMetadata.ts | 4 ++-- .../modules/__generated__/ClaimableERC1155/module/install.ts | 4 ++-- .../ClaimableERC1155/read/getClaimConditionByTokenId.ts | 4 ++-- .../__generated__/ClaimableERC1155/read/getSaleConfig.ts | 5 ++--- .../ClaimableERC1155/write/setClaimConditionByTokenId.ts | 4 ++-- .../__generated__/ClaimableERC1155/write/setSaleConfig.ts | 4 ++-- .../modules/__generated__/ClaimableERC20/module/install.ts | 4 ++-- .../__generated__/ClaimableERC20/read/getClaimCondition.ts | 5 ++--- .../__generated__/ClaimableERC20/read/getSaleConfig.ts | 5 ++--- .../__generated__/ClaimableERC20/write/setClaimCondition.ts | 4 ++-- .../__generated__/ClaimableERC20/write/setSaleConfig.ts | 4 ++-- .../modules/__generated__/ClaimableERC721/module/install.ts | 4 ++-- .../__generated__/ClaimableERC721/read/getClaimCondition.ts | 5 ++--- .../__generated__/ClaimableERC721/read/getSaleConfig.ts | 5 ++--- .../__generated__/ClaimableERC721/write/setClaimCondition.ts | 4 ++-- .../__generated__/ClaimableERC721/write/setSaleConfig.ts | 4 ++-- .../modules/__generated__/ERC1155Core/write/burn.ts | 4 ++-- .../modules/__generated__/ERC1155Core/write/initialize.ts | 4 ++-- .../modules/__generated__/ERC1155Core/write/mint.ts | 4 ++-- .../__generated__/ERC1155Core/write/mintWithSignature.ts | 4 ++-- .../extensions/modules/__generated__/ERC20Core/write/burn.ts | 4 ++-- .../modules/__generated__/ERC20Core/write/initialize.ts | 4 ++-- .../extensions/modules/__generated__/ERC20Core/write/mint.ts | 4 ++-- .../__generated__/ERC20Core/write/mintWithSignature.ts | 4 ++-- .../modules/__generated__/ERC721Core/read/totalMinted.ts | 5 ++--- .../modules/__generated__/ERC721Core/write/burn.ts | 4 ++-- .../modules/__generated__/ERC721Core/write/initialize.ts | 4 ++-- .../modules/__generated__/ERC721Core/write/mint.ts | 4 ++-- .../__generated__/ERC721Core/write/mintWithSignature.ts | 4 ++-- .../__generated__/IModularCore/read/getInstalledModules.ts | 5 ++--- .../IModularCore/read/getSupportedCallbackFunctions.ts | 5 ++--- .../__generated__/IModularCore/read/supportsInterface.ts | 4 ++-- .../__generated__/IModularCore/write/installModule.ts | 4 ++-- .../__generated__/IModularCore/write/uninstallModule.ts | 4 ++-- .../modules/__generated__/IModule/read/getModuleConfig.ts | 5 ++--- .../modules/__generated__/MintableERC1155/module/install.ts | 4 ++-- .../__generated__/MintableERC1155/read/getSaleConfig.ts | 5 ++--- .../__generated__/MintableERC1155/write/setSaleConfig.ts | 4 ++-- .../__generated__/MintableERC1155/write/setTokenURI.ts | 4 ++-- .../modules/__generated__/MintableERC20/module/install.ts | 4 ++-- .../__generated__/MintableERC20/read/getSaleConfig.ts | 5 ++--- .../__generated__/MintableERC20/write/setSaleConfig.ts | 4 ++-- .../__generated__/MintableERC721/events/NewMetadataBatch.ts | 2 +- .../modules/__generated__/MintableERC721/module/install.ts | 4 ++-- .../__generated__/MintableERC721/read/getSaleConfig.ts | 5 ++--- .../__generated__/MintableERC721/write/setSaleConfig.ts | 4 ++-- .../OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts | 5 ++--- .../OpenEditionMetadataERC721/read/onTokenURI.ts | 4 ++-- .../OpenEditionMetadataERC721/write/setSharedMetadata.ts | 4 ++-- .../OwnableRoles/events/OwnershipHandoverCanceled.ts | 2 +- .../OwnableRoles/events/OwnershipHandoverRequested.ts | 2 +- .../OwnableRoles/events/OwnershipTransferred.ts | 2 +- .../__generated__/OwnableRoles/events/RolesUpdated.ts | 2 +- .../modules/__generated__/OwnableRoles/read/hasAllRoles.ts | 4 ++-- .../modules/__generated__/OwnableRoles/read/hasAnyRole.ts | 4 ++-- .../modules/__generated__/OwnableRoles/read/owner.ts | 5 ++--- .../OwnableRoles/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../modules/__generated__/OwnableRoles/read/rolesOf.ts | 4 ++-- .../OwnableRoles/write/cancelOwnershipHandover.ts | 2 +- .../OwnableRoles/write/completeOwnershipHandover.ts | 4 ++-- .../modules/__generated__/OwnableRoles/write/grantRoles.ts | 4 ++-- .../__generated__/OwnableRoles/write/renounceOwnership.ts | 2 +- .../__generated__/OwnableRoles/write/renounceRoles.ts | 4 ++-- .../OwnableRoles/write/requestOwnershipHandover.ts | 2 +- .../modules/__generated__/OwnableRoles/write/revokeRoles.ts | 4 ++-- .../__generated__/OwnableRoles/write/transferOwnership.ts | 4 ++-- .../RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts | 2 +- .../RoyaltyERC1155/events/TokenRoyaltyUpdated.ts | 2 +- .../modules/__generated__/RoyaltyERC1155/module/install.ts | 4 ++-- .../RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts | 5 ++--- .../RoyaltyERC1155/read/getRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC1155/read/getTransferValidationFunction.ts | 5 ++--- .../RoyaltyERC1155/read/getTransferValidator.ts | 5 ++--- .../modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts | 4 ++-- .../RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts | 4 ++-- .../RoyaltyERC1155/write/setRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC1155/write/setTransferValidator.ts | 4 ++-- .../RoyaltyERC721/events/DefaultRoyaltyUpdated.ts | 2 +- .../RoyaltyERC721/events/TokenRoyaltyUpdated.ts | 2 +- .../modules/__generated__/RoyaltyERC721/module/install.ts | 4 ++-- .../RoyaltyERC721/read/getDefaultRoyaltyInfo.ts | 5 ++--- .../RoyaltyERC721/read/getRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC721/read/getTransferValidationFunction.ts | 5 ++--- .../__generated__/RoyaltyERC721/read/getTransferValidator.ts | 5 ++--- .../modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts | 4 ++-- .../RoyaltyERC721/write/setDefaultRoyaltyInfo.ts | 4 ++-- .../RoyaltyERC721/write/setRoyaltyInfoForToken.ts | 4 ++-- .../RoyaltyERC721/write/setTransferValidator.ts | 4 ++-- .../__generated__/SequentialTokenIdERC1155/module/install.ts | 4 ++-- .../SequentialTokenIdERC1155/read/getModuleConfig.ts | 5 ++--- .../SequentialTokenIdERC1155/read/getNextTokenId.ts | 5 ++--- .../SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts | 4 ++-- .../TransferableERC1155/read/encodeBytesOnInstall.ts | 5 ++--- .../TransferableERC1155/read/isTransferEnabled.ts | 5 ++--- .../TransferableERC1155/read/isTransferEnabledFor.ts | 4 ++-- .../TransferableERC1155/write/setTransferable.ts | 4 ++-- .../TransferableERC1155/write/setTransferableFor.ts | 4 ++-- .../TransferableERC20/read/encodeBytesOnInstall.ts | 5 ++--- .../TransferableERC20/read/isTransferEnabled.ts | 5 ++--- .../TransferableERC20/read/isTransferEnabledFor.ts | 4 ++-- .../__generated__/TransferableERC20/write/setTransferable.ts | 4 ++-- .../TransferableERC20/write/setTransferableFor.ts | 4 ++-- .../TransferableERC721/read/encodeBytesOnInstall.ts | 5 ++--- .../TransferableERC721/read/isTransferEnabled.ts | 5 ++--- .../TransferableERC721/read/isTransferEnabledFor.ts | 4 ++-- .../TransferableERC721/write/setTransferable.ts | 4 ++-- .../TransferableERC721/write/setTransferableFor.ts | 4 ++-- .../multicall3/__generated__/IMulticall3/read/getBasefee.ts | 5 ++--- .../__generated__/IMulticall3/read/getBlockHash.ts | 4 ++-- .../__generated__/IMulticall3/read/getBlockNumber.ts | 5 ++--- .../multicall3/__generated__/IMulticall3/read/getChainId.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockCoinbase.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockDifficulty.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockGasLimit.ts | 5 ++--- .../IMulticall3/read/getCurrentBlockTimestamp.ts | 5 ++--- .../__generated__/IMulticall3/read/getEthBalance.ts | 4 ++-- .../__generated__/IMulticall3/read/getLastBlockHash.ts | 5 ++--- .../multicall3/__generated__/IMulticall3/write/aggregate.ts | 4 ++-- .../multicall3/__generated__/IMulticall3/write/aggregate3.ts | 4 ++-- .../__generated__/IMulticall3/write/aggregate3Value.ts | 4 ++-- .../__generated__/IMulticall3/write/blockAndAggregate.ts | 4 ++-- .../__generated__/IMulticall3/write/tryAggregate.ts | 4 ++-- .../__generated__/IMulticall3/write/tryBlockAndAggregate.ts | 4 ++-- .../pack/__generated__/IPack/events/PackCreated.ts | 2 +- .../extensions/pack/__generated__/IPack/events/PackOpened.ts | 2 +- .../pack/__generated__/IPack/events/PackUpdated.ts | 2 +- .../pack/__generated__/IPack/read/canUpdatePack.ts | 4 ++-- .../pack/__generated__/IPack/read/getPackContents.ts | 4 ++-- .../pack/__generated__/IPack/read/getTokenCountOfBundle.ts | 4 ++-- .../pack/__generated__/IPack/read/getTokenOfBundle.ts | 4 ++-- .../pack/__generated__/IPack/read/getUriOfBundle.ts | 4 ++-- .../pack/__generated__/IPack/write/addPackContents.ts | 4 ++-- .../extensions/pack/__generated__/IPack/write/createPack.ts | 4 ++-- .../extensions/pack/__generated__/IPack/write/openPack.ts | 4 ++-- .../__generated__/IPackVRFDirect/events/PackOpenRequested.ts | 2 +- .../IPackVRFDirect/events/PackRandomnessFulfilled.ts | 2 +- .../__generated__/IPackVRFDirect/read/canClaimRewards.ts | 4 ++-- .../pack/__generated__/IPackVRFDirect/write/claimRewards.ts | 2 +- .../IPackVRFDirect/write/openPackAndClaimRewards.ts | 4 ++-- .../__generated__/IPermissions/events/RoleAdminChanged.ts | 2 +- .../__generated__/IPermissions/events/RoleGranted.ts | 2 +- .../__generated__/IPermissions/events/RoleRevoked.ts | 2 +- .../__generated__/IPermissions/read/getRoleAdmin.ts | 4 ++-- .../permissions/__generated__/IPermissions/read/hasRole.ts | 4 ++-- .../__generated__/IPermissions/write/grantRole.ts | 4 ++-- .../__generated__/IPermissions/write/renounceRole.ts | 4 ++-- .../__generated__/IPermissions/write/revokeRole.ts | 4 ++-- .../IPermissionsEnumerable/events/RoleAdminChanged.ts | 2 +- .../IPermissionsEnumerable/events/RoleGranted.ts | 2 +- .../IPermissionsEnumerable/events/RoleRevoked.ts | 2 +- .../IPermissionsEnumerable/read/getRoleAdmin.ts | 4 ++-- .../IPermissionsEnumerable/read/getRoleMember.ts | 4 ++-- .../IPermissionsEnumerable/read/getRoleMemberCount.ts | 4 ++-- .../__generated__/IPermissionsEnumerable/read/hasRole.ts | 4 ++-- .../__generated__/IPermissionsEnumerable/write/grantRole.ts | 4 ++-- .../IPermissionsEnumerable/write/renounceRole.ts | 4 ++-- .../__generated__/IPermissionsEnumerable/write/revokeRole.ts | 4 ++-- .../prebuilts/__generated__/DropERC1155/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/DropERC20/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/DropERC721/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/Marketplace/write/initialize.ts | 4 ++-- .../__generated__/OpenEditionERC721/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/Pack/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/Split/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/TokenERC1155/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/TokenERC20/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/TokenERC721/write/initialize.ts | 4 ++-- .../prebuilts/__generated__/VoteERC20/write/initialize.ts | 4 ++-- .../src/extensions/split/__generated__/Split/read/payee.ts | 4 ++-- .../extensions/split/__generated__/Split/read/payeeCount.ts | 5 ++--- .../extensions/split/__generated__/Split/read/releasable.ts | 4 ++-- .../extensions/split/__generated__/Split/read/released.ts | 4 ++-- .../src/extensions/split/__generated__/Split/read/shares.ts | 4 ++-- .../split/__generated__/Split/read/totalReleased.ts | 5 ++--- .../extensions/split/__generated__/Split/read/totalShares.ts | 5 ++--- .../extensions/split/__generated__/Split/write/distribute.ts | 2 +- .../extensions/split/__generated__/Split/write/release.ts | 4 ++-- .../stylus/__generated__/IArbWasm/read/codehashVersion.ts | 4 ++-- .../stylus/__generated__/IArbWasm/write/activateProgram.ts | 4 ++-- .../IStylusConstructor/write/stylus_constructor.ts | 2 +- .../stylus/__generated__/IStylusDeployer/write/deploy.ts | 4 ++-- .../extensions/thirdweb/__generated__/IAppURI/read/appURI.ts | 5 ++--- .../thirdweb/__generated__/IAppURI/write/setAppURI.ts | 4 ++-- .../__generated__/IContractFactory/events/ProxyDeployed.ts | 2 +- .../__generated__/IContractFactory/events/ProxyDeployedV2.ts | 2 +- .../IContractFactory/write/deployProxyByImplementation.ts | 4 ++-- .../IContractFactory/write/deployProxyByImplementationV2.ts | 4 ++-- .../IContractPublisher/events/ContractPublished.ts | 2 +- .../IContractPublisher/events/ContractUnpublished.ts | 2 +- .../IContractPublisher/events/PublisherProfileUpdated.ts | 2 +- .../IContractPublisher/read/getAllPublishedContracts.ts | 4 ++-- .../IContractPublisher/read/getPublishedContract.ts | 4 ++-- .../IContractPublisher/read/getPublishedContractVersions.ts | 4 ++-- .../read/getPublishedUriFromCompilerUri.ts | 4 ++-- .../IContractPublisher/read/getPublisherProfileUri.ts | 4 ++-- .../IContractPublisher/write/publishContract.ts | 4 ++-- .../IContractPublisher/write/setPublisherProfileUri.ts | 4 ++-- .../IContractPublisher/write/unpublishContract.ts | 4 ++-- .../__generated__/IRulesEngine/events/RuleCreated.ts | 2 +- .../__generated__/IRulesEngine/events/RuleDeleted.ts | 2 +- .../IRulesEngine/events/RulesEngineOverriden.ts | 2 +- .../thirdweb/__generated__/IRulesEngine/read/getAllRules.ts | 5 ++--- .../IRulesEngine/read/getRulesEngineOverride.ts | 5 ++--- .../thirdweb/__generated__/IRulesEngine/read/getScore.ts | 4 ++-- .../IRulesEngine/write/createRuleMultiplicative.ts | 4 ++-- .../__generated__/IRulesEngine/write/createRuleThreshold.ts | 4 ++-- .../thirdweb/__generated__/IRulesEngine/write/deleteRule.ts | 4 ++-- .../IRulesEngine/write/setRulesEngineOverride.ts | 4 ++-- .../__generated__/ISignatureAction/events/RequestExecuted.ts | 2 +- .../thirdweb/__generated__/ISignatureAction/read/verify.ts | 4 ++-- .../thirdweb/__generated__/ITWFee/read/getFeeInfo.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/events/Added.ts | 2 +- .../__generated__/ITWMultichainRegistry/events/Deleted.ts | 2 +- .../__generated__/ITWMultichainRegistry/read/count.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/read/getAll.ts | 4 ++-- .../ITWMultichainRegistry/read/getMetadataUri.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/write/add.ts | 4 ++-- .../__generated__/ITWMultichainRegistry/write/remove.ts | 4 ++-- .../__generated__/IThirdwebContract/read/contractType.ts | 5 ++--- .../__generated__/IThirdwebContract/read/contractURI.ts | 5 ++--- .../__generated__/IThirdwebContract/read/contractVersion.ts | 5 ++--- .../__generated__/IThirdwebContract/write/setContractURI.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/events/Approval.ts | 2 +- .../ERC20Asset/events/OwnershipHandoverCanceled.ts | 2 +- .../ERC20Asset/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/ERC20Asset/events/OwnershipTransferred.ts | 2 +- .../tokens/__generated__/ERC20Asset/events/Transfer.ts | 2 +- .../tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts | 5 ++--- .../tokens/__generated__/ERC20Asset/read/allowance.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/read/balanceOf.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/read/contractURI.ts | 5 ++--- .../tokens/__generated__/ERC20Asset/read/decimals.ts | 5 ++--- .../extensions/tokens/__generated__/ERC20Asset/read/name.ts | 5 ++--- .../tokens/__generated__/ERC20Asset/read/nonces.ts | 4 ++-- .../extensions/tokens/__generated__/ERC20Asset/read/owner.ts | 5 ++--- .../ERC20Asset/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../__generated__/ERC20Asset/read/supportsInterface.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/read/symbol.ts | 5 ++--- .../tokens/__generated__/ERC20Asset/read/totalSupply.ts | 5 ++--- .../tokens/__generated__/ERC20Asset/write/approve.ts | 4 ++-- .../extensions/tokens/__generated__/ERC20Asset/write/burn.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/write/burnFrom.ts | 4 ++-- .../ERC20Asset/write/cancelOwnershipHandover.ts | 2 +- .../ERC20Asset/write/completeOwnershipHandover.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/write/initialize.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/write/permit.ts | 4 ++-- .../__generated__/ERC20Asset/write/renounceOwnership.ts | 2 +- .../ERC20Asset/write/requestOwnershipHandover.ts | 2 +- .../tokens/__generated__/ERC20Asset/write/setContractURI.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/write/transfer.ts | 4 ++-- .../tokens/__generated__/ERC20Asset/write/transferFrom.ts | 4 ++-- .../__generated__/ERC20Asset/write/transferOwnership.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/events/Created.ts | 2 +- .../ERC20Entrypoint/events/ImplementationAdded.ts | 2 +- .../ERC20Entrypoint/events/OwnershipHandoverCanceled.ts | 2 +- .../ERC20Entrypoint/events/OwnershipHandoverRequested.ts | 2 +- .../ERC20Entrypoint/events/OwnershipTransferred.ts | 2 +- .../tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts | 2 +- .../tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts | 5 ++--- .../__generated__/ERC20Entrypoint/read/getImplementation.ts | 4 ++-- .../__generated__/ERC20Entrypoint/read/getPoolRouter.ts | 5 ++--- .../tokens/__generated__/ERC20Entrypoint/read/getReward.ts | 4 ++-- .../__generated__/ERC20Entrypoint/read/getSwapRouter.ts | 5 ++--- .../tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/read/owner.ts | 5 ++--- .../ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../__generated__/ERC20Entrypoint/read/predictAddress.ts | 4 ++-- .../ERC20Entrypoint/read/predictAddressByConfig.ts | 4 ++-- .../__generated__/ERC20Entrypoint/read/proxiableUUID.ts | 5 ++--- .../__generated__/ERC20Entrypoint/write/addImplementation.ts | 4 ++-- .../ERC20Entrypoint/write/cancelOwnershipHandover.ts | 2 +- .../__generated__/ERC20Entrypoint/write/claimReward.ts | 4 ++-- .../ERC20Entrypoint/write/completeOwnershipHandover.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/create.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/createById.ts | 4 ++-- .../ERC20Entrypoint/write/createByImplementationConfig.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/distribute.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/initialize.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/renounceOwnership.ts | 2 +- .../ERC20Entrypoint/write/requestOwnershipHandover.ts | 2 +- .../tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/setPoolRouter.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/setSwapRouter.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/swap.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/transferOwnership.ts | 4 ++-- .../__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts | 4 ++-- .../tokens/__generated__/ERC20Entrypoint/write/withdraw.ts | 4 ++-- .../__generated__/FeeManager/events/FeeConfigUpdated.ts | 2 +- .../FeeManager/events/FeeConfigUpdatedBySignature.ts | 2 +- .../FeeManager/events/OwnershipHandoverCanceled.ts | 2 +- .../FeeManager/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/FeeManager/events/OwnershipTransferred.ts | 2 +- .../tokens/__generated__/FeeManager/events/RolesUpdated.ts | 2 +- .../tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts | 5 ++--- .../tokens/__generated__/FeeManager/read/calculateFee.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/domainSeparator.ts | 5 ++--- .../tokens/__generated__/FeeManager/read/eip712Domain.ts | 5 ++--- .../tokens/__generated__/FeeManager/read/feeConfigs.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/feeRecipient.ts | 5 ++--- .../tokens/__generated__/FeeManager/read/getFeeConfig.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/hasAllRoles.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/hasAnyRole.ts | 4 ++-- .../extensions/tokens/__generated__/FeeManager/read/owner.ts | 5 ++--- .../FeeManager/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/rolesOf.ts | 4 ++-- .../tokens/__generated__/FeeManager/read/usedNonces.ts | 4 ++-- .../FeeManager/write/cancelOwnershipHandover.ts | 2 +- .../FeeManager/write/completeOwnershipHandover.ts | 4 ++-- .../tokens/__generated__/FeeManager/write/grantRoles.ts | 4 ++-- .../__generated__/FeeManager/write/renounceOwnership.ts | 2 +- .../tokens/__generated__/FeeManager/write/renounceRoles.ts | 4 ++-- .../FeeManager/write/requestOwnershipHandover.ts | 2 +- .../tokens/__generated__/FeeManager/write/revokeRoles.ts | 4 ++-- .../tokens/__generated__/FeeManager/write/setFeeConfig.ts | 4 ++-- .../FeeManager/write/setFeeConfigBySignature.ts | 4 ++-- .../tokens/__generated__/FeeManager/write/setFeeRecipient.ts | 4 ++-- .../__generated__/FeeManager/write/setTargetFeeConfig.ts | 4 ++-- .../__generated__/FeeManager/write/transferOwnership.ts | 4 ++-- .../PoolRouter/events/OwnershipHandoverCanceled.ts | 2 +- .../PoolRouter/events/OwnershipHandoverRequested.ts | 2 +- .../__generated__/PoolRouter/events/OwnershipTransferred.ts | 2 +- .../tokens/__generated__/PoolRouter/events/RolesUpdated.ts | 2 +- .../tokens/__generated__/PoolRouter/events/Upgraded.ts | 2 +- .../tokens/__generated__/PoolRouter/read/getAdapter.ts | 4 ++-- .../tokens/__generated__/PoolRouter/read/getRewardLocker.ts | 4 ++-- .../__generated__/PoolRouter/read/getRewardPosition.ts | 4 ++-- .../__generated__/PoolRouter/read/getRewardPositions.ts | 4 ++-- .../tokens/__generated__/PoolRouter/read/hasAllRoles.ts | 4 ++-- .../tokens/__generated__/PoolRouter/read/hasAnyRole.ts | 4 ++-- .../extensions/tokens/__generated__/PoolRouter/read/owner.ts | 5 ++--- .../PoolRouter/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../tokens/__generated__/PoolRouter/read/proxiableUUID.ts | 5 ++--- .../tokens/__generated__/PoolRouter/read/rolesOf.ts | 4 ++-- .../PoolRouter/write/cancelOwnershipHandover.ts | 2 +- .../tokens/__generated__/PoolRouter/write/claimRewards.ts | 4 ++-- .../PoolRouter/write/completeOwnershipHandover.ts | 4 ++-- .../tokens/__generated__/PoolRouter/write/createPool.ts | 4 ++-- .../tokens/__generated__/PoolRouter/write/disableAdapter.ts | 4 ++-- .../tokens/__generated__/PoolRouter/write/enableAdapter.ts | 4 ++-- .../tokens/__generated__/PoolRouter/write/grantRoles.ts | 4 ++-- .../tokens/__generated__/PoolRouter/write/initialize.ts | 4 ++-- .../__generated__/PoolRouter/write/renounceOwnership.ts | 2 +- .../tokens/__generated__/PoolRouter/write/renounceRoles.ts | 4 ++-- .../PoolRouter/write/requestOwnershipHandover.ts | 2 +- .../tokens/__generated__/PoolRouter/write/revokeRoles.ts | 4 ++-- .../__generated__/PoolRouter/write/transferOwnership.ts | 4 ++-- .../__generated__/PoolRouter/write/upgradeToAndCall.ts | 4 ++-- .../tokens/__generated__/PoolRouter/write/withdraw.ts | 4 ++-- .../RewardLocker/events/OwnershipHandoverCanceled.ts | 2 +- .../RewardLocker/events/OwnershipHandoverRequested.ts | 2 +- .../RewardLocker/events/OwnershipTransferred.ts | 2 +- .../__generated__/RewardLocker/events/PositionLocked.ts | 2 +- .../__generated__/RewardLocker/events/RewardCollected.ts | 2 +- .../tokens/__generated__/RewardLocker/read/feeManager.ts | 5 ++--- .../tokens/__generated__/RewardLocker/read/owner.ts | 5 ++--- .../RewardLocker/read/ownershipHandoverExpiresAt.ts | 4 ++-- .../tokens/__generated__/RewardLocker/read/position.ts | 4 ++-- .../__generated__/RewardLocker/read/positionManager.ts | 5 ++--- .../RewardLocker/write/cancelOwnershipHandover.ts | 2 +- .../tokens/__generated__/RewardLocker/write/collectReward.ts | 4 ++-- .../RewardLocker/write/completeOwnershipHandover.ts | 4 ++-- .../tokens/__generated__/RewardLocker/write/lockPosition.ts | 4 ++-- .../__generated__/RewardLocker/write/renounceOwnership.ts | 2 +- .../RewardLocker/write/requestOwnershipHandover.ts | 2 +- .../__generated__/RewardLocker/write/transferOwnership.ts | 4 ++-- .../tokens/__generated__/RewardLocker/write/withdraw.ts | 4 ++-- .../uniswap/__generated__/IQuoter/write/quoteExactInput.ts | 4 ++-- .../__generated__/IQuoter/write/quoteExactInputSingle.ts | 4 ++-- .../uniswap/__generated__/IQuoter/write/quoteExactOutput.ts | 4 ++-- .../__generated__/IQuoter/write/quoteExactOutputSingle.ts | 4 ++-- .../uniswap/__generated__/ISwapRouter/write/exactInput.ts | 4 ++-- .../__generated__/ISwapRouter/write/exactInputSingle.ts | 4 ++-- .../uniswap/__generated__/ISwapRouter/write/exactOutput.ts | 4 ++-- .../__generated__/ISwapRouter/write/exactOutputSingle.ts | 4 ++-- .../__generated__/IUniswapV3Factory/events/OwnerChanged.ts | 2 +- .../__generated__/IUniswapV3Factory/events/PoolCreated.ts | 2 +- .../IUniswapV3Factory/read/feeAmountTickSpacing.ts | 4 ++-- .../uniswap/__generated__/IUniswapV3Factory/read/getPool.ts | 4 ++-- .../uniswap/__generated__/IUniswapV3Factory/read/owner.ts | 5 ++--- .../__generated__/IUniswapV3Factory/write/createPool.ts | 4 ++-- .../__generated__/IUniswapV3Factory/write/enableFeeAmount.ts | 4 ++-- .../__generated__/IUniswapV3Factory/write/setOwner.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/exists.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/getMany.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/namehash.ts | 4 ++-- .../__generated__/UnstoppableDomains/read/reverseNameOf.ts | 4 ++-- .../vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts | 5 ++--- .../vote/__generated__/Vote/read/getAllProposals.ts | 5 ++--- .../src/extensions/vote/__generated__/Vote/read/getVotes.ts | 4 ++-- .../vote/__generated__/Vote/read/getVotesWithParams.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/hasVoted.ts | 4 ++-- .../extensions/vote/__generated__/Vote/read/hashProposal.ts | 4 ++-- .../vote/__generated__/Vote/read/proposalDeadline.ts | 4 ++-- .../extensions/vote/__generated__/Vote/read/proposalIndex.ts | 5 ++--- .../vote/__generated__/Vote/read/proposalSnapshot.ts | 4 ++-- .../vote/__generated__/Vote/read/proposalThreshold.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/proposalVotes.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/proposals.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/quorum.ts | 4 ++-- .../vote/__generated__/Vote/read/quorumDenominator.ts | 5 ++--- .../src/extensions/vote/__generated__/Vote/read/state.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/read/token.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/votingDelay.ts | 5 ++--- .../extensions/vote/__generated__/Vote/read/votingPeriod.ts | 5 ++--- .../src/extensions/vote/__generated__/Vote/write/castVote.ts | 4 ++-- .../vote/__generated__/Vote/write/castVoteBySig.ts | 4 ++-- .../vote/__generated__/Vote/write/castVoteWithReason.ts | 4 ++-- .../__generated__/Vote/write/castVoteWithReasonAndParams.ts | 4 ++-- .../Vote/write/castVoteWithReasonAndParamsBySig.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/write/execute.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/write/propose.ts | 4 ++-- .../src/extensions/vote/__generated__/Vote/write/relay.ts | 4 ++-- .../vote/__generated__/Vote/write/setProposalThreshold.ts | 4 ++-- .../vote/__generated__/Vote/write/setVotingDelay.ts | 4 ++-- .../vote/__generated__/Vote/write/setVotingPeriod.ts | 4 ++-- .../vote/__generated__/Vote/write/updateQuorumNumerator.ts | 4 ++-- .../ContractDeployer/events/ContractDeployed.ts | 2 +- 985 files changed, 1764 insertions(+), 1932 deletions(-) diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts index f256c499527..15223a95af0 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnerUpdated" event. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts index 0f3e6933df7..24655af712b 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/eip712Domain.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts index 4ead09e35b3..46b4bcdfdd2 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/isClaimed.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isClaimed" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts index eee9df78552..eb5900f0f41 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts index fa0dfaf9998..c2ce62b7098 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenConditionId" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts index cf0f7ee9db1..5d50983fac2 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/read/tokenMerkleRoot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenMerkleRoot" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts index e7d492f3570..e05aab2b4a4 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC1155" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts index f3dfb2d6509..eae334d39f6 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC1155WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC1155WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts index fa9bd57d7f7..c3be854e05e 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC20" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts index 23bf45ea43f..072a582ec09 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC20WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC20WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts index 0ee231575e2..18da4c5fe0d 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC721" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts index 303a8d546b6..a2c687402e0 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropERC721WithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC721WithSignature" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts index 0f24fc95697..4d8b5529030 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/airdropNativeToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropNativeToken" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts index 80eb7e26bc7..16dc6eba70d 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimERC1155" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts index ba5895a0c69..6b9a8eec9ba 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimERC20" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts index c14bfa26737..acc2fcc4d1b 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/claimERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimERC721" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts index f835779317c..e53174e9118 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts index a9efda55328..c0c704d7b6d 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setMerkleRoot.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setMerkleRoot" function. diff --git a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts index b432dc441f4..ac3e96fb68e 100644 --- a/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/airdrop/__generated__/Airdrop/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts index 56c279e35ce..4566ae533d4 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IClaimConditionsSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts index 2ea7753de27..d50373e8312 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts index 3ffea0690fc..1b93894ecfe 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/name.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts index bb275da2f18..3ded3f5529b 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/read/symbol.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts index da4fc19dbd4..f7240e15589 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IContractMetadata/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts index 191addedb4a..d88bb911cfe 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IMulticall/write/multicall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "multicall" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts index b4114846977..08af112996e 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/events/OwnerUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnerUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts index 91c7d953571..e7d18e25f94 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts index ccd898be5ea..5e69d08ca21 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IOwnable/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts index 2db6b4f4412..dbe8285a417 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts index 8a762797f05..8ea7d761d26 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/read/getPlatformFeeInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts index 4dd68636156..efa7ad2fe4d 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPlatformFee/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts index 435c2f003e0..ad050c4dd3a 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/events/PrimarySaleRecipientUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PrimarySaleRecipientUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts index d5bc32a66fd..56a38752334 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/read/primarySaleRecipient.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x079fe40e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts index 1700a8c5103..66173a2a58e 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IPrimarySale/write/setPrimarySaleRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPrimarySaleRecipient" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts index bda5d833de1..3ddbd97fa3b 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/DefaultRoyalty.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DefaultRoyalty" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts index 4dea19eac28..55dc7b798a4 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/events/RoyaltyForToken.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoyaltyForToken" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts index 35b885df948..586f785dd19 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getDefaultRoyaltyInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts index df38082ccab..aa5aa6ebb79 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts index 9b63a90861b..7d580f21ede 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts index 2ac55df9cbf..407137179d0 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts index d50f9564b26..fdce2d9c969 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts index 7ea6f0a96e3..148ebb62fa3 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyalty/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts index 4de63a5df08..9fe313c9645 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/events/RoyaltyEngineUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoyaltyEngineUpdated" event. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts index 2ac55df9cbf..407137179d0 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts index a2f63658455..8c871ee8dc9 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/getRoyalty.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "getRoyalty" function. diff --git a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts index 6b3ae0a2749..668627644da 100644 --- a/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts +++ b/packages/thirdweb/src/extensions/common/__generated__/IRoyaltyPayments/write/setRoyaltyEngine.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyEngine" function. diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts index e3a8808253c..6b40fa433e9 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/read/getAllExtensions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts index 6ad5e011e49..d1966acff79 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/addExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addExtension" function. diff --git a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts index 34a7822686b..6374a15b117 100644 --- a/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts +++ b/packages/thirdweb/src/extensions/dynamic-contracts/__generated__/IExtensionManager/write/removeExtension.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "removeExtension" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts index 73082960b11..bf73a866568 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/ABI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ABI" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts index bad6f8ddea0..83af7231f72 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/addr.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "addr" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts index dc86243a44a..ebb71e668dd 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/contenthash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "contenthash" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts index 660beaf8001..2de03b0c45e 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "name" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts index 26356b9a164..6ce678c089c 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/pubkey.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "pubkey" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts index 48245cd713c..3faa66e172e 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/AddressResolver/read/text.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "text" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts index 578f2a95426..63713f86a03 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/L2Resolver/read/name.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "name" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts index 3fe798c55dd..9695a690140 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "resolve" function. diff --git a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts index 6fe4e4d1c1f..f84f14b8d2d 100644 --- a/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts +++ b/packages/thirdweb/src/extensions/ens/__generated__/UniversalResolver/read/reverse.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "reverse" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts index c676d387afb..73f45348e7c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBaseURICount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts index 0c3088f8948..813a7ef5345 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/BatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts index b4467275ef2..b90d560ba70 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts index 6684c87c397..fe5b329335e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts index 55a70ef2392..f14b243d535 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts index 5076f66c719..81f578628a1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/setSaleRecipientForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleRecipientForToken" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts index 0c718deff5a..be277b363a4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/DropERC1155/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts index 2762fcdd17d..14dd8c83769 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts index df9e69cfcfb..660ef2ad7d5 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155/write/airdropERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC1155" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts index fa7b986927c..959e9340680 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts index 7ec6e819a8d..9ec1ee4692a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IAirdropERC1155Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts index f36a7e6d858..95abdf2729c 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts index 630fd7070d8..32bc00e804b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IBurnableERC1155/write/burnBatch.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burnBatch" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts index fa7b986927c..959e9340680 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts index daeeb9564ec..644c3576dd3 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IClaimableERC1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts index 777715966d4..ee38633afc3 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/ClaimConditionsUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ClaimConditionsUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts index e1accf0d244..02f82ec5124 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts index 64dd8ca345d..deec1d69026 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "claimCondition" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts index 1684879b155..dcff83944d7 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getActiveClaimConditionId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getActiveClaimConditionId" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts index 7da28e54495..df3813b2551 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts index 8c3db1e8d27..d00ef37b669 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts index 36b0884c34c..8874dae7893 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDrop1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts index 21040cdf986..298f234735b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/ClaimConditionUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ClaimConditionUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts index fa7b986927c..959e9340680 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts index 04b44c4486c..36b144c74be 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/read/claimCondition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "claimCondition" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts index 8c3db1e8d27..d00ef37b669 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts index 043ca48332c..4b83811da0d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IDropSinglePhase1155/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts index 96daa76e1c0..b78452a80a4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ApprovalForAll" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts index e293e23488c..fe5cb14013f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferBatch.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TransferBatch" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts index 43726f4eeea..2f0cdab107a 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/TransferSingle.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TransferSingle" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts index 4993d85f7ee..3888a8693f8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/events/URI.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "URI" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts index 06edf5575c1..a9de58c8de5 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts index ecfeac7aa8a..8929fab3b89 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/balanceOfBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOfBatch" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts index ae49f338a36..3a13e7d4011 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isApprovedForAll" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts index 293d69ec291..99962350074 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/totalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "totalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts index 16c6c93fc3b..1d746a402a6 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/read/uri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "uri" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts index 69941c9ab48..21f4d03cbc7 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeBatchTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "safeBatchTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts index 31dc293f5dc..990d55e78c4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "safeTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts index 4d62b4b8e95..540376e8822 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setApprovalForAll" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts index 19dddf43c7c..edf264b16d5 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Enumerable/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts index 0a0627687ed..28cca2da663 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts index b21c1c5e90d..72454a87201 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155BatchReceived.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onERC1155BatchReceived" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts index cb3d27032ac..16eff631963 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IERC1155Receiver/write/onERC1155Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onERC1155Received" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts index 4f7225de3d2..a721d8b21df 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts index aab127edc73..f50c34dc977 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IEditionStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts index dd2a413af02..0b35913b5bb 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensLazyMinted" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts index 5a175f1a89f..5326d8c783b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "lazyMint" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts index 45a4d431a21..1639017dea7 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts index b28be8d3f50..fa194b737b1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IMintableERC1155/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts index 0a0627687ed..28cca2da663 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts index 0ce21caab41..003e54a53cc 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts index 3d42dad88ac..ada2b7be565 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts index a2f1c1da7bb..c6376f6f324 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackCreated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts index aa6b44b5de6..e1882226a08 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpened" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts index 7b9a4ae3ada..5353551e981 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts index 651159cc31f..d937bb002f9 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPack" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts index b76754ccb3e..ab20ae3048d 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPack" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index 1700b14ae6d..877c44e06ab 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpenRequested" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index 973a8afa50d..de793650734 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackRandomnessFulfilled" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts index dad4ba854e1..95900c4c2c0 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "canClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts index f27ff5f2568..4b53484ee6f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index a062fe62999..d9b0f36898b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts index ca1f6d20821..3a3d4ab049f 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts index 09bb704a2ca..16cec785cf1 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts index 6a85a154053..4906fe81e4b 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/ISignatureMintERC1155/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts index 3caf37ca828..1359ef370de 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts index 57cc777cc94..91cac84cb8e 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts index 93b50de0267..ac580fa73c8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts index cc60bb803ec..17da59ab8da 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedRewardsPerUnitTime.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UpdatedRewardsPerUnitTime" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts index 1bdc0e9edab..036d3d395a8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/events/UpdatedTimeUnit.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UpdatedTimeUnit" event. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts index 381a97e4ac0..c94902fa163 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts index 95246a9bf77..dc4bb9a4ae9 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/read/getStakeInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts index 72773f0c947..b8423f58cae 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/claimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimRewards" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts index 4640d2664d8..15711543ef4 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts index 261bf72277e..fc36cb2fea8 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/IStaking1155/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts index a1c7ae20ebc..9761a5cdbfa 100644 --- a/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts +++ b/packages/thirdweb/src/extensions/erc1155/__generated__/Zora1155/read/nextTokenId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x75794a3c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts index b276e41eaab..41c64799da0 100644 --- a/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc1271/__generated__/isValidSignature/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isValidSignature" function. diff --git a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts index da351e0658d..bcf99543c0f 100644 --- a/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc165/__generated__/IERC165/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts index e3d2a786c0f..e2032fab9d0 100644 --- a/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/erc1822/__generated__/IERC1822Proxiable/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts index 5033086ff1f..05b834d34c8 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/DropERC20/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts index cd60467baae..06d69c5ff16 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts index 9499d363326..fe3bb8cc142 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20/write/airdropERC20.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC20" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts index 980f90c08d6..e79f0240b1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts index 315fd89acb6..1b5c24e72ab 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IAirdropERC20Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts index 14e6c3521f6..02facd11679 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts index 0a39df5ef61..15628bef1f9 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IBurnableERC20/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts index 32ae497829f..03b681a438e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts index 543ca00aeb3..f2bb82075e1 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/claimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts index 8874f1f8b77..d05c49e0642 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getActiveClaimConditionId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts index a0bff681c08..66dc374e9ff 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts index 2c1aabd1066..502154ae933 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts index dbfd5398c08..62a00d474bf 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IDropERC20/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts index 83c90ba1373..8057c658b1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Approval.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts index 392798f0938..c52084bf3e2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts index 90f936573ff..a301bde7d16 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts index 05bfa99e8b9..28fc473b542 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts index e713101a8f2..7c6f025f370 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/decimals.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts index a40ddadb5ea..315fc80ca09 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/read/totalSupply.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts index c3071082e4e..05f8b87f866 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts index bb688023945..f9e725775a4 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts index 84e581ee5d0..8f1a555dafe 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts index f3088be371b..77488bf42f4 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/DOMAIN_SEPARATOR.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts index 0785785f1cf..a5729c91c33 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts index 196dae6e56c..a7374999c2f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IERC20Permit/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts index 6b64f961507..03ecfce9d0f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts index e0db2221abd..f0b38100c6b 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IMintableERC20/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts index edb03b78b32..167e6b98602 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts index 3d910a7024d..b252d8b1851 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts index 42821808bda..b239f00a27d 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ISignatureMintERC20/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts index b727ca0d9b2..51fc2b438ba 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts index 481bb8eb721..7462592d148 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts index bdcc3f2ca69..2ac66e20af2 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts index 6e8274dfa05..ac575a71b1e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts index 57d0a77dff7..1704b169c28 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts index 408f9cd07a8..a102e7e40db 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts index c1c69ea396d..e351237d2eb 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IStaking20/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts index 0c3048d17f9..8b3baff39b1 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts index 6fdc7ac02c8..b685e6934d6 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/ITokenStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts index 6ac50c18b65..8d2d1ad0f4f 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DelegateChanged" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts index 3dee0b93a04..679716ea9ea 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/events/DelegateVotesChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DelegateVotesChanged" event. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts index c571722679d..08ea92ba0b3 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/delegates.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "delegates" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts index e3441230e1e..7a9fef8ca2a 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastTotalSupply.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPastTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts index ae46edb8b0c..efa3696035e 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getPastVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPastVotes" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts index cff1749bd6b..9f60ad99262 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getVotes" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts index 7cef71ff61a..8c871e9055c 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "delegate" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts index d4ccd48cc5a..3d4a8db0d50 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IVotes/write/delegateBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "delegateBySig" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts index 71983157230..08a9dede108 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/deposit.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts index bb688023945..f9e725775a4 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts index c1c69ea396d..e351237d2eb 100644 --- a/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc20/__generated__/IWETH/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts index 64ca336631f..f48fb6279b8 100644 --- a/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts +++ b/packages/thirdweb/src/extensions/erc2771/__generated__/IERC2771Context/read/isTrustedForwarder.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTrustedForwarder" function. diff --git a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts index af103446eff..edbd43bb8c8 100644 --- a/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/erc2981/__generated__/IERC2981/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts index 61732d4c768..b2894032e80 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccount/write/validateUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "validateUserOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts index 9704d1c60fa..a16bc9a83cc 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/AccountCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AccountCreated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts index 29ba1977797..5da6ede6ac7 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignerAdded" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts index ee49f539f23..82619ea12e0 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/events/SignerRemoved.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignerRemoved" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts index 88b5f01391a..31f9d6e64c0 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/accountImplementation.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts index e442c9ebe15..a26c296a7f2 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccounts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAccounts" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts index f0bac129833..846406de80f 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAccountsOfSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAccountsOfSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts index 07d3c8f0a19..0174ca08356 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAddress" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts index 49004ff07df..93cf2387dff 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/getAllAccounts.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x08e93d0a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts index 4213342788a..6d3eae1caf1 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/isRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isRegistered" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts index d13cf94c6b5..213525ca085 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/read/totalAccounts.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x58451f97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts index d71e0c7bbee..b03c26c972f 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/createAccount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAccount" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts index 58b1f104269..8799cb8bd6d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerAdded.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onSignerAdded" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts index eeb95bb3887..378b00d4ce7 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountFactory/write/onSignerRemoved.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onSignerRemoved" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts index 3c4cdb022dc..8da029f6d0e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/AdminUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AdminUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts index 49b12b5e7ca..a74536a6f7a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/events/SignerPermissionsUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignerPermissionsUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts index b25927d7f3e..10a3a03b5de 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllActiveSigners.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8b52d723" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts index 340e8e2b338..4a99bfd8fea 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllAdmins.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe9523c97" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts index 473f22cee70..8637d17d40e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getAllSigners.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd42f2f35" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts index 6f91832c4d4..554ab0b1511 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/getPermissionsForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPermissionsForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts index f70ae69ae27..2f4acb5c7e3 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isActiveSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isActiveSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts index 421e3fb9b05..2e40f43ff8e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/isAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isAdmin" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts index 13c9660d679..4dd893869dd 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/read/verifySignerPermissionRequest.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifySignerPermissionRequest" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts index 0dfecdfe3e3..acad573f066 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IAccountPermissions/write/setPermissionsForSigner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPermissionsForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts index aefeda70d1f..57c092662d1 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/AccountDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AccountDeployed" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts index 979246b3a32..786675249ff 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Deposited.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Deposited" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts index 408f596d1b3..c159efd99ae 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/SignatureAggregatorChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SignatureAggregatorChanged" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts index cdb5cb7718a..64432e3e52a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeLocked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "StakeLocked" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts index 2c2a521b3e8..3db5b217e5d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeUnlocked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "StakeUnlocked" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts index d6baaadd015..fdca4a373fe 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/StakeWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "StakeWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts index e7361b8f242..34ab121fe48 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationEvent.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UserOperationEvent" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts index 651ba8f699d..ea97112e335 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/UserOperationRevertReason.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UserOperationRevertReason" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts index ba6086ca941..7b4e4b377a5 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/events/Withdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Withdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts index b7ff3081b0c..32ad1790b30 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts index ef2dd86df6b..df61606924e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getDepositInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getDepositInfo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts index 4047aff1316..129766b56b2 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getNonce.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getNonce" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts index 035be155152..75572b4e566 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getUserOpHash" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts index 9dadba06162..5385bd8265e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addStake" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts index b401e7ffe20..29803f6389d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/depositTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositTo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts index 824cf867b60..b651367ee8d 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/getSenderAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "getSenderAddress" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts index 5ec1fb8864c..164d965aa5e 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleAggregatedOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "handleAggregatedOps" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts index 5021df6b320..142b42768d8 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/handleOps.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "handleOps" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts index 66aeaeb26ac..f41500266dc 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/incrementNonce.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "incrementNonce" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts index 8ad17a56ed6..45436f31447 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateHandleOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "simulateHandleOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts index be82ffcd830..c1098fde254 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/simulateValidation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "simulateValidation" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts index c136fb4c701..3506e68345a 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/unlockStake.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts index 10668f3080d..37db0a31e12 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawStake" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts index 8d0e04b7655..b34a439bdee 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint/write/withdrawTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawTo" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts index b8d5ff51605..d9a94db53db 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/events/PostOpRevertReason.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PostOpRevertReason" event. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts index deff206f64d..ec9af361efd 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IEntryPoint_v07/read/getUserOpHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getUserOpHash" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts index cdb00c1cd44..1c7b385cc5c 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/postOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "postOp" function. diff --git a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts index ce0e1b226f6..f1259034401 100644 --- a/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts +++ b/packages/thirdweb/src/extensions/erc4337/__generated__/IPaymaster/write/validatePaymasterUserOp.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "validatePaymasterUserOp" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts index dc44d6e24ab..f18b212a278 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Deposit.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Deposit" event. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts index 702a6b214e0..b9024da0879 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/events/Withdraw.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Withdraw" event. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts index c6aa2cf4a8f..c4280dffdde 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/asset.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x38d52e0f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts index a336a3ba71d..aae1a9b0279 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToAssets.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "convertToAssets" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts index 19adbec5d30..0ea83b5498f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/convertToShares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "convertToShares" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts index c381e4e07ce..58b4e09281a 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxDeposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts index 31d838daa75..5006143bc59 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxMint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts index c87d5ca24be..aeeb693fc77 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxRedeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts index 5d2194959f1..7ba38dd8844 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/maxWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "maxWithdraw" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts index 55bd138d5c8..0f99cea3c14 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewDeposit.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewDeposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts index 1c77082a6d4..443c34fb41f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewMint.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewMint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts index d22c9fc5c1c..8e36a4bb59f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewRedeem.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewRedeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts index 0b48678535b..9c250aad3bb 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/previewWithdraw.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "previewWithdraw" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts index 13444d4de6f..e16ab10ad0a 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/read/totalAssets.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x01e1d114" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts index f987f82b52f..cb7b09695dd 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/deposit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deposit" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts index 21674a7ae44..76b3e11984f 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts index df351f6ff7b..fbaf5e7bff3 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/redeem.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "redeem" function. diff --git a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts index f9d36616418..be29d49c712 100644 --- a/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc4626/__generated__/IERC4626/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts index f48782ca657..ce17d6bf523 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/isValidSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isValidSigner" function. diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts index 366fa324ff1..4a94d5ca5f4 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/state.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc19d93fb" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts index 5b0fd38dc2d..17140290a66 100644 --- a/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts +++ b/packages/thirdweb/src/extensions/erc6551/__generated__/IERC6551Account/read/token.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts index d6fbe26258f..939294b1b13 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/read/verifyClaim.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyClaim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts index 5a98dee8f1b..d859f4ba0c7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/freezeBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "freezeBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts index fef30ba5b5b..587749a9ef9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/setMaxTotalSupply.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setMaxTotalSupply" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts index 80e7ca4d58c..bc8960627ce 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/DropERC721/write/updateBatchBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateBatchBaseURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts index f4caa50a316..a5a0941adff 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/events/AirdropFailed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AirdropFailed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts index 2f96fcc6574..401d92112b7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721/write/airdropERC721.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "airdropERC721" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts index 6713f907a04..e508430c74a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts index c8242f26ff7..1b8c9c154f4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IAirdropERC721Claimable/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts index 05c14805732..28715bb477e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBaseURICount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x63b45e2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts index 0c742164d79..4b7f34da2c5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBatchMintMetadata/read/getBatchIdAtIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIdAtIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts index 1f66b6a3b03..a8e4728f254 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IBurnableERC721/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts index 96d8aeb4491..97c65f0ee9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts index b6d15533e0c..1ddcb4ea94c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IClaimableERC721/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts index 80887b4834b..2e2af10afbf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/events/TokenURIRevealed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokenURIRevealed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts index 72fec8c3c7a..0cf4e15cb47 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptDecrypt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "encryptDecrypt" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts index 6c8d4a2dca7..b650d93ec60 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/read/encryptedData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "encryptedData" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts index d458a71158e..7a15be4a4a9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDelayedReveal/write/reveal.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "reveal" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts index f9323d3861e..04c54d35afd 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts index 15d51107b1f..1f867c8cdca 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/baseURIIndices.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "baseURIIndices" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts index bdd2144fb09..536b5046012 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/claimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts index 5e4f78b73ee..05fc620d047 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getActiveClaimConditionId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc68907de" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts index 4c03e0387d5..f89b83a2294 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/getClaimConditionById.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionById" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts index 409a4030ce4..a3a6212cb9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/read/nextTokenIdToClaim.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xacd083f8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts index bd199d831e0..1c30efb8cb0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts index 59a01bbc213..12d2073a0ee 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDrop/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts index 96d8aeb4491..97c65f0ee9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/events/TokensClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts index 60f4078f4d2..88327db4387 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/read/claimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd637ed59" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts index bd199d831e0..1c30efb8cb0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/claim.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claim" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts index d07fd8efc8e..a24b8c898b3 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IDropSinglePhase/write/setClaimConditions.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditions" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts index c1f8b0cb939..e60cc1a073c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Approval.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts index da4f0dfc8d7..585bd7da021 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/ApprovalForAll.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ApprovalForAll" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts index b0d19bab766..83c0e99117b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts index 0a97dbe010d..95ba9ffd8ac 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts index e6e6c742b20..62c67865417 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/getApproved.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getApproved" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts index 48aae344fd6..ef646d5aeb4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/isApprovedForAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isApprovedForAll" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts index 7f2ee48afd1..977eb71775a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/name.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts index 725b42cb89c..401e641161a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/ownerOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownerOf" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts index 44320640e09..a7437962276 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/startTokenId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe6798baa" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts index 2541453f1fa..09032ae8d6a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/symbol.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts index cdd424d3861..968f8ffa3a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts index a19be2e4323..08c6748815e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/read/totalSupply.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts index 35b4af6555e..f11264daf45 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts index 6a39c3be5ca..1f5c2679cdf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/safeTransferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "safeTransferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts index b2a383dd006..f4cbe38611c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/setApprovalForAll.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setApprovalForAll" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts index 7eda6c94dfe..16b2674bffe 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721A/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts index 09dbce48836..86d66e03f66 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/events/ConsecutiveTransfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ConsecutiveTransfer" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts index c57aff8f227..285fff85165 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokensOfOwner" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts index fae3b29b1eb..72eb5418268 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721AQueryable/read/tokensOfOwnerIn.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokensOfOwnerIn" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts index abab41a1765..2bb30b6fa3b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts index a2194155e72..e8bea47ee9a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenByIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts index 317ffdcd06e..fae88bc7dc4 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Enumerable/read/tokenOfOwnerByIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenOfOwnerByIndex" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts index 4e89a7ec99f..1c908156fcf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IERC721Receiver/write/onERC721Received.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "onERC721Received" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts index eb69059bee4..26bf1ce6d2f 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/events/TokensLazyMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensLazyMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts index 9889bbbb726..06ce4972ee8 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ILazyMint/write/lazyMint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "lazyMint" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts index 667cd89e059..e9b672cdac1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts index 5541d6823a5..a66e7e3dad9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IMintableERC721/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts index 0f6b2f9089d..e445a10b9db 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts index 072e98db461..4bc2551a316 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/freezeMetadata.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts index 2ae9e83a539..663fc79fa6d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTMetadata/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts index bee2ca42a4e..fdd553b85a6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/depositRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "depositRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts index ed1eccc08f6..d3980b873a9 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/INFTStake/write/withdrawRewardTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawRewardTokens" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts index 19270af23a0..a3d246e412b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/read/sharedMetadata.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb280f703" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts index cce5712e655..0c52ecd7ecc 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadata/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts index c60a5c32c2e..fad569bc974 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataDeleted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SharedMetadataDeleted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts index 57d4bb484fb..a500645cb13 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/events/SharedMetadataUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SharedMetadataUpdated" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts index af641d83093..e025d2380a5 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/read/getAllSharedMetadata.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfc3c2a73" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts index 2c361c8dad4..627bff7d9d2 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/deleteSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deleteSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts index da44ced507e..b8cf5949eed 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISharedMetadataBatch/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts index 9da306f14a9..a000ef2b4b1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts index c1389c23da5..c126f868b3a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts index d2d2e11439a..8005a91782e 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts index e51025efeaf..390c8b29837 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts index 271dd56a03a..8c64cb10777 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts index 43d69ee4691..e768fbb80c6 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/ISignatureMintERC721_v2/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts index 691150f4d6b..28b8a7795ad 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/RewardsClaimed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardsClaimed" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts index 85cbbd5ce3f..ddfeb7efc4a 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensStaked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensStaked" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts index 0955ed53001..53692d1f2bc 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/events/TokensWithdrawn.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWithdrawn" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts index 8cb89434077..470d3344098 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/read/getStakeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getStakeInfo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts index c8304c9c6af..5971444a1c1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts index e15d31e6f1e..c47c2d400b3 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/stake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "stake" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts index 3f20b599377..d7f2ad88809 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/IStaking721/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts index 667cd89e059..e9b672cdac1 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMinted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMinted" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts index 9b1685e557a..e96d9d79ff7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/events/TokensMintedWithSignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensMintedWithSignature" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts index abab41a1765..2bb30b6fa3b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts index 0f6b2f9089d..e445a10b9db 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts index cdd424d3861..968f8ffa3a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts index 121dc3577cd..d9344309eea 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/read/totalMinted.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts index 2ffb88f2541..cd952cd72a7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/cancel.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancel" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts index 54ee1fb1625..31971565a3c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts index 266759ba60d..a492ce9f95d 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintTo" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts index 7a7692db51d..11cdff84051 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts index 76f13dfcba5..af072eb19e7 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/LoyaltyCard/write/revoke.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revoke" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts index 1c2e257586d..fa409453d53 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensUnwrapped.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensUnwrapped" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts index 476e907ad6d..fc620668141 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/events/TokensWrapped.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokensWrapped" event. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts index 1ea0195f972..3299d46f932 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractType.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts index c8d50c84091..d4d1cac88b2 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/contractVersion.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts index 4b768cdca11..a5629461f55 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/getWrappedContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getWrappedContents" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts index abab41a1765..2bb30b6fa3b 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/nextTokenIdToMint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3b1475a7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts index 0f6b2f9089d..e445a10b9db 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts index cdd424d3861..968f8ffa3a0 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/read/tokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenURI" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts index 1b88232e138..51d6ee7eb4c 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts index 2ea813d8f3f..ea7207513cf 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/unwrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "unwrap" function. diff --git a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts index 03582322e9c..00ddc11ce19 100644 --- a/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts +++ b/packages/thirdweb/src/extensions/erc721/__generated__/Multiwrap/write/wrap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "wrap" function. diff --git a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts index 6c8ce5a86d9..8e80e46a8a4 100644 --- a/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts +++ b/packages/thirdweb/src/extensions/erc7504/__generated__/IRouterState/read/getAllExtensions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4a00cc48" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts index c833872cbc4..14b6db87730 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/accountId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x9cfd7cff" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts index 7225170e831..4a0f71b90f5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isModuleInstalled.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isModuleInstalled" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts index 88b6b0b11aa..adc179df2a8 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/isValidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isValidSignature" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts index 7778eae8bee..40d1c3a2dbb 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsExecutionMode.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsExecutionMode" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts index b31d7ab4910..61d1e156108 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/read/supportsModule.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts index 5a7c9b02cd4..e1f33cae5cf 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts index dcc7750443a..427537a9640 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/executeFromExecutor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "executeFromExecutor" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts index 9431c3d7dcf..fc3fb205dc1 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "installModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts index 5cf2425dcac..d9b1094c612 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/IERC7579Account/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uninstallModule" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts index bd823de97a1..93c168c64f5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts index ee84303fd0b..895b9c0faf5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts index bbf45d7fb41..5f54e325971 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/accountImplementation.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x11464fbe" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts index f31566f4716..2125755adc1 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/entrypoint.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa65d69d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts index 180f8da52fc..c8adcafff58 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/getAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAddress" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts index 99a48c2f09d..2c9986eebf5 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/implementation.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x5c60da1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts index 3323ac7ce15..076e831d264 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts index 3c7faad0ce7..f3fb0db94fc 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/addStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addStake" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts index e499f3b0187..9edabb0aaf8 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/createAccountWithModules.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAccountWithModules" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts index 5798a31905c..0fa112c28e3 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts index 21c03f6f32a..a3049c9517e 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts index c3601ab471b..b2443506421 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/unlockStake.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts index 632ee9f2fce..cd9ae09f1db 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/upgradeTo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeTo" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts index 4a20c5590f8..c995e626bdb 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts index a8e5011d893..0cad89d40fb 100644 --- a/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts +++ b/packages/thirdweb/src/extensions/erc7579/__generated__/ModularAccountFactory/write/withdrawStake.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdrawStake" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts index 8d5f1a700d2..0e275711fcc 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/Executed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Executed" event. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts index 93310f4dc59..36d4e243abf 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/events/SessionCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "SessionCreated" event. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts index a8020aabb12..9ed2c26e1bf 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/eip712Domain.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts index 3566c481b00..4a44f5a3fd1 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getCallPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getCallPoliciesForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts index 9c789a7cfff..a5a81370ba3 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionExpirationForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getSessionExpirationForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts index ea93606d2d6..3e948ef623e 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getSessionStateForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getSessionStateForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts index a1763951ba8..a97dfb80636 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/getTransferPoliciesForSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTransferPoliciesForSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts index 3287eb5fbd0..f653921de04 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/read/isWildcardSigner.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isWildcardSigner" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts index f78b186f2cf..fc57af91cb6 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/createSessionWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createSessionWithSig" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts index 81b1df259d6..98988776faa 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts index 808b3854139..92ecb549276 100644 --- a/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts +++ b/packages/thirdweb/src/extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "executeWithSig" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts index 31bb53a4e44..ab6c007dacf 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/idGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts index 7ead96b0c37..b27d76ee6e0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/keyGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts index 52d7a381538..f31cabf823b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts index 06c46b0a455..8931d97823a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IBundler/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "register" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts index 2c959f33f59..4a3345eef0f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/REGISTER_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x6a5306a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts index af26e126344..011085f6144 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/idRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts index 52d7a381538..f31cabf823b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts index 5bb15a70f8d..7a97f33ba5e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/read/storageRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4ec77b45" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts index 9be06cdbe1e..837c7aef13b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/register.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "register" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts index dfc90dfd636..3d76100bc0c 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdGateway/write/registerFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "registerFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts index 514c3444a8e..607bdffbbda 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AdminReset" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts index 655c8354855..a3d94326af6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/ChangeRecoveryAddress.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ChangeRecoveryAddress" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts index a646e6f7252..653946dc4b1 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Recover.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Recover" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts index 43d1195a0c1..540ee67b971 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Register.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Register" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts index e5e708c2290..ef1ff29a359 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts index e92335890f0..8cf023ced5f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/CHANGE_RECOVERY_ADDRESS_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd5bac7f3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts index cd9b402fa7a..16234140459 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_AND_CHANGE_RECOVERY_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xea2bbb83" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts index cb54955823e..f968b97b123 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/TRANSFER_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x00bf26f4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts index dd5e0800b68..05486ae0fd0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/custodyOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "custodyOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts index 60f0638f844..b1633b0da23 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/gatewayFrozen.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts index 86c34619ada..4670417928c 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idCounter.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xeb08ab28" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts index 31bb53a4e44..ab6c007dacf 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x4b57a600" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts index aa4fbda61f2..0f502bcf8dc 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/idOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "idOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts index a790ee0cf7d..1ae91834a6d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/recoveryOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "recoveryOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts index 3b1472b3eab..41d18969b31 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/read/verifyFidSignature.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verifyFidSignature" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts index bda18636266..d0ede787469 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddress.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "changeRecoveryAddress" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts index 60bc5bc9fc7..26fb6c23633 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/changeRecoveryAddressFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "changeRecoveryAddressFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts index 8831467efb6..5bcd4720a76 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "recover" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts index af489197a44..ef075116489 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/recoverFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "recoverFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts index 326c6c3ab43..f4d9fc76753 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts index 2bbdcece210..04517684834 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecovery.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferAndChangeRecovery" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts index f254cef9caf..d929c6a300f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferAndChangeRecoveryFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferAndChangeRecoveryFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts index d4499dad613..eb7d9656e9c 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IIdRegistry/write/transferFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts index c4ac42ba8be..978192092e2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/ADD_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xab583c1b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts index 32289cc6879..e9d4f945ce6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/keyRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x086b5198" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts index 57aad7f4608..df21d367979 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts index 2e72ed2db94..269045165c3 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "add" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts index ab6001559a8..a7e48e33e51 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyGateway/write/addFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts index 82c9fe8a6e9..9d3ca5cb0dc 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Add.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Add" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts index 4ddf953a99a..f42650a0de3 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/AdminReset.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AdminReset" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts index 76876634bc2..c1a085d0e4b 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/events/Remove.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Remove" event. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts index c3ce52a2acc..ff5dd13852a 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/REMOVE_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb5775561" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts index 60f0638f844..b1633b0da23 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/gatewayFrozen.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95e7549f" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts index af26e126344..011085f6144 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/idRegistry.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0aa13b8c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts index c603ca366d6..22e35d301e5 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "keyAt" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts index 3ec2a78a3f8..4c55c831e17 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "keyDataOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts index 7ead96b0c37..b27d76ee6e0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keyGateway.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x80334737" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts index 47e7e10c438..27051d256c2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/keysOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "keysOf" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts index fe3c07d5561..2ba35c2da2e 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/maxKeysPerFid.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe33acf38" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts index 70f25124341..57e35d5745f 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/read/totalKeys.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "totalKeys" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts index 96d8096c9d7..69300b70490 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "remove" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts index 9f9ca5ec955..206f94866d5 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IKeyRegistry/write/removeFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "removeFor" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts index 2804abcbb62..a14b1157781 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/deprecationTimestamp.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x2c39d670" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts index 95f61c0b3b5..6b44251b8fd 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/maxUnits.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06517a29" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts index b269ae251b3..e344e5323c0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/price.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "price" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts index 251d0af30af..467003b92d2 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/rentedUnits.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x2751c4fd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts index 0ea65e49702..cb8970c72f0 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/unitPrice.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe73faa2d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts index 051a7d5075d..6d9acff24e6 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/read/usdUnitPrice.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x40df0ba0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts index 7fe28d59ed6..b8c9defb67d 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/batchRent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "batchRent" function. diff --git a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts index 83175b73a06..a419f7a3bb4 100644 --- a/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts +++ b/packages/thirdweb/src/extensions/farcaster/__generated__/IStorageRegistry/write/rent.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "rent" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts index 7727e542752..3fea9d326f2 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowData.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowData" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts index 790321c4822..fdc73f35d45 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowTimestamp" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts index 8ad5fa2669a..1410fcebc23 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowTokenId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts index 32715c1467b..b77f53ea762 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerCount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x7829ae4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts index 9d41e05d6ec..f9b1d1a50ea 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getFollowerProfileId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFollowerProfileId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts index 5eb6814b734..d22da8e12f8 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getOriginalFollowTimestamp.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getOriginalFollowTimestamp" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts index 101623902a7..0166e59c268 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/getProfileIdAllowedToRecover.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getProfileIdAllowedToRecover" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts index 6856b518944..fd3d19d6825 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/isFollowing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isFollowing" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts index 1631c257613..75ead7399a6 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/FollowNFT/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "mintTimestampOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts index b30d2e0f539..9d953c3622d 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getHandle" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts index de298f22a2d..eac910c2726 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getHandleTokenURIContract.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x35eb3cb9" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts index 099379d9c7a..7b1e7dc38df 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getLocalName.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getLocalName" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts index e2e95574a6d..b0895520653 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHandle/read/getTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTokenId" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts index cc5518032e3..03b45d787ff 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "exists" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts index 114e9c70f25..3aca1b317c2 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getContentURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getContentURI" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts index 849132cce2d..75ebeb39950 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfile.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getProfile" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts index 378495f5b5e..727f85cacaf 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getProfileIdByHandleHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getProfileIdByHandleHash" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts index 940c42b7539..732495fd266 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/getPublication.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublication" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts index 1631c257613..75ead7399a6 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/mintTimestampOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "mintTimestampOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts index 87a92d9f86e..b75ca15c1c7 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts index ce9edc4470c..365d29d6da7 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/LensHub/read/tokenDataOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "tokenDataOf" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts index 3e5b2b4e859..4c82ead0f23 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/getModuleTypes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getModuleTypes" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts index 65cd261d708..f8e495a9b44 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isErc20CurrencyRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isErc20CurrencyRegistered" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts index 0676878e575..6edc467ade5 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegistered.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isModuleRegistered" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts index 6c94f98c632..f7bd65da099 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/ModuleRegistry/read/isModuleRegisteredAs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isModuleRegisteredAs" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts index c7a8d1aaa1b..e980545f042 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/getDefaultHandle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getDefaultHandle" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts index 2137f95a805..2bde91042d0 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts index 3c9809bd374..84b8abe8f34 100644 --- a/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts +++ b/packages/thirdweb/src/extensions/lens/__generated__/TokenHandleRegistry/read/resolve.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "resolve" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts index 3bfc6a92603..65a62931636 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/BuyerApprovedForListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "BuyerApprovedForListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts index 46d14a1b078..25f7aab04ee 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CancelledListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CancelledListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts index 127a498ddaf..983ca3c8c4d 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/CurrencyApprovedForListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CurrencyApprovedForListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts index 23f46addfec..7dcc74cbb31 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts index 4ea1ff93b92..664e583308f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/NewSale.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewSale" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts index f33e4de028d..cd946280f87 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/events/UpdatedListing.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "UpdatedListing" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts index e4db3be77d7..e6f15c2059e 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/currencyPriceForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "currencyPriceForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts index 734378136b7..ccef2b4d391 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllListings" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts index 2b829550285..ce20b1c10a3 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getAllValidListings.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllValidListings" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts index 3002d389ef2..877c774ef0a 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/getListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts index 9bcfe71cbf1..647f507c31f 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isBuyerApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isBuyerApprovedForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts index 6351c37f548..19748a64418 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/isCurrencyApprovedForListing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isCurrencyApprovedForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts index b8d0b72e56a..742169f4f44 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/read/totalListings.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xc78b616c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts index be8ce99cf58..ea518f185d6 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveBuyerForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approveBuyerForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts index ca45650bb17..6e37f564067 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/approveCurrencyForListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approveCurrencyForListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts index d695f899c51..8287263a1ba 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/buyFromListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "buyFromListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts index 504776da5b0..2c791b9f01e 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/cancelListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts index 49303739da5..1edc7ce9143 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts index e484d216997..5af616b8e02 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IDirectListings/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts index b15d763c5af..ef8c6ff4409 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AuctionClosed" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts index 930e0f2aa44..aafa0ed4b28 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/CancelledAuction.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CancelledAuction" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts index dd69261100a..612c8dae2a4 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewAuction.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewAuction" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts index 27f25f28508..d63d49db766 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/events/NewBid.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewBid" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts index dd88bdc4fbb..5bf0ddba132 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllAuctions" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts index 77c5116f129..2a78e300971 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAllValidAuctions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllValidAuctions" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts index 036617fbd7b..0e617b97e15 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getAuction.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts index 9546e3db173..941d302bdc2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/getWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getWinningBid" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts index 11c8eab2430..b6063ca7b31 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isAuctionExpired.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isAuctionExpired" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts index aea27839d1d..09096df9c54 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/isNewWinningBid.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isNewWinningBid" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts index 0610fda8156..6a9174b4a20 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/read/totalAuctions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x16002f4a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts index 942bb17d0c2..e629d8e71bf 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/bidInAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "bidInAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts index 846aded52d0..51df278132e 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/cancelAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts index 8004652acac..4d65a231619 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionPayout.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "collectAuctionPayout" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts index 864aab2e45f..21a99f91025 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/collectAuctionTokens.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "collectAuctionTokens" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts index e48106af277..378f42640a8 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IEnglishAuctions/write/createAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts index 37e97c246e0..62842341a63 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/AuctionClosed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AuctionClosed" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts index 7fe12ca837f..5177b264957 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ListingAdded" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts index 2233c856fc7..5ca6b7e42ea 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingRemoved.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ListingRemoved" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts index 5a9f20825a0..9de7381fbe8 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/ListingUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ListingUpdated" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts index b033e92129f..4efda0af611 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts index c5d506f7736..da59581ce1c 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/NewSale.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewSale" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts index ec779ad8e7d..d32fc97edec 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/events/PlatformFeeInfoUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PlatformFeeInfoUpdated" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts index 75061f26982..1cf532447a5 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractType.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts index ca512450a4f..63421151241 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts index cd44865ea62..3b2d58a96e6 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/contractVersion.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts index a7f71ea7315..acfdf87abf0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/read/getPlatformFeeInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd45573f6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts index 387aed05883..406594839e2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "acceptOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts index 97a608d0a86..36f0a65a4de 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/buy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "buy" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts index 16205373cf0..277b56ec199 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/cancelDirectListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelDirectListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts index f44a7290903..3c83c671942 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/closeAuction.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "closeAuction" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts index a117cfa8e94..136cc238a5b 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/createListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts index f4e8ccdcf4f..6a8e9874143 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/offer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "offer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts index 8c2125dcf6f..f156ccd65cc 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts index f65d00c8a21..bfc107d5e07 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/setPlatformFeeInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPlatformFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts index cf7822145e7..d1d0a1fb924 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IMarketplace/write/updateListing.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateListing" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts index 611ab797190..fd42fcb8462 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/AcceptedOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "AcceptedOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts index 44708d6932b..c47bf357bc6 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/CancelledOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "CancelledOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts index 839757be049..a0ce2707f11 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/events/NewOffer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewOffer" event. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts index 9d96cf8d183..eaaf99cd4b2 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllOffers" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts index d3b4a4df5cd..6fabcc41063 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getAllValidOffers.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllValidOffers" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts index 8004b2e251d..72dfeaac9f3 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/getOffer.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts index 4de665a1cb5..a9656ff8634 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/read/totalOffers.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa9fd8ed1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts index a055869c958..65873d8a1cd 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/acceptOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "acceptOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts index 449475eae93..150f01298a0 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/cancelOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "cancelOffer" function. diff --git a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts index b57181f8d69..e8aa04508aa 100644 --- a/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts +++ b/packages/thirdweb/src/extensions/marketplace/__generated__/IOffers/write/makeOffer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "makeOffer" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts index 70b5e739f97..b015f39ef05 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts index cb8daa93fac..388e295db59 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getAllMetadataBatches.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts index 5a193fd2cb0..8f55369e551 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIndex" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts index ca806668ee7..2685b177c57 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMetadataBatch" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts index cf036b86757..82ed8f80c64 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts index 7d42f61ef90..5c43264fbea 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setBaseURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts index 3e18197cdbc..ec8a31184f5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC1155/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uploadMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts index 8fc04c50266..79e6a9a81a1 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts index ef821c8a2d7..c96956e1a57 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getAllMetadataBatches.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe6c23512" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts index f6004039b01..c3b480fde67 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getBatchIndex.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBatchIndex" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts index 89701986e36..b2969c59369 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getMetadataBatch.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMetadataBatch" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts index 315f110f39a..090faeb17bd 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts index 511924b2dcf..b7de260d3fb 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/setBaseURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setBaseURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts index 074b04bbfc1..c3d03933622 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/BatchMetadataERC721/write/uploadMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uploadMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts index 51850c27a6b..463ec07137f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts index 37ecb3a29ec..f4173458bf5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getClaimConditionByTokenId.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getClaimConditionByTokenId" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts index ca8d248d475..e4432a6b319 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts index f9ed45eafa0..f14d386e81d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setClaimConditionByTokenId.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimConditionByTokenId" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts index de6de1fac6f..6f1c196e033 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts index 4f07605a11f..df40a231efe 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC20"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts index 88f1fa11af0..552b801b09f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getClaimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts index d77a83b90b3..b9cc3df2f69 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts index 68acc8f5564..1f56dc88385 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimCondition" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts index 8f35e243b55..0ae7c9416fa 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts index 03a615c3f62..f7671768943 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "ClaimableERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts index 7040ddc3643..12ccf64b64b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getClaimCondition.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x30a63e11" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts index 4be195f871d..aa68a4fcc99 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts index b4e0bba598b..1916f16a819 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setClaimCondition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setClaimCondition" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts index 0086cabc826..320e7f3fc26 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ClaimableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts index 286199fdb6d..4347bf539f2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts index 75422b16100..2b4513d6448 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts index ad1b67dbc55..7210063aa4f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts index 62821e2d4fc..abd149cce03 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC1155Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts index 67b1b0cfbe1..e858f58eda6 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts index a380e4ee56f..88d061e454e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts index a5540effcfc..5c229e704ea 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts index 98d9e06e4d4..97b628a53e9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC20Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts index 00be5232ce5..bd7a10125ee 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/read/totalMinted.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa2309ff8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts index f0e404d832b..e3bdcea619c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts index c176139c21c..3db732e674d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts index 4b4f3ae9b43..96a62ec9124 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mint.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mint" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts index 00b3b74bad7..e4d21b1a160 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/ERC721Core/write/mintWithSignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "mintWithSignature" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts index c3e63b2ed21..a96d9ebb14a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getInstalledModules.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3e429396" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts index 719f3b0ae6a..c1681500575 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/getSupportedCallbackFunctions.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xf147db8a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts index 1ae6424e1b4..fa9b1189c8b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts index 983aead308b..4969e47a4d8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/installModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "installModule" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts index f8887d33005..61c0fdadf8a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModularCore/write/uninstallModule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "uninstallModule" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts index f1360d0e902..583fd6ddfca 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/IModule/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts index 6371f09be45..8a00c16b35b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts index 673d7cc1ebf..96b5a1cfc91 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts index b81647b202d..85c77d5d648 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts index eb9899c1979..dc9f9ab39d2 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC1155/write/setTokenURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTokenURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts index 7a9aebc778c..cbc2b5518b4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC20"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts index 64b25a5b2f0..6a206e95b48 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts index cbe052bf6ee..813ce6bf686 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC20/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts index ca998dd2c29..bca6f2ecc50 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/events/NewMetadataBatch.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "NewMetadataBatch" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts index 9b60229de6b..d45e4be6fdb 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "MintableERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts index f87c6bd5c9c..2d30cd0f209 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/read/getSaleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcea943ee" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts index 2b74aa58d07..8a51cb58b75 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/MintableERC721/write/setSaleConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSaleConfig" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts index 616dc92e9b5..dc0d78919c8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts index 5dc96770798..434b96cba6d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/read/onTokenURI.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "onTokenURI" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts index 7e3187f8f91..193bcfbd117 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OpenEditionMetadataERC721/write/setSharedMetadata.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSharedMetadata" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts index bc9687f3f35..594a00bc44e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts index b1a9f4ee776..839f211331f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts index c951a7071ba..4286731b82b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts index 82b3d8935da..2bcc4cedde4 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts index b838128393f..dea971cb572 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts index d9d0e18c144..335e037490b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts index 94949dba052..d4c93faaee3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts index 10e84ec3171..8b6d28bd88b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts index 0079ccfea7e..641093af58b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts index 603d57d63fc..5508806b5ba 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts index 84cd06bad6e..579a95dbd4d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts index aa00ee8e415..2af22dfc131 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts index 28fa4ef4566..5371c300c7b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts index eb705776b19..60fcc3934d3 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts index fd1aab1c092..e368991836c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts index 61079b5f6b9..c83e3816cd0 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts index c02c49a5685..49e70615071 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/OwnableRoles/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts index 25bc5945a14..d6fafd15514 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts index f90f117f6e3..55474d84b50 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts index b7717a9d368..1d4d87e46ac 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts index 161877a044f..79bb9aec7ea 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getDefaultRoyaltyInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts index 106c526e719..8b601553e0b 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts index 79049e5fc58..a7b0ebc0442 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidationFunction.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts index 218f32e8641..ad1025f8f57 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/getTransferValidator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts index a8f3c6855f9..c5cfefd1ad5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts index 561504fb0fe..c7776d8cbc7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts index e41fc809383..15fe07599be 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts index 2294f18888e..4dc18b1a4f5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC1155/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferValidator" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts index 4051647d5cc..ea24b039f7e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/DefaultRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "DefaultRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts index 75761816d99..27058bede4e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/events/TokenRoyaltyUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "TokenRoyaltyUpdated" event. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts index 7061f2b4f41..92685502b97 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "RoyaltyERC721"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts index 10575fe9af2..ca55810873a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getDefaultRoyaltyInfo.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb24f2d39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts index 6718ff82997..f79ff81f875 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getRoyaltyInfoForToken.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts index 8e50ecc5c12..22b0333750f 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidationFunction.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0d705df6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts index a4c7f3198e9..ec803676f9d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/getTransferValidator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x098144d4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts index 521ca3e83a4..e447e4c2be9 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/read/royaltyInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "royaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts index db307f59b19..8219fe7e4ec 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setDefaultRoyaltyInfo.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setDefaultRoyaltyInfo" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts index cd56610879a..af6575c161d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setRoyaltyInfoForToken.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRoyaltyInfoForToken" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts index 10ec0919cb2..d10219f94dd 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/RoyaltyERC721/write/setTransferValidator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferValidator" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts index ce28b48f975..83455e9a96e 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/module/install.ts @@ -4,12 +4,12 @@ import type { ThirdwebContract } from "../../../../../contract/contract.js"; import type { PreparedTransaction } from "../../../../../transaction/prepare-transaction.js"; import type { Address } from "../../../../../utils/address.js"; import type { Account } from "../../../../../wallets/interfaces/wallet.js"; +import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; +import { installPublishedModule } from "../../../common/installPublishedModule.js"; import { type EncodeBytesOnInstallParams, encodeBytesOnInstallParams, } from "../encode/encodeBytesOnInstall.js"; -import { getOrDeployModule } from "../../../common/getOrDeployModule.js"; -import { installPublishedModule } from "../../../common/installPublishedModule.js"; const contractId = "SequentialTokenIdERC1155"; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts index 4750da4f484..a2376d3f38d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getModuleConfig.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x89e04e0e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts index 5f09bcb32ac..bd993363080 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/read/getNextTokenId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcaa0f92a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts index 698a143391c..80e4d1c6822 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/SequentialTokenIdERC1155/write/updateTokenIdERC1155.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateTokenIdERC1155" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts index 5fe0ab63e3a..a96c96e2a66 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts index 5e91dbb0878..6b6d99356cf 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabled.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts index 9c3942e30e3..a53d04b1e66 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts index 586ec8163af..13c899ba0ff 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts index fc521da4fc5..658168b007a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC1155/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts index f2282b92fe8..33d073e5146 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts index 03a1c407723..62ccbd551ab 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabled.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts index 370d8312c2e..31bf410891a 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts index 893845f2478..ea99e6e9ed5 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts index b075bc48f49..63cd4991a5c 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC20/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts index bf376a7ff49..6e17d1c53f7 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/encodeBytesOnInstall.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfec7ff72" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts index d15e0f67619..19244f93174 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabled.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcca5dcb6" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts index 7ce195f07a7..d2a0815cea8 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/read/isTransferEnabledFor.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "isTransferEnabledFor" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts index 6c553cf6db0..5309665361d 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferable.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferable" function. diff --git a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts index 27bb4135660..068266a1a84 100644 --- a/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts +++ b/packages/thirdweb/src/extensions/modules/__generated__/TransferableERC721/write/setTransferableFor.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTransferableFor" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts index af544c422c1..40d8ddd6ef6 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBasefee.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3e64a696" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts index 3884c555518..149778a72e6 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockHash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getBlockHash" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts index c14e8ec22b4..102576e9ad6 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getBlockNumber.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x42cbb15c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts index 13081555936..36156b6e686 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getChainId.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3408e470" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts index 7f20ac5749c..2c9ba726c35 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockCoinbase.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa8b0574e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts index 38a3806a0cc..72335a2f8bd 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockDifficulty.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x72425d9d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts index 7ce8741e849..c65e5fd7676 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockGasLimit.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x86d516e8" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts index 02daf1735db..d7caca01726 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getCurrentBlockTimestamp.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x0f28c97d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts index 30dca5d1fba..a224c0653b4 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getEthBalance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getEthBalance" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts index f1a2b78e80e..27acbf25bc9 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/read/getLastBlockHash.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x27e86d6e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts index f8dd64f3895..f4bb620df36 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "aggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts index d93589faf77..464c8e5b855 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "aggregate3" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts index c08826f923c..2a6f5834e5b 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/aggregate3Value.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "aggregate3Value" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts index aaad8b8ba9d..1e1d4317881 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/blockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "blockAndAggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts index 2e262064045..d0312ddc01b 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "tryAggregate" function. diff --git a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts index 148eb873fc5..4a42356cc17 100644 --- a/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts +++ b/packages/thirdweb/src/extensions/multicall3/__generated__/IMulticall3/write/tryBlockAndAggregate.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "tryBlockAndAggregate" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts index 85a8404f8e8..fb2cb5db660 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackCreated" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts index 34e6efaa1fe..d06bdadda34 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackOpened.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpened" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts index 5858c8f0520..4a6762257e9 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/events/PackUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackUpdated" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts index 8f713d143a3..b8febd5014e 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/canUpdatePack.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "canUpdatePack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts index 233d0176ef1..92a417a3bc1 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getPackContents.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPackContents" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts index 63551a691f3..cce2b6390db 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenCountOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTokenCountOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts index 6d3292d8791..5649dc09864 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getTokenOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getTokenOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts index 9991755461f..3cc26fb50f9 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/read/getUriOfBundle.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getUriOfBundle" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts index 25f164cd723..5bb0727f223 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/addPackContents.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addPackContents" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts index b73f6efe6e4..9462d48da72 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/createPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts index cb086aedfcd..4749b3478e2 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPack/write/openPack.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPack" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts index dc0b6ac9be2..36bd14d6965 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackOpenRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackOpenRequested" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts index dac830eb692..7f1745fa2ba 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/events/PackRandomnessFulfilled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PackRandomnessFulfilled" event. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts index cac29e8419e..895c70d6748 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/read/canClaimRewards.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "canClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts index 381d4d1006c..92ab7a14f6b 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/claimRewards.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts index bc954a62d72..09875c2f1c9 100644 --- a/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts +++ b/packages/thirdweb/src/extensions/pack/__generated__/IPackVRFDirect/write/openPackAndClaimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "openPackAndClaimRewards" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts index 01a5c361ce1..18c40077c0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleAdminChanged" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts index 91f566246e0..7ac136a340d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleGranted" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts index 91fcab84e65..d148578d3dc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleRevoked" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts index 142c73b479c..6a5295c7316 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleAdmin" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts index 44c5782708b..5a856d38561 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts index d1a4941ec7c..d09f70d7b0c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts index c6e5e3be592..e6c933291cc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts index 114846fcd0d..f6473a76bc6 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissions/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts index 01a5c361ce1..18c40077c0d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleAdminChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleAdminChanged" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts index 91f566246e0..7ac136a340d 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleGranted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleGranted" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts index 91fcab84e65..d148578d3dc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/events/RoleRevoked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RoleRevoked" event. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts index 142c73b479c..6a5295c7316 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleAdmin.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleAdmin" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts index c1eed901f0f..c4b0f166724 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMember.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleMember" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts index d6255b64f06..9d0f2a60f83 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/getRoleMemberCount.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRoleMemberCount" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts index 44c5782708b..5a856d38561 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/read/hasRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts index d1a4941ec7c..d09f70d7b0c 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/grantRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts index c6e5e3be592..e6c933291cc 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/renounceRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRole" function. diff --git a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts index 114846fcd0d..f6473a76bc6 100644 --- a/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts +++ b/packages/thirdweb/src/extensions/permissions/__generated__/IPermissionsEnumerable/write/revokeRole.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRole" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts index c4c449c8056..f4e95dad1f3 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts index 9fccd394f82..1f3ab9ddf7c 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts index c4c449c8056..f4e95dad1f3 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/DropERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts index 926c5ad6b8c..36d6778ae8b 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Marketplace/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts index b5c91d37dd1..1a8f813bbf9 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/OpenEditionERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts index dd971b7f2f4..69ec28d0568 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Pack/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts index 898c849c688..a8d1282e07e 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/Split/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts index 8159cb1cf0d..5e0ef5d1300 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC1155/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts index 68d91821e86..0008f7a2b87 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts index c4c449c8056..f4e95dad1f3 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/TokenERC721/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts index 2ce2e181c53..66d5fa8b114 100644 --- a/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts +++ b/packages/thirdweb/src/extensions/prebuilts/__generated__/VoteERC20/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts index 78ca9f193c6..beb7ac88958 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "payee" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts index ca0a1d2018b..3a1d7c9f2da 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/payeeCount.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x00dbe109" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts index 5b08e87a951..11791d48753 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/releasable.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "releasable" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts index 6e4946af5fd..3aad9d307fd 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/released.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "released" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts index b8a0402e720..ccd5d4f0ea3 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/shares.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "shares" function. diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts index ee0ae7881a6..f83e68fedbb 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalReleased.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe33b7de3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts index 878318ebe64..e36396a24c7 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/read/totalShares.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3a98ef39" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts index 10c3a66ef3a..ae168c8df86 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/distribute.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts index b3bd48606b0..cb941c153cb 100644 --- a/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts +++ b/packages/thirdweb/src/extensions/split/__generated__/Split/write/release.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "release" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts index ac53dea215b..746fafde3a0 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/read/codehashVersion.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "codehashVersion" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts index 1fb37500877..b1b723248c0 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IArbWasm/write/activateProgram.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "activateProgram" function. diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts index 619043655dc..ec91e868b68 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusConstructor/write/stylus_constructor.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts index 76b4a890529..5a6d44c65ae 100644 --- a/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts +++ b/packages/thirdweb/src/extensions/stylus/__generated__/IStylusDeployer/write/deploy.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deploy" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts index 46f16ea3875..ec59487b8e8 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/read/appURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x094ec830" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts index 0432d51a0f9..5914590d189 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IAppURI/write/setAppURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setAppURI" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts index bc0db42d912..fdbd658fb2b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ProxyDeployed" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts index ecf298f13a1..d2cf5087ba9 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/events/ProxyDeployedV2.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ProxyDeployedV2" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts index c7eee5a47d3..4f3054fa23b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deployProxyByImplementation" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts index 6918e6fc719..9c38e1b77be 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractFactory/write/deployProxyByImplementationV2.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deployProxyByImplementationV2" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts index a7581368a99..cb592fe7e78 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractPublished.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ContractPublished" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts index 3fdc9a44132..daacec8d2fa 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/ContractUnpublished.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ContractUnpublished" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts index 952bbb39f58..a27c7ed8a50 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/events/PublisherProfileUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PublisherProfileUpdated" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts index 3ebf22f4d5a..160d991507d 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getAllPublishedContracts.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAllPublishedContracts" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts index f75744abb19..aa118da5ec4 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContract.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublishedContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts index 40b31842870..da7579bee87 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedContractVersions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublishedContractVersions" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts index e8506e61a6d..ec4c61cd8a2 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublishedUriFromCompilerUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublishedUriFromCompilerUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts index 98a7af736c7..2fcb86f7d42 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/read/getPublisherProfileUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPublisherProfileUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts index 27b37ddbe45..6a3349b0b27 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/publishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "publishContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts index ed3e71f44a2..6e3e25a8f16 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/setPublisherProfileUri.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPublisherProfileUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts index 5c5b15fdc91..0f2780e8a7b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IContractPublisher/write/unpublishContract.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "unpublishContract" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts index 104a865aaff..703bd2203fb 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RuleCreated" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts index 67e1736ab9b..07b59b32352 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RuleDeleted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RuleDeleted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts index 03a28920054..cc1ff027a80 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/events/RulesEngineOverriden.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RulesEngineOverriden" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts index a89a1d00220..cf01e006e62 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getAllRules.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x1184aef2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts index f374d148564..895aa7bf039 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getRulesEngineOverride.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa7145eb4" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts index 5e5b14f615f..362f6ed7cc6 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/read/getScore.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getScore" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts index 8f2dde241dd..ef265952561 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleMultiplicative.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createRuleMultiplicative" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts index 846a085d5b5..db7aa40753e 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/createRuleThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createRuleThreshold" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts index 605a10a3feb..bef08963aab 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/deleteRule.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "deleteRule" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts index 704af13404f..99d7900505b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IRulesEngine/write/setRulesEngineOverride.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setRulesEngineOverride" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts index 06a90ad62ff..d3b9ed5fec4 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/events/RequestExecuted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RequestExecuted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts index fde6a54b1a7..e1e39e5fcc0 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ISignatureAction/read/verify.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "verify" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts index db4ca066a73..79327e01306 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWFee/read/getFeeInfo.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFeeInfo" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts index 40dd0fc17f8..19a26f8c345 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Added.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Added" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts index 66fb7bdc924..63fdd50ba9b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/events/Deleted.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Deleted" event. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts index 546a25e9dc1..8f0bbfd54ba 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/count.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "count" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts index 43d29ec079f..2a07856178b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getAll.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAll" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts index b51c3652736..0a568674e5e 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/read/getMetadataUri.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMetadataUri" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts index 1de66810ea7..e111407965b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/add.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "add" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts index 58b3d8ee112..29b6635f75e 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/ITWMultichainRegistry/write/remove.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "remove" function. diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts index e05dc87b740..0a11a4eda0d 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractType.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcb2ef6f7" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts index 23912c3e211..ff69d4ffd6b 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts index 9dcc8a6a8fa..3b6693d9579 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/read/contractVersion.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xa0a8e460" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts index 73284334c06..0ba92ee95f7 100644 --- a/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/thirdweb/__generated__/IThirdwebContract/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts index 8e229e17a20..5228963dd34 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Approval.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Approval" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts index 45010946b7e..39a285efa35 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts index 9e1813f4ebb..75704cff765 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts index 1282b4f57e7..91dcf136312 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts index 462e8e865e9..c74afb3f164 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/events/Transfer.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Transfer" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts index 59f2776fea6..7eec0943d4d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/DOMAIN_SEPARATOR.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3644e515" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts index 1dbe7fcecb8..854c7b91223 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/allowance.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "allowance" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts index 22e5af63920..d6eb079f204 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/balanceOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "balanceOf" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts index 1db8273dc7a..850e4e88ec6 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/contractURI.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xe8a3d485" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts index 1d4174d9267..fd52e1e495a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/decimals.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x313ce567" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts index 5b84e14dc8f..1911e1e6081 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/name.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x06fdde03" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts index 8c96e3b7a05..d8c997cfa5d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/nonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "nonces" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts index 69277ccf299..b0d99f234f0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts index 477cc34c0eb..0313d621929 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts index 93967631efb..ece4beb6db0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/supportsInterface.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "supportsInterface" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts index 27f629f4453..664f624447d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/symbol.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x95d89b41" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts index c7e751ca5b4..3f72b1256d8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/read/totalSupply.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x18160ddd" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts index 7f611094f21..97aa7f770aa 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/approve.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "approve" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts index f8eb656abed..4878da12849 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burn.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burn" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts index e0f91ef34e0..74d2984f38e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/burnFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "burnFrom" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts index 801dc93983d..dcbc74fc6af 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts index a1a66858c05..21cad20a483 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts index 628c9541b5d..169283827e6 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts index 8c860fbc6b4..54478293ecb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/permit.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "permit" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts index 28b4cb69e17..622553c35e4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts index b6d7e224e58..91b716f38a8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts index dde3c541106..dbaa63896c0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/setContractURI.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setContractURI" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts index 16232cfe555..a78237f2dc8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transfer.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transfer" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts index 50a895c5223..78cb5ebcdab 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferFrom.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferFrom" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts index c365c21efdb..108df00ea3f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Asset/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts index 9da8ebbd288..407d12b2068 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Created" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts index 0d93325707f..da0e6d5983e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/ImplementationAdded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ImplementationAdded" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts index 45010946b7e..39a285efa35 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts index 9e1813f4ebb..75704cff765 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts index 1282b4f57e7..91dcf136312 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts index 5009e49908a..115091371cf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts index b350e944ee6..7f8a6b28edf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getAirdrop.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd25f82a0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts index d8b1d81d1f3..ff7210c19c7 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getImplementation.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getImplementation" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getPoolRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getPoolRouter.ts index e1eccc7d8e5..9c157d9d405 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getPoolRouter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getPoolRouter.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x824f512c" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts index 08276915e26..49f6881d4b8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getReward" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getSwapRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getSwapRouter.ts index 03851248d49..4e47f66eebb 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getSwapRouter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getSwapRouter.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x725c9c49" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts index 3a4a44be6aa..f79eebee356 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/guardSalt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "guardSalt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts index 69277ccf299..b0d99f234f0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts index 477cc34c0eb..0313d621929 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts index b4b617bd5f8..33a7dd9acba 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddress.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "predictAddress" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts index ed9d4d95e90..4adf4d9a442 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/predictAddressByConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "predictAddressByConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts index e4a93094309..f9b76fe556a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts index bcbe75102fc..3b2cacb0cdf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/addImplementation.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "addImplementation" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts index 801dc93983d..dcbc74fc6af 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts index 56b69fdd811..baafcc2696f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimReward" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts index a1a66858c05..21cad20a483 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts index 49e2b4866fe..165381dda01 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/create.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "create" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts index abd4d69803c..11cd3716adf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createById.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createById" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts index c91071a99bc..980c71a812a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/createByImplementationConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createByImplementationConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts index 69399ef9833..0b8ea75aae3 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "distribute" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts index b6859dd9447..b31d96119c2 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts index 28b4cb69e17..622553c35e4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts index b6d7e224e58..91b716f38a8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts index e0998244940..c3ed838daaf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setAirdrop.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setAirdrop" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setPoolRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setPoolRouter.ts index 35c67958ba4..d183a9871ee 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setPoolRouter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setPoolRouter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setPoolRouter" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setSwapRouter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setSwapRouter.ts index 4bb522cc793..f037f968282 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setSwapRouter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/setSwapRouter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setSwapRouter" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/swap.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/swap.ts index e86f2001c52..74cc0c11030 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/swap.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/swap.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "swap" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts index c365c21efdb..108df00ea3f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts index 2647a840a19..d5af1b33184 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/withdraw.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/withdraw.ts index 297fa7fa18e..62aec03cb66 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts index 71294cf62fa..548796d5d9e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "FeeConfigUpdated" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts index 31e3ff9025d..9eff4a197ea 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/FeeConfigUpdatedBySignature.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "FeeConfigUpdatedBySignature" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts index 45010946b7e..39a285efa35 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts index 9e1813f4ebb..75704cff765 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts index 1282b4f57e7..91dcf136312 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts index 1737069f0dd..947e5eed192 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts index ed4513d6263..79f8f1a40e9 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ROLE_FEE_MANAGER.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x99ba5936" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts index 50aba48e6db..567150a2376 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/calculateFee.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "calculateFee" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts index 886713c2b77..530414e18dd 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/domainSeparator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xf698da25" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts index 9e4bd706913..40c013ad46b 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/eip712Domain.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x84b0196e" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts index 60790048774..41d9e902587 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeConfigs.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "feeConfigs" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts index 12f20f88ff4..ddd961ece01 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/feeRecipient.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x46904840" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts index 43fd6562dff..486a16008dc 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/getFeeConfig.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts index 1a9802f87ca..b005d7cb405 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts index c788991b395..ed6eba92071 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts index 69277ccf299..b0d99f234f0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts index 477cc34c0eb..0313d621929 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts index f559e611df0..c4681f40e5c 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts index a43a178112c..3fe2b4eb3a7 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/read/usedNonces.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "usedNonces" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts index 801dc93983d..dcbc74fc6af 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts index a1a66858c05..21cad20a483 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts index 922a8038ad1..7643c1e7899 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts index 28b4cb69e17..622553c35e4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts index e5aebc6ebfb..b9ca3a80944 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts index b6d7e224e58..91b716f38a8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts index 7957513d7aa..d8a69363eb4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts index 51679730be4..3bc6b013df5 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts index 46021169b71..401a5122861 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeConfigBySignature.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeConfigBySignature" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts index 28bca8913fc..fab5f82cd55 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setFeeRecipient.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setFeeRecipient" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts index e373255b4fd..619d7783d67 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/setTargetFeeConfig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setTargetFeeConfig" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts index c365c21efdb..108df00ea3f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/FeeManager/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverCanceled.ts index 45010946b7e..39a285efa35 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverRequested.ts index 9e1813f4ebb..75704cff765 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipTransferred.ts index 1282b4f57e7..91dcf136312 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RolesUpdated.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RolesUpdated.ts index 1737069f0dd..947e5eed192 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RolesUpdated.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/RolesUpdated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RolesUpdated" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/Upgraded.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/Upgraded.ts index 5009e49908a..115091371cf 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/Upgraded.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/events/Upgraded.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "Upgraded" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getAdapter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getAdapter.ts index 380e52aab07..ece9d586c46 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getAdapter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getAdapter.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getAdapter" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardLocker.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardLocker.ts index 1f202082c73..f577736961a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardLocker.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardLocker.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRewardLocker" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPosition.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPosition.ts index bf9ac307bdb..cae0f67ee2a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPosition.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPosition.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRewardPosition" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPositions.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPositions.ts index efff0f98e00..ad973e421de 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPositions.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/getRewardPositions.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getRewardPositions" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAllRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAllRoles.ts index 1a9802f87ca..b005d7cb405 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAllRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAllRoles.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAllRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAnyRole.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAnyRole.ts index c788991b395..ed6eba92071 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAnyRole.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/hasAnyRole.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasAnyRole" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/owner.ts index 69277ccf299..b0d99f234f0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/ownershipHandoverExpiresAt.ts index 477cc34c0eb..0313d621929 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/proxiableUUID.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/proxiableUUID.ts index e4a93094309..f9b76fe556a 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/proxiableUUID.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/proxiableUUID.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x52d1902d" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/rolesOf.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/rolesOf.ts index f559e611df0..c4681f40e5c 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/rolesOf.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/read/rolesOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "rolesOf" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/cancelOwnershipHandover.ts index 801dc93983d..dcbc74fc6af 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/claimRewards.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/claimRewards.ts index fbb31fc5c6c..af7e629b395 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/claimRewards.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/claimRewards.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "claimRewards" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/completeOwnershipHandover.ts index a1a66858c05..21cad20a483 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/createPool.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/createPool.ts index 62a3c440dd8..49ec942cbbc 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/createPool.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPool" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/disableAdapter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/disableAdapter.ts index f9fad21e9e3..c05be76bf9b 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/disableAdapter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/disableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "disableAdapter" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/enableAdapter.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/enableAdapter.ts index 88f3d594646..2a30f2eac51 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/enableAdapter.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/enableAdapter.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "enableAdapter" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/grantRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/grantRoles.ts index 922a8038ad1..7643c1e7899 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/grantRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/grantRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "grantRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/initialize.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/initialize.ts index a6c9b4d7f19..f3a4399846b 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/initialize.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/initialize.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "initialize" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceOwnership.ts index 28b4cb69e17..622553c35e4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceRoles.ts index e5aebc6ebfb..b9ca3a80944 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/renounceRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "renounceRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/requestOwnershipHandover.ts index b6d7e224e58..91b716f38a8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/revokeRoles.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/revokeRoles.ts index 7957513d7aa..d8a69363eb4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/revokeRoles.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/revokeRoles.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "revokeRoles" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/transferOwnership.ts index c365c21efdb..108df00ea3f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/upgradeToAndCall.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/upgradeToAndCall.ts index 2647a840a19..d5af1b33184 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/upgradeToAndCall.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/upgradeToAndCall.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "upgradeToAndCall" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/withdraw.ts b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/withdraw.ts index 297fa7fa18e..62aec03cb66 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/PoolRouter/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverCanceled.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverCanceled.ts index 45010946b7e..39a285efa35 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverCanceled.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverCanceled.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverCanceled" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverRequested.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverRequested.ts index 9e1813f4ebb..75704cff765 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverRequested.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipHandoverRequested.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipHandoverRequested" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipTransferred.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipTransferred.ts index 1282b4f57e7..91dcf136312 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipTransferred.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/OwnershipTransferred.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnershipTransferred" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts index 134a53fdcce..282c6dcc15d 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/PositionLocked.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PositionLocked" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts index 04b4d962938..72a0f2f78f8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/events/RewardCollected.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "RewardCollected" event. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts index a0562899bf9..281a03eec01 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/feeManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xd0fb0203" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/owner.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/owner.ts index 69277ccf299..b0d99f234f0 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/owner.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/ownershipHandoverExpiresAt.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/ownershipHandoverExpiresAt.ts index 477cc34c0eb..0313d621929 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/ownershipHandoverExpiresAt.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/ownershipHandoverExpiresAt.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "ownershipHandoverExpiresAt" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/position.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/position.ts index 74b932fa3fb..97be33a519e 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/position.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/position.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "position" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positionManager.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positionManager.ts index 974954d3872..9308d6b8db7 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positionManager.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/read/positionManager.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x791b98bc" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/cancelOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/cancelOwnershipHandover.ts index 801dc93983d..dcbc74fc6af 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/cancelOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/cancelOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts index 9affd3f9efb..39333e90e28 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/collectReward.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "collectReward" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/completeOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/completeOwnershipHandover.ts index a1a66858c05..21cad20a483 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/completeOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/completeOwnershipHandover.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "completeOwnershipHandover" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts index 3a8c02146b5..d4f5d0be3fc 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/lockPosition.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "lockPosition" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/renounceOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/renounceOwnership.ts index 28b4cb69e17..622553c35e4 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/renounceOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/renounceOwnership.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/requestOwnershipHandover.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/requestOwnershipHandover.ts index b6d7e224e58..91b716f38a8 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/requestOwnershipHandover.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/requestOwnershipHandover.ts @@ -1,5 +1,5 @@ -import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; +import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/transferOwnership.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/transferOwnership.ts index c365c21efdb..108df00ea3f 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/transferOwnership.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/transferOwnership.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "transferOwnership" function. diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/withdraw.ts b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/withdraw.ts index 297fa7fa18e..62aec03cb66 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/withdraw.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/RewardLocker/write/withdraw.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "withdraw" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts index a5b2de9ba3d..93ca28a8d86 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactInput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts index e2f2bd0b25f..f2baf013d7b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactInputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts index e70abf27fa9..948e8b4716b 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactOutput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts index 40571bef183..962e1b2233d 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IQuoter/write/quoteExactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "quoteExactOutputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts index 62b9d01cce6..e8c72448821 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactInput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts index 7e3abba3449..74801a6fd77 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactInputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactInputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts index dcbeb08a4a1..ad12cfeb388 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutput.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactOutput" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts index da33aaa7b58..d49a1333baf 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/ISwapRouter/write/exactOutputSingle.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "exactOutputSingle" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts index 7ecf70ce4c8..0a338fba5a1 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/OwnerChanged.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "OwnerChanged" event. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts index e58a4baf468..08c5be9c5c5 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/events/PoolCreated.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "PoolCreated" event. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts index 255f43c261a..0bdf634fbb2 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/feeAmountTickSpacing.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "feeAmountTickSpacing" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts index 0ba8694755b..5464e0e6f11 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/getPool.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getPool" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts index 5c788ce980c..c4a193d970e 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/read/owner.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x8da5cb5b" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts index 9fb6af4ed9a..7a0564dfebb 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/createPool.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "createPool" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts index c8e4e71ccd4..02a8bbc64a1 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/enableFeeAmount.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "enableFeeAmount" function. diff --git a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts index 6e4c1ba930b..dc6112bab1d 100644 --- a/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts +++ b/packages/thirdweb/src/extensions/uniswap/__generated__/IUniswapV3Factory/write/setOwner.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setOwner" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts index f4a9b84da2c..f53337ebd10 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/exists.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "exists" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts index e108e47b49f..2a5b24385b4 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/getMany.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getMany" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts index 1f4ff5195b1..d56c354bfee 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/namehash.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "namehash" function. diff --git a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts index b86c1c4bd8a..42f892a3904 100644 --- a/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts +++ b/packages/thirdweb/src/extensions/unstoppable-domains/__generated__/UnstoppableDomains/read/reverseNameOf.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "reverseNameOf" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts index ec04f2d479a..060fe07c78a 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/BALLOT_TYPEHASH.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xdeaaa7cc" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts index 6734c8b2303..1a0672fb8cc 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/COUNTING_MODE.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xdd4e2ba5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts index 4325be6c282..67cf2f01d31 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getAllProposals.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xcceb68f5" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts index c2b66c0be2a..341cb80315b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getVotes" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts index f8eca80d4bf..2034cf1dddc 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/getVotesWithParams.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "getVotesWithParams" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts index 5815f1c8684..f2b60cf3bca 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hasVoted.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hasVoted" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts index 87e81f3c2ec..1639665197e 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/hashProposal.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "hashProposal" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts index e0640658526..2e4f570cd64 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalDeadline.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposalDeadline" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts index a8d1ccb5c76..d1b77a0eeca 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalIndex.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x5977e0f2" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts index 593f248d154..e1667b05f5d 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalSnapshot.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposalSnapshot" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts index 098c4dc79c8..ced5cabd45f 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalThreshold.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xb58131b0" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts index 5bc8c234e58..8a510a2aa46 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposalVotes.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposalVotes" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts index 3c89313b550..d58e899e6d7 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/proposals.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "proposals" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts index b2de58c41b0..dce30a0a265 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorum.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "quorum" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts index 56636d20aee..cf3126a06d1 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/quorumDenominator.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x97c3d334" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts index 15bcb254830..e9b56d165e4 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/state.ts @@ -1,10 +1,10 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; /** * Represents the parameters for the "state" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts index 02e70e2d6c7..60c0d33089b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/token.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0xfc0c546a" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts index eff242b13e6..51689a20a6c 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingDelay.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x3932abb1" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts index 35de8cb92c0..5b96e7a33aa 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/read/votingPeriod.ts @@ -1,9 +1,8 @@ +import { decodeAbiParameters } from "viem"; import { readContract } from "../../../../../transaction/read-contract.js"; import type { BaseTransactionOptions } from "../../../../../transaction/types.js"; - -import { decodeAbiParameters } from "viem"; -import type { Hex } from "../../../../../utils/encoding/hex.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import type { Hex } from "../../../../../utils/encoding/hex.js"; export const FN_SELECTOR = "0x02a251a3" as const; const FN_INPUTS = [] as const; diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts index f7c42629976..2666f84fa71 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVote.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVote" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts index 6322bdf5e39..adfd1fc076b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteBySig" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts index 4d5af34b63c..d32e7363312 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReason.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteWithReason" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts index 0c625832619..978cb26a8fa 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParams.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteWithReasonAndParams" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts index 20122e5859d..a2e92478f18 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/castVoteWithReasonAndParamsBySig.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "castVoteWithReasonAndParamsBySig" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts index 4f94b043506..9012c2dfc6b 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/execute.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "execute" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts index abc8a1f168c..6262ae30b0f 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/propose.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "propose" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts index edd2ad5a3f3..785a2a588d1 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/relay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "relay" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts index 9eac196fd77..ece4ee5abf3 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setProposalThreshold.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setProposalThreshold" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts index 313d949b8c2..3b34e86231e 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingDelay.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setVotingDelay" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts index d74fc333fcb..1f4740dd710 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/setVotingPeriod.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "setVotingPeriod" function. diff --git a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts index 819963e4608..d76a5f43144 100644 --- a/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts +++ b/packages/thirdweb/src/extensions/vote/__generated__/Vote/write/updateQuorumNumerator.ts @@ -1,12 +1,12 @@ import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import type { BaseTransactionOptions, WithOverrides, } from "../../../../../transaction/types.js"; -import { prepareContractCall } from "../../../../../transaction/prepare-contract-call.js"; import { encodeAbiParameters } from "../../../../../utils/abi/encodeAbiParameters.js"; -import { once } from "../../../../../utils/promise/once.js"; import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; +import { once } from "../../../../../utils/promise/once.js"; /** * Represents the parameters for the "updateQuorumNumerator" function. diff --git a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts index 48964fd99a3..328036ce944 100644 --- a/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts +++ b/packages/thirdweb/src/extensions/zksync/__generated__/ContractDeployer/events/ContractDeployed.ts @@ -1,5 +1,5 @@ -import { prepareEvent } from "../../../../../event/prepare-event.js"; import type { AbiParameterToPrimitiveType } from "abitype"; +import { prepareEvent } from "../../../../../event/prepare-event.js"; /** * Represents the filters for the "ContractDeployed" event. From 9989b9d42851b080456065a6710b4df8f2d39977 Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Sat, 26 Jul 2025 06:54:32 +0000 Subject: [PATCH 30/32] getEntrypointERC20 -> getDeployedEntrypointERC20 --- packages/thirdweb/src/exports/tokens.ts | 2 +- packages/thirdweb/src/tokens/create-token.ts | 4 ++-- packages/thirdweb/src/tokens/distribute-token.ts | 4 ++-- packages/thirdweb/src/tokens/get-entrypoint-erc20.ts | 2 +- packages/thirdweb/src/tokens/is-router-enabled.ts | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/thirdweb/src/exports/tokens.ts b/packages/thirdweb/src/exports/tokens.ts index 9b3c88c80b9..fd3b2b4a319 100644 --- a/packages/thirdweb/src/exports/tokens.ts +++ b/packages/thirdweb/src/exports/tokens.ts @@ -8,7 +8,7 @@ export { } from "../tokens/constants.js"; export { createToken } from "../tokens/create-token.js"; export { distributeToken } from "../tokens/distribute-token.js"; -export { getEntrypointERC20 } from "../tokens/get-entrypoint-erc20.js"; +export { getDeployedEntrypointERC20 } from "../tokens/get-entrypoint-erc20.js"; export { isPoolRouterEnabled } from "../tokens/is-router-enabled.js"; export { generateSalt, diff --git a/packages/thirdweb/src/tokens/create-token.ts b/packages/thirdweb/src/tokens/create-token.ts index f147c378980..63f907cf7a5 100644 --- a/packages/thirdweb/src/tokens/create-token.ts +++ b/packages/thirdweb/src/tokens/create-token.ts @@ -5,7 +5,7 @@ import { createdEvent } from "../extensions/tokens/__generated__/ERC20Entrypoint import { create } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/create.js"; import { sendAndConfirmTransaction } from "../transaction/actions/send-and-confirm-transaction.js"; import { DEFAULT_REFERRER_ADDRESS } from "./constants.js"; -import { getEntrypointERC20 } from "./get-entrypoint-erc20.js"; +import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; import { encodeInitParams, encodePoolConfig, @@ -25,7 +25,7 @@ export async function createToken(options: CreateTokenOptions) { const salt: Hex = generateSalt(options.salt || bytesToHex(randomBytes(31))); - const entrypoint = await getEntrypointERC20(options); + const entrypoint = await getDeployedEntrypointERC20(options); let hookData: Hex = "0x"; if (launchConfig?.kind === "pool") { diff --git a/packages/thirdweb/src/tokens/distribute-token.ts b/packages/thirdweb/src/tokens/distribute-token.ts index 4e6245eca5c..c3e0233a3c4 100644 --- a/packages/thirdweb/src/tokens/distribute-token.ts +++ b/packages/thirdweb/src/tokens/distribute-token.ts @@ -1,7 +1,7 @@ import { distribute } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/distribute.js"; import type { ClientAndChain } from "../utils/types.js"; import { toUnits } from "../utils/units.js"; -import { getEntrypointERC20 } from "./get-entrypoint-erc20.js"; +import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; import type { DistributeContent } from "./types.js"; type DistrbuteTokenParams = ClientAndChain & { @@ -10,7 +10,7 @@ type DistrbuteTokenParams = ClientAndChain & { }; export async function distributeToken(options: DistrbuteTokenParams) { - const entrypoint = await getEntrypointERC20(options); + const entrypoint = await getDeployedEntrypointERC20(options); if (!entrypoint) { throw new Error(`Entrypoint not found on chain: ${options.chain.id}`); diff --git a/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts b/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts index 38af20ba9c4..d7cff42bb1e 100644 --- a/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts +++ b/packages/thirdweb/src/tokens/get-entrypoint-erc20.ts @@ -2,7 +2,7 @@ import { getContract } from "../contract/contract.js"; import type { ClientAndChain } from "../utils/types.js"; import { IMPLEMENTATIONS } from "./constants.js"; -export async function getEntrypointERC20(options: ClientAndChain) { +export async function getDeployedEntrypointERC20(options: ClientAndChain) { const implementations = IMPLEMENTATIONS[options.chain.id]; if (implementations?.EntrypointERC20) { diff --git a/packages/thirdweb/src/tokens/is-router-enabled.ts b/packages/thirdweb/src/tokens/is-router-enabled.ts index aff8672f945..69b731c99ad 100644 --- a/packages/thirdweb/src/tokens/is-router-enabled.ts +++ b/packages/thirdweb/src/tokens/is-router-enabled.ts @@ -3,12 +3,12 @@ import { getContract } from "../contract/contract.js"; import { getPoolRouter } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getPoolRouter.js"; import { getAdapter } from "../extensions/tokens/__generated__/PoolRouter/read/getAdapter.js"; import type { ClientAndChain } from "../utils/types.js"; -import { getEntrypointERC20 } from "./get-entrypoint-erc20.js"; +import { getDeployedEntrypointERC20 } from "./get-entrypoint-erc20.js"; export async function isPoolRouterEnabled( options: ClientAndChain, ): Promise { - const entrypoint = await getEntrypointERC20(options); + const entrypoint = await getDeployedEntrypointERC20(options); if (!entrypoint) { return false; } From 6f42264ff771c23640d2ddf7a027affdc804dbe3 Mon Sep 17 00:00:00 2001 From: Jake Loo <2171134+jakeloo@users.noreply.github.com> Date: Sat, 26 Jul 2025 07:18:38 +0000 Subject: [PATCH 31/32] Update ABI and contract address --- .../generate/abis/tokens/ERC20Entrypoint.json | 6 +- packages/thirdweb/src/exports/tokens.ts | 4 +- .../ERC20Entrypoint/events/Created.ts | 2 +- .../read/{getReward.ts => getRewards.ts} | 58 +++++++++---------- .../write/{claimReward.ts => claimRewards.ts} | 52 ++++++++--------- packages/thirdweb/src/tokens/constants.ts | 2 +- 6 files changed, 62 insertions(+), 62 deletions(-) rename packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/{getReward.ts => getRewards.ts} (61%) rename packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/{claimReward.ts => claimRewards.ts} (67%) diff --git a/packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json b/packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json index b2c3beae26c..130b9870cb9 100644 --- a/packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json +++ b/packages/thirdweb/scripts/generate/abis/tokens/ERC20Entrypoint.json @@ -2,7 +2,7 @@ "constructor()", "function addImplementation((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config, bool isDefault)", "function cancelOwnershipHandover() payable", - "function claimReward(address asset)", + "function claimRewards(address asset)", "function completeOwnershipHandover(address pendingOwner) payable", "function create(address creator, (address referrer, bytes32 salt, bytes data, bytes hookData) createParams) payable returns (address asset)", "function createById(bytes32 contractId, address creator, (address referrer, bytes32 salt, bytes data, bytes hookData) params) payable returns (address asset)", @@ -11,7 +11,7 @@ "function getAirdrop() view returns (address airdrop)", "function getImplementation(bytes32 contractId) view returns ((bytes32 contractId, address implementation, uint8 implementationType, uint8 createHook, bytes createHookData) config)", "function getPoolRouter() view returns (address poolRouter)", - "function getReward(address asset) view returns ((uint256 positionId, address recipient, address referrer, uint16 referrerBps, address positionManager, address rewardLocker)[])", + "function getRewards(address asset) view returns ((uint256 positionId, address recipient, address referrer, uint16 referrerBps, address positionManager, address rewardLocker)[])", "function getSwapRouter() view returns (address swapRouter)", "function guardSalt(bytes32 salt, address creator, bytes contractInitData, bytes hookInitData) view returns (bytes32)", "function initialize(address owner, address poolRouter, address airdrop)", @@ -30,7 +30,7 @@ "function upgradeToAndCall(address newImplementation, bytes data) payable", "function withdraw(address token, address to)", "event AirdropUpdated(address airdrop)", - "event Created(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", + "event Created(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes hookData)", "event Distributed(address asset, uint256 recipientCount, uint256 totalAmount)", "event ImplementationAdded(bytes32 contractId, address indexed implementation, uint8 implementationType, uint8 createHook, bytes createHookData)", "event Initialized(uint64 version)", diff --git a/packages/thirdweb/src/exports/tokens.ts b/packages/thirdweb/src/exports/tokens.ts index fd3b2b4a319..a18a90a4386 100644 --- a/packages/thirdweb/src/exports/tokens.ts +++ b/packages/thirdweb/src/exports/tokens.ts @@ -1,5 +1,5 @@ -export { getReward } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.js"; -export { claimReward } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.js"; +export { getRewards } from "../extensions/tokens/__generated__/ERC20Entrypoint/read/getRewards.js"; +export { claimRewards } from "../extensions/tokens/__generated__/ERC20Entrypoint/write/claimRewards.js"; export { position } from "../extensions/tokens/__generated__/RewardLocker/read/position.js"; export { positionManager } from "../extensions/tokens/__generated__/RewardLocker/read/positionManager.js"; export { diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts index 407d12b2068..62347035e38 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/events/Created.ts @@ -41,7 +41,7 @@ export type CreatedEventFilters = Partial<{ export function createdEvent(filters: CreatedEventFilters = {}) { return prepareEvent({ signature: - "event Created(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes aux)", + "event Created(bytes32 contractId, address indexed creator, address indexed asset, address referrer, bytes hookData)", filters, }); } diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewards.ts similarity index 61% rename from packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewards.ts index 49f6881d4b8..951f3757eb2 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/read/getRewards.ts @@ -7,13 +7,13 @@ import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import type { Hex } from "../../../../../utils/encoding/hex.js"; /** - * Represents the parameters for the "getReward" function. + * Represents the parameters for the "getRewards" function. */ -export type GetRewardParams = { +export type GetRewardsParams = { asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; }; -export const FN_SELECTOR = "0xc00007b0" as const; +export const FN_SELECTOR = "0x79ee54f7" as const; const FN_INPUTS = [ { type: "address", @@ -53,17 +53,17 @@ const FN_OUTPUTS = [ ] as const; /** - * Checks if the `getReward` method is supported by the given contract. + * Checks if the `getRewards` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `getReward` method is supported. + * @returns A boolean indicating if the `getRewards` method is supported. * @extension TOKENS * @example * ```ts - * import { isGetRewardSupported } from "thirdweb/extensions/tokens"; - * const supported = isGetRewardSupported(["0x..."]); + * import { isGetRewardsSupported } from "thirdweb/extensions/tokens"; + * const supported = isGetRewardsSupported(["0x..."]); * ``` */ -export function isGetRewardSupported(availableSelectors: string[]) { +export function isGetRewardsSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -71,77 +71,77 @@ export function isGetRewardSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "getReward" function. - * @param options - The options for the getReward function. + * Encodes the parameters for the "getRewards" function. + * @param options - The options for the getRewards function. * @returns The encoded ABI parameters. * @extension TOKENS * @example * ```ts - * import { encodeGetRewardParams } from "thirdweb/extensions/tokens"; - * const result = encodeGetRewardParams({ + * import { encodeGetRewardsParams } from "thirdweb/extensions/tokens"; + * const result = encodeGetRewardsParams({ * asset: ..., * }); * ``` */ -export function encodeGetRewardParams(options: GetRewardParams) { +export function encodeGetRewardsParams(options: GetRewardsParams) { return encodeAbiParameters(FN_INPUTS, [options.asset]); } /** - * Encodes the "getReward" function into a Hex string with its parameters. - * @param options - The options for the getReward function. + * Encodes the "getRewards" function into a Hex string with its parameters. + * @param options - The options for the getRewards function. * @returns The encoded hexadecimal string. * @extension TOKENS * @example * ```ts - * import { encodeGetReward } from "thirdweb/extensions/tokens"; - * const result = encodeGetReward({ + * import { encodeGetRewards } from "thirdweb/extensions/tokens"; + * const result = encodeGetRewards({ * asset: ..., * }); * ``` */ -export function encodeGetReward(options: GetRewardParams) { +export function encodeGetRewards(options: GetRewardsParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeGetRewardParams(options).slice( + encodeGetRewardsParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Decodes the result of the getReward function call. + * Decodes the result of the getRewards function call. * @param result - The hexadecimal result to decode. * @returns The decoded result as per the FN_OUTPUTS definition. * @extension TOKENS * @example * ```ts - * import { decodeGetRewardResult } from "thirdweb/extensions/tokens"; - * const result = decodeGetRewardResultResult("..."); + * import { decodeGetRewardsResult } from "thirdweb/extensions/tokens"; + * const result = decodeGetRewardsResultResult("..."); * ``` */ -export function decodeGetRewardResult(result: Hex) { +export function decodeGetRewardsResult(result: Hex) { return decodeAbiParameters(FN_OUTPUTS, result)[0]; } /** - * Calls the "getReward" function on the contract. - * @param options - The options for the getReward function. + * Calls the "getRewards" function on the contract. + * @param options - The options for the getRewards function. * @returns The parsed result of the function call. * @extension TOKENS * @example * ```ts - * import { getReward } from "thirdweb/extensions/tokens"; + * import { getRewards } from "thirdweb/extensions/tokens"; * - * const result = await getReward({ + * const result = await getRewards({ * contract, * asset: ..., * }); * * ``` */ -export async function getReward( - options: BaseTransactionOptions, +export async function getRewards( + options: BaseTransactionOptions, ) { return readContract({ contract: options.contract, diff --git a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimRewards.ts similarity index 67% rename from packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts rename to packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimRewards.ts index baafcc2696f..af7e629b395 100644 --- a/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimReward.ts +++ b/packages/thirdweb/src/extensions/tokens/__generated__/ERC20Entrypoint/write/claimRewards.ts @@ -9,13 +9,13 @@ import { detectMethod } from "../../../../../utils/bytecode/detectExtension.js"; import { once } from "../../../../../utils/promise/once.js"; /** - * Represents the parameters for the "claimReward" function. + * Represents the parameters for the "claimRewards" function. */ -export type ClaimRewardParams = WithOverrides<{ +export type ClaimRewardsParams = WithOverrides<{ asset: AbiParameterToPrimitiveType<{ type: "address"; name: "asset" }>; }>; -export const FN_SELECTOR = "0xd279c191" as const; +export const FN_SELECTOR = "0xef5cfb8c" as const; const FN_INPUTS = [ { type: "address", @@ -25,18 +25,18 @@ const FN_INPUTS = [ const FN_OUTPUTS = [] as const; /** - * Checks if the `claimReward` method is supported by the given contract. + * Checks if the `claimRewards` method is supported by the given contract. * @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. - * @returns A boolean indicating if the `claimReward` method is supported. + * @returns A boolean indicating if the `claimRewards` method is supported. * @extension TOKENS * @example * ```ts - * import { isClaimRewardSupported } from "thirdweb/extensions/tokens"; + * import { isClaimRewardsSupported } from "thirdweb/extensions/tokens"; * - * const supported = isClaimRewardSupported(["0x..."]); + * const supported = isClaimRewardsSupported(["0x..."]); * ``` */ -export function isClaimRewardSupported(availableSelectors: string[]) { +export function isClaimRewardsSupported(availableSelectors: string[]) { return detectMethod({ availableSelectors, method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS] as const, @@ -44,55 +44,55 @@ export function isClaimRewardSupported(availableSelectors: string[]) { } /** - * Encodes the parameters for the "claimReward" function. - * @param options - The options for the claimReward function. + * Encodes the parameters for the "claimRewards" function. + * @param options - The options for the claimRewards function. * @returns The encoded ABI parameters. * @extension TOKENS * @example * ```ts - * import { encodeClaimRewardParams } from "thirdweb/extensions/tokens"; - * const result = encodeClaimRewardParams({ + * import { encodeClaimRewardsParams } from "thirdweb/extensions/tokens"; + * const result = encodeClaimRewardsParams({ * asset: ..., * }); * ``` */ -export function encodeClaimRewardParams(options: ClaimRewardParams) { +export function encodeClaimRewardsParams(options: ClaimRewardsParams) { return encodeAbiParameters(FN_INPUTS, [options.asset]); } /** - * Encodes the "claimReward" function into a Hex string with its parameters. - * @param options - The options for the claimReward function. + * Encodes the "claimRewards" function into a Hex string with its parameters. + * @param options - The options for the claimRewards function. * @returns The encoded hexadecimal string. * @extension TOKENS * @example * ```ts - * import { encodeClaimReward } from "thirdweb/extensions/tokens"; - * const result = encodeClaimReward({ + * import { encodeClaimRewards } from "thirdweb/extensions/tokens"; + * const result = encodeClaimRewards({ * asset: ..., * }); * ``` */ -export function encodeClaimReward(options: ClaimRewardParams) { +export function encodeClaimRewards(options: ClaimRewardsParams) { // we do a "manual" concat here to avoid the overhead of the "concatHex" function // we can do this because we know the specific formats of the values return (FN_SELECTOR + - encodeClaimRewardParams(options).slice( + encodeClaimRewardsParams(options).slice( 2, )) as `${typeof FN_SELECTOR}${string}`; } /** - * Prepares a transaction to call the "claimReward" function on the contract. - * @param options - The options for the "claimReward" function. + * Prepares a transaction to call the "claimRewards" function on the contract. + * @param options - The options for the "claimRewards" function. * @returns A prepared transaction object. * @extension TOKENS * @example * ```ts * import { sendTransaction } from "thirdweb"; - * import { claimReward } from "thirdweb/extensions/tokens"; + * import { claimRewards } from "thirdweb/extensions/tokens"; * - * const transaction = claimReward({ + * const transaction = claimRewards({ * contract, * asset: ..., * overrides: { @@ -104,11 +104,11 @@ export function encodeClaimReward(options: ClaimRewardParams) { * await sendTransaction({ transaction, account }); * ``` */ -export function claimReward( +export function claimRewards( options: BaseTransactionOptions< - | ClaimRewardParams + | ClaimRewardsParams | { - asyncParams: () => Promise; + asyncParams: () => Promise; } >, ) { diff --git a/packages/thirdweb/src/tokens/constants.ts b/packages/thirdweb/src/tokens/constants.ts index e65674c964c..c8fa8c2e73d 100644 --- a/packages/thirdweb/src/tokens/constants.ts +++ b/packages/thirdweb/src/tokens/constants.ts @@ -10,6 +10,6 @@ export const IMPLEMENTATIONS: Record> = { EntrypointERC20: "", }, 84532: { - EntrypointERC20: "0x76d5aa9dEC618b54186DCa332C713B27A8ea70Ac", + EntrypointERC20: "0x51a037901cCFb5b4d000e3eded51F6f8866004be", }, }; From 1dba7fd1e7c6e6ec983a847ea4dfe15e8a36f5d0 Mon Sep 17 00:00:00 2001 From: Manan Tank Date: Wed, 30 Jul 2025 02:07:28 +0530 Subject: [PATCH 32/32] reduce diff --- packages/thirdweb/package.json | 120 ++++++++++++++++----------------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/packages/thirdweb/package.json b/packages/thirdweb/package.json index d35af44c566..e1d15c027af 100644 --- a/packages/thirdweb/package.json +++ b/packages/thirdweb/package.json @@ -99,133 +99,133 @@ }, "exports": { ".": { - "default": "./dist/cjs/exports/thirdweb.js", + "types": "./dist/types/exports/thirdweb.d.ts", "import": "./dist/esm/exports/thirdweb.js", - "types": "./dist/types/exports/thirdweb.d.ts" + "default": "./dist/cjs/exports/thirdweb.js" }, "./adapters/*": { - "default": "./dist/cjs/exports/adapters/*.js", + "types": "./dist/types/exports/adapters/*.d.ts", "import": "./dist/esm/exports/adapters/*.js", - "types": "./dist/types/exports/adapters/*.d.ts" + "default": "./dist/cjs/exports/adapters/*.js" }, "./ai": { - "default": "./dist/cjs/exports/ai.js", + "types": "./dist/types/exports/ai.d.ts", "import": "./dist/esm/exports/ai.js", - "types": "./dist/types/exports/ai.d.ts" - }, - "./tokens": { - "default": "./dist/cjs/exports/tokens.js", - "import": "./dist/esm/exports/tokens.js", - "types": "./dist/types/exports/tokens.d.ts" + "default": "./dist/cjs/exports/ai.js" }, "./auth": { - "default": "./dist/cjs/exports/auth.js", + "types": "./dist/types/exports/auth.d.ts", "import": "./dist/esm/exports/auth.js", - "types": "./dist/types/exports/auth.d.ts" + "default": "./dist/cjs/exports/auth.js" }, "./bridge": { - "default": "./dist/cjs/exports/bridge.js", + "types": "./dist/types/exports/bridge.d.ts", "import": "./dist/esm/exports/bridge.js", - "types": "./dist/types/exports/bridge.d.ts" + "default": "./dist/cjs/exports/bridge.js" }, "./chains": { - "default": "./dist/cjs/exports/chains.js", + "types": "./dist/types/exports/chains.d.ts", "import": "./dist/esm/exports/chains.js", - "types": "./dist/types/exports/chains.d.ts" + "default": "./dist/cjs/exports/chains.js" }, "./contract": { - "default": "./dist/cjs/exports/contract.js", + "types": "./dist/types/exports/contract.d.ts", "import": "./dist/esm/exports/contract.js", - "types": "./dist/types/exports/contract.d.ts" + "default": "./dist/cjs/exports/contract.js" }, "./deploys": { - "default": "./dist/cjs/exports/deploys.js", + "types": "./dist/types/exports/deploys.d.ts", "import": "./dist/esm/exports/deploys.js", - "types": "./dist/types/exports/deploys.d.ts" + "default": "./dist/cjs/exports/deploys.js" }, "./engine": { - "default": "./dist/cjs/exports/engine.js", + "types": "./dist/types/exports/engine.d.ts", "import": "./dist/esm/exports/engine.js", - "types": "./dist/types/exports/engine.d.ts" + "default": "./dist/cjs/exports/engine.js" }, "./event": { - "default": "./dist/cjs/exports/event.js", + "types": "./dist/types/exports/event.d.ts", "import": "./dist/esm/exports/event.js", - "types": "./dist/types/exports/event.d.ts" + "default": "./dist/cjs/exports/event.js" }, "./extensions/*": { - "default": "./dist/cjs/exports/extensions/*.js", + "types": "./dist/types/exports/extensions/*.d.ts", "import": "./dist/esm/exports/extensions/*.js", - "types": "./dist/types/exports/extensions/*.d.ts" + "default": "./dist/cjs/exports/extensions/*.js" }, "./insight": { - "default": "./dist/cjs/exports/insight.js", + "types": "./dist/types/exports/insight.d.ts", "import": "./dist/esm/exports/insight.js", - "types": "./dist/types/exports/insight.d.ts" + "default": "./dist/cjs/exports/insight.js" }, "./modules": { - "default": "./dist/cjs/exports/modules.js", + "types": "./dist/types/exports/modules.d.ts", "import": "./dist/esm/exports/modules.js", - "types": "./dist/types/exports/modules.d.ts" + "default": "./dist/cjs/exports/modules.js" }, "./package.json": "./package.json", "./pay": { - "default": "./dist/cjs/exports/pay.js", + "types": "./dist/types/exports/pay.d.ts", "import": "./dist/esm/exports/pay.js", - "types": "./dist/types/exports/pay.d.ts" + "default": "./dist/cjs/exports/pay.js" }, "./react": { - "default": "./dist/cjs/exports/react.js", - "import": "./dist/esm/exports/react.js", + "types": "./dist/types/exports/react.d.ts", "react-native": "./dist/esm/exports/react.native.js", - "types": "./dist/types/exports/react.d.ts" + "import": "./dist/esm/exports/react.js", + "default": "./dist/cjs/exports/react.js" }, "./react-native": { - "default": "./dist/cjs/exports/react.native.js", + "types": "./dist/types/exports/react.native.d.ts", "import": "./dist/esm/exports/react.native.js", - "types": "./dist/types/exports/react.native.d.ts" + "default": "./dist/cjs/exports/react.native.js" }, "./rpc": { - "default": "./dist/cjs/exports/rpc.js", + "types": "./dist/types/exports/rpc.d.ts", "import": "./dist/esm/exports/rpc.js", - "types": "./dist/types/exports/rpc.d.ts" + "default": "./dist/cjs/exports/rpc.js" }, "./social": { - "default": "./dist/cjs/exports/social.js", + "types": "./dist/types/exports/social.d.ts", "import": "./dist/esm/exports/social.js", - "types": "./dist/types/exports/social.d.ts" + "default": "./dist/cjs/exports/social.js" }, "./storage": { - "default": "./dist/cjs/exports/storage.js", + "types": "./dist/types/exports/storage.d.ts", "import": "./dist/esm/exports/storage.js", - "types": "./dist/types/exports/storage.d.ts" + "default": "./dist/cjs/exports/storage.js" + }, + "./tokens": { + "types": "./dist/types/exports/tokens.d.ts", + "default": "./dist/cjs/exports/tokens.js", + "import": "./dist/esm/exports/tokens.js" }, "./transaction": { - "default": "./dist/cjs/exports/transaction.js", + "types": "./dist/types/exports/transaction.d.ts", "import": "./dist/esm/exports/transaction.js", - "types": "./dist/types/exports/transaction.d.ts" + "default": "./dist/cjs/exports/transaction.js" }, "./utils": { - "default": "./dist/cjs/exports/utils.js", + "types": "./dist/types/exports/utils.d.ts", "import": "./dist/esm/exports/utils.js", - "types": "./dist/types/exports/utils.d.ts" + "default": "./dist/cjs/exports/utils.js" }, "./wallets": { - "default": "./dist/cjs/exports/wallets.js", - "import": "./dist/esm/exports/wallets.js", + "types": "./dist/types/exports/wallets.d.ts", "react-native": "./dist/esm/exports/wallets.native.js", - "types": "./dist/types/exports/wallets.d.ts" + "import": "./dist/esm/exports/wallets.js", + "default": "./dist/cjs/exports/wallets.js" }, "./wallets/*": { - "default": "./dist/cjs/exports/wallets/*.js", + "types": "./dist/types/exports/wallets/*.d.ts", "import": "./dist/esm/exports/wallets/*.js", - "types": "./dist/types/exports/wallets/*.d.ts" + "default": "./dist/cjs/exports/wallets/*.js" }, "./wallets/in-app": { - "default": "./dist/cjs/exports/wallets/in-app.js", - "import": "./dist/esm/exports/wallets/in-app.js", + "types": "./dist/types/exports/wallets/in-app.d.ts", "react-native": "./dist/esm/exports/wallets/in-app.native.js", - "types": "./dist/types/exports/wallets/in-app.d.ts" + "import": "./dist/esm/exports/wallets/in-app.js", + "default": "./dist/cjs/exports/wallets/in-app.js" } }, "files": [ @@ -354,9 +354,6 @@ "ai": [ "./dist/types/exports/ai.d.ts" ], - "tokens": [ - "./dist/types/exports/tokens.d.ts" - ], "auth": [ "./dist/types/exports/auth.d.ts" ], @@ -399,6 +396,9 @@ "storage": [ "./dist/types/exports/storage.d.ts" ], + "tokens": [ + "./dist/types/exports/tokens.d.ts" + ], "transaction": [ "./dist/types/exports/transaction.d.ts" ], @@ -415,4 +415,4 @@ }, "typings": "./dist/types/exports/thirdweb.d.ts", "version": "5.105.23" -} +} \ No newline at end of file